public class DefaultHistoryMetadataManager extends Object implements HistoryMetadataManager
HistoryMetadataManager.HistoryMetadataResult
Constructor and Description |
---|
DefaultHistoryMetadataManager(HistoryMetadataMarshaller historyMetadataMarshaller,
ChangeHistoryPropertyService changeHistoryPropertyService) |
Modifier and Type | Method and Description |
---|---|
HistoryMetadataManager.HistoryMetadataResult |
getHistoryMetadata(ChangeHistory changeHistory,
ApplicationUser user)
Retrieves the HistoryMetadata related to the ChangeHistory.
|
HistoryMetadataManager.HistoryMetadataResult |
getHistoryMetadata(long changeHistoryId)
Retrieves the HistoryMetadata releated to the ChangeHistory with the given id.
|
void |
saveHistoryMetadata(Long changeGroupId,
ApplicationUser user,
HistoryMetadata historyMetadata)
Persists the HistoryMetadata related to the change group.
|
public DefaultHistoryMetadataManager(HistoryMetadataMarshaller historyMetadataMarshaller, ChangeHistoryPropertyService changeHistoryPropertyService)
public void saveHistoryMetadata(@Nonnull Long changeGroupId, @Nullable ApplicationUser user, @Nonnull HistoryMetadata historyMetadata)
HistoryMetadataManager
saveHistoryMetadata
in interface HistoryMetadataManager
changeGroupId
- the id of the changegroup to save the metadata foruser
- the user that performed the change, null if anonymoushistoryMetadata
- the metadata to persistpublic HistoryMetadataManager.HistoryMetadataResult getHistoryMetadata(@Nonnull ChangeHistory changeHistory, @Nullable ApplicationUser user)
HistoryMetadataManager
getHistoryMetadata
in interface HistoryMetadataManager
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 anonymouspublic HistoryMetadataManager.HistoryMetadataResult getHistoryMetadata(long changeHistoryId)
HistoryMetadataManager
getHistoryMetadata
in interface HistoryMetadataManager
changeHistoryId
- the changehistory id to get the metadata forCopyright © 2002-2022 Atlassian. All Rights Reserved.