Class JiraHomeChangeEventPublisher

java.lang.Object
com.atlassian.jira.cluster.disasterrecovery.JiraHomeChangeEventPublisher

public class JiraHomeChangeEventPublisher extends Object
This class provides a method to ensure no avatar-related event is published when avatars do not reside in the shared home.
Since:
9.9
  • Constructor Details

    • JiraHomeChangeEventPublisher

      public JiraHomeChangeEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher, AvatarFileStoreProvider avatarFileStoreProvider)
  • Method Details

    • publishIfApplicable

      public void publishIfApplicable(@Nonnull JiraHomeChangeEvent.Action action, @Nonnull JiraHomeChangeEvent.FileType fileType, @Nonnull Collection<com.atlassian.dc.filestore.api.FileStore.Path> filesPaths)
      This method ensures no avatar-related event is published when avatars do not reside in the shared home.
      Parameters:
      action - the action
      fileType - the file type
      filesPaths - the files paths