com.atlassian.jira.bc.issue.changehistory.properties
Class ChangeHistoryPropertyHelper

java.lang.Object
  extended by com.atlassian.jira.bc.issue.changehistory.properties.ChangeHistoryPropertyHelper
All Implemented Interfaces:
EntityPropertyHelper<ChangeHistory>

public class ChangeHistoryPropertyHelper
extends Object
implements EntityPropertyHelper<ChangeHistory>

EnitityPropertyHelper for ChangeHistories

Since:
JIRA 6.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.entity.property.EntityPropertyHelper
EntityPropertyHelper.CheckPermissionFunction<E extends WithId>
 
Constructor Summary
ChangeHistoryPropertyHelper(IssueManager issueManager, IssuePropertyHelper issuePropertyHelper, I18nHelper i18n, ChangeHistoryManager changeHistoryManager)
           
 
Method Summary
 com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertyDeletedEvent> createDeletePropertyEventFunction()
           
 com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertySetEvent> createSetPropertyEventFunction()
           
 com.google.common.base.Function<Long,com.atlassian.fugue.Option<ChangeHistory>> getEntityByIdFunction()
           
 EntityPropertyType getEntityPropertyType()
           
 EntityPropertyHelper.CheckPermissionFunction<ChangeHistory> hasEditPermissionFunction()
           
 EntityPropertyHelper.CheckPermissionFunction<ChangeHistory> hasReadPermissionFunction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeHistoryPropertyHelper

public ChangeHistoryPropertyHelper(IssueManager issueManager,
                                   IssuePropertyHelper issuePropertyHelper,
                                   I18nHelper i18n,
                                   ChangeHistoryManager changeHistoryManager)
Method Detail

hasEditPermissionFunction

public EntityPropertyHelper.CheckPermissionFunction<ChangeHistory> hasEditPermissionFunction()
Specified by:
hasEditPermissionFunction in interface EntityPropertyHelper<ChangeHistory>
Returns:
the function which will check if the provided user has permissions to edit the entity.

hasReadPermissionFunction

public EntityPropertyHelper.CheckPermissionFunction<ChangeHistory> hasReadPermissionFunction()
Specified by:
hasReadPermissionFunction in interface EntityPropertyHelper<ChangeHistory>
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<ChangeHistory>> getEntityByIdFunction()
Specified by:
getEntityByIdFunction in interface EntityPropertyHelper<ChangeHistory>
Returns:
the function which will get the entity for the provided id.

createSetPropertyEventFunction

public com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertySetEvent> createSetPropertyEventFunction()
Specified by:
createSetPropertyEventFunction in interface EntityPropertyHelper<ChangeHistory>
Returns:
the function which will create an instance of EntityPropertySetEvent for the proper entity type.

createDeletePropertyEventFunction

public com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertyDeletedEvent> createDeletePropertyEventFunction()
Specified by:
createDeletePropertyEventFunction in interface EntityPropertyHelper<ChangeHistory>
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<ChangeHistory>
Returns:
the type of the entity property.


Copyright © 2002-2014 Atlassian. All Rights Reserved.