com.atlassian.studio.jira.lifecycle
Class CrowdDirectorySynchronizer
java.lang.Object
com.atlassian.studio.jira.lifecycle.CrowdDirectorySynchronizer
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class CrowdDirectorySynchronizer
- extends Object
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Makes sure that the Crowd directory is synchronized before any other OnDemand plugins / components
have a chance to run.
This happens on plugin framework started event, which is raised before any life-cycle method on plugin
components is called.
Constructor Summary |
CrowdDirectorySynchronizer(com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdDirectorySynchronizer
public CrowdDirectorySynchronizer(com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService)
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
syncAfterJiraUpgrade
@EventListener
public void syncAfterJiraUpgrade(JiraUpgradedEvent jiraUpgradedEvent)
Copyright © 2002-2012 Atlassian. All Rights Reserved.