Class DefaultHistoryMetadataManager
java.lang.Object
com.atlassian.jira.issue.changehistory.metadata.DefaultHistoryMetadataManager
- All Implemented Interfaces:
HistoryMetadataManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.changehistory.metadata.HistoryMetadataManager
HistoryMetadataManager.HistoryMetadataResult -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHistoryMetadataManager(HistoryMetadataMarshaller historyMetadataMarshaller, ChangeHistoryPropertyService changeHistoryPropertyService) -
Method Summary
Modifier and TypeMethodDescriptiongetHistoryMetadata(long changeHistoryId) Retrieves the HistoryMetadata releated to the ChangeHistory with the given id.getHistoryMetadata(ChangeHistory changeHistory, ApplicationUser user) Retrieves the HistoryMetadata related to the ChangeHistory.voidsaveHistoryMetadata(Long changeGroupId, ApplicationUser user, HistoryMetadata historyMetadata) Persists the HistoryMetadata related to the change group.
-
Constructor Details
-
DefaultHistoryMetadataManager
public DefaultHistoryMetadataManager(HistoryMetadataMarshaller historyMetadataMarshaller, ChangeHistoryPropertyService changeHistoryPropertyService)
-
-
Method Details
-
saveHistoryMetadata
public void saveHistoryMetadata(@Nonnull Long changeGroupId, @Nullable ApplicationUser user, @Nonnull HistoryMetadata historyMetadata) Description copied from interface:HistoryMetadataManagerPersists the HistoryMetadata related to the change group. Does not check permissions for the entity being stored.- Specified by:
saveHistoryMetadatain interfaceHistoryMetadataManager- 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:HistoryMetadataManagerRetrieves the HistoryMetadata related to the ChangeHistory.- Specified by:
getHistoryMetadatain interfaceHistoryMetadataManager- 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
Description copied from interface:HistoryMetadataManagerRetrieves the HistoryMetadata releated to the ChangeHistory with the given id. Doesn't check any permissions- Specified by:
getHistoryMetadatain interfaceHistoryMetadataManager- Parameters:
changeHistoryId- the changehistory id to get the metadata for- Returns:
- a HistoryMetadataResult with either the HistoryMetadata, or empty
-