com.atlassian.jira.bc.project.property
Class ProjectPropertyHelper
java.lang.Object
com.atlassian.jira.bc.project.property.ProjectPropertyHelper
- All Implemented Interfaces:
- EntityPropertyHelper<Project>, EntityWithKeyPropertyHelper<Project>
public class ProjectPropertyHelper
- extends Object
- implements EntityWithKeyPropertyHelper<Project>
Defines permission checking, events creation and persistence layer for ProjectPropertyService
.
- Since:
- v6.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectPropertyHelper
public ProjectPropertyHelper(I18nHelper i18n,
ProjectManager projectManager,
PermissionManager permissionManager)
getEntityByKeyFunction
public com.google.common.base.Function<String,com.atlassian.fugue.Option<Project>> getEntityByKeyFunction()
- Specified by:
getEntityByKeyFunction
in interface EntityWithKeyPropertyHelper<Project>
- Returns:
- the function which will get the entity for the provided key.
hasEditPermissionFunction
public EntityPropertyHelper.CheckPermissionFunction<Project> hasEditPermissionFunction()
- Specified by:
hasEditPermissionFunction
in interface EntityPropertyHelper<Project>
- Returns:
- the function which will check if the provided user has permissions to edit the entity.
hasReadPermissionFunction
public EntityPropertyHelper.CheckPermissionFunction<Project> hasReadPermissionFunction()
- Specified by:
hasReadPermissionFunction
in interface EntityPropertyHelper<Project>
- Returns:
- the function which will check if the provided user has permissions to view the entity.
getEntityByIdFunction
public com.google.common.base.Function<Long,com.atlassian.fugue.Option<Project>> getEntityByIdFunction()
- Specified by:
getEntityByIdFunction
in interface EntityPropertyHelper<Project>
- Returns:
- the function which will get the entity for the provided id.
createSetPropertyEventFunction
public com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,ProjectPropertySetEvent> createSetPropertyEventFunction()
- Specified by:
createSetPropertyEventFunction
in interface EntityPropertyHelper<Project>
- Returns:
- the function which will create an instance of
EntityPropertySetEvent
for the proper entity type.
createDeletePropertyEventFunction
public com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,ProjectPropertyDeletedEvent> createDeletePropertyEventFunction()
- Specified by:
createDeletePropertyEventFunction
in interface EntityPropertyHelper<Project>
- Returns:
- the function which will create an instance of
EntityPropertyDeletedEvent
for the proper entity type.
getEntityPropertyType
public EntityPropertyType getEntityPropertyType()
- Specified by:
getEntityPropertyType
in interface EntityPropertyHelper<Project>
- Returns:
- the type of the entity property.
Copyright © 2002-2014 Atlassian. All Rights Reserved.