Class ProjectPropertyHelper
java.lang.Object
com.atlassian.jira.bc.project.property.ProjectPropertyHelper
- All Implemented Interfaces:
EntityPropertyHelper<Project>,EntityWithKeyPropertyHelper<Project>
Defines permission checking, events creation and persistence layer for
ProjectPropertyService.- Since:
- v6.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.entity.property.EntityPropertyHelper
EntityPropertyHelper.CheckPermissionFunction<E extends WithId> -
Constructor Summary
ConstructorsConstructorDescriptionProjectPropertyHelper(I18nHelper i18n, ProjectManager projectManager, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ProjectPropertyHelper
public ProjectPropertyHelper(I18nHelper i18n, ProjectManager projectManager, PermissionManager permissionManager)
-
-
Method Details
-
getEntityByKeyFunction
- Specified by:
getEntityByKeyFunctionin interfaceEntityWithKeyPropertyHelper<Project>- Returns:
- the function which will get the entity for the provided key.
-
hasEditPermissionFunction
- Specified by:
hasEditPermissionFunctionin interfaceEntityPropertyHelper<Project>- Returns:
- the function which will check if the provided user has permissions to edit the entity.
-
hasReadPermissionFunction
- Specified by:
hasReadPermissionFunctionin interfaceEntityPropertyHelper<Project>- Returns:
- the function which will check if the provided user has permissions to view the entity.
-
getEntityByIdFunction
- Specified by:
getEntityByIdFunctionin interfaceEntityPropertyHelper<Project>- Returns:
- the function which will get the entity for the provided id.
-
createSetPropertyEventBiFunction
public BiFunction<ApplicationUser,EntityProperty, createSetPropertyEventBiFunction()ProjectPropertySetEvent> - Specified by:
createSetPropertyEventBiFunctionin interfaceEntityPropertyHelper<Project>- Returns:
- the function which will create an instance of
EntityPropertySetEventfor the proper entity type.
-
createDeletePropertyEventBiFunction
public BiFunction<ApplicationUser,EntityProperty, createDeletePropertyEventBiFunction()ProjectPropertyDeletedEvent> - Specified by:
createDeletePropertyEventBiFunctionin interfaceEntityPropertyHelper<Project>- Returns:
- the function which will create an instance of
EntityPropertyDeletedEventfor the proper entity type.
-
getEntityPropertyType
- Specified by:
getEntityPropertyTypein interfaceEntityPropertyHelper<Project>- Returns:
- the type of the entity property.
-