Class DefaultProjectPropertiesManager

java.lang.Object
com.atlassian.jira.project.DefaultProjectPropertiesManager
All Implemented Interfaces:
Startable, InitializingComponent, ProjectPropertiesManager

public class DefaultProjectPropertiesManager extends Object implements ProjectPropertiesManager, Startable, InitializingComponent
Default implementation for ProjectPropertiesManager.
Since:
v6.1
See Also:
  • Field Details

  • Constructor Details

    • DefaultProjectPropertiesManager

      public DefaultProjectPropertiesManager(com.atlassian.cache.CacheManager cacheManager, QueryDslAccessor queryDslAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
  • Method Details

    • afterInstantiation

      public void afterInstantiation() throws Exception
      Description copied from interface: InitializingComponent
      Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.
      Specified by:
      afterInstantiation in interface InitializingComponent
      Throws:
      Exception
    • start

      public void start() throws Exception
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable
      Throws:
      Exception - Allows implementations to throw an Exception.
    • getPropertySet

      public com.opensymphony.module.propertyset.PropertySet getPropertySet(Project project)
      Description copied from interface: ProjectPropertiesManager
      Retrieve all properties associated with the given project.

      The returned PropertySet is mutable and could be used to directly update data in database.

      Specified by:
      getPropertySet in interface ProjectPropertiesManager
      Parameters:
      project - project
      Returns:
      the property set associated with the project
    • getPropertySet

      public com.opensymphony.module.propertyset.PropertySet getPropertySet(long projectId)
      Description copied from interface: ProjectPropertiesManager
      Retrieve all properties associated with the given project.

      The returned PropertySet is mutable and could be used to directly update data in database.

      Specified by:
      getPropertySet in interface ProjectPropertiesManager
      Parameters:
      projectId - ID of the project
      Returns:
      the property set associated with the project
    • onClearCache

      @EventListener public void onClearCache(@Nullable ClearCacheEvent event)
    • onDatabaseImportCompleted

      @EventListener public void onDatabaseImportCompleted(DatabaseImportCompletedEvent event)