com.atlassian.jira.issue.changehistory.metadata
Class DefaultHistoryMetadataManager
java.lang.Object
com.atlassian.jira.issue.changehistory.metadata.DefaultHistoryMetadataManager
- All Implemented Interfaces:
- HistoryMetadataManager
public class DefaultHistoryMetadataManager
- extends Object
- implements HistoryMetadataManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHistoryMetadataManager
public DefaultHistoryMetadataManager(HistoryMetadataMarshaller historyMetadataMarshaller,
ChangeHistoryPropertyService changeHistoryPropertyService)
saveHistoryMetadata
public void saveHistoryMetadata(@Nonnull
Long changeGroupId,
@Nullable
ApplicationUser user,
@Nonnull
HistoryMetadata historyMetadata)
- Description copied from interface:
HistoryMetadataManager
- Persists the HistoryMetadata related to the change group. Does not check permissions for the entity being
stored.
- Specified by:
saveHistoryMetadata
in interface HistoryMetadataManager
- Parameters:
changeGroupId
- the id of the changegroup to save the metadata foruser
- the user that performed the change, null if anonymoushistoryMetadata
- the metadata to persist
getHistoryMetadata
public HistoryMetadataManager.HistoryMetadataResult getHistoryMetadata(@Nonnull
ChangeHistory changeHistory,
@Nullable
ApplicationUser user)
- Description copied from interface:
HistoryMetadataManager
- Retrieves the HistoryMetadata related to the ChangeHistory.
- Specified by:
getHistoryMetadata
in interface HistoryMetadataManager
- Parameters:
changeHistory
- the change history to get the metadata foruser
- the user retrieving the information (requires the VIEW_ISSUE permission for the associated issue), null if anonymous
- Returns:
- a HistoryMetadataResult with either the HistoryMetadata, or errors
getHistoryMetadata
public HistoryMetadataManager.HistoryMetadataResult getHistoryMetadata(long changeHistoryId)
- Description copied from interface:
HistoryMetadataManager
- Retrieves the HistoryMetadata releated to the ChangeHistory with the given id. Doesn't check any permissions
- Specified by:
getHistoryMetadata
in interface HistoryMetadataManager
- Parameters:
changeHistoryId
- the changehistory id to get the metadata for
- Returns:
- a HistoryMetadataResult with either the HistoryMetadata, or empty
Copyright © 2002-2014 Atlassian. All Rights Reserved.