Class JiraComponents
Object
JiraComponents
- All Implemented Interfaces:
CachingComponent,DisposableBean,InitializingBean
public class JiraComponents
extends Object
implements DisposableBean, InitializingBean, CachingComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidvoidvoidclearUserCaches(ApplicationUser user) Clear all cached data associated with the specified user.final voiddestroy()static ApplicationPropertiesstatic AvatarManagerstatic <T> TgetComponent(Class<T> intfClass) static ComponentClassManagerstatic <T> TgetComponentOfType(Class<T> intfClass) static ConstantsManagerstatic GlobalPermissionManagerstatic GroupManagerstatic IssueManagerstatic JiraAuthenticationContextstatic OptionsManagerstatic <T> TgetOSGiComponentInstanceOfType(Class<T> intfClass) static PermissionManagerstatic PluginAccessorstatic ProjectComponentManagerstatic ProjectManagerstatic UserManagerstatic UserUtilstatic VersionManagerstatic <T,E extends Exception>
TwithThreadContextClassLoaderOf(Object object, CallableE<T, E> code) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CachingComponent
clearUserCaches
-
Constructor Details
-
JiraComponents
public JiraComponents()
-
-
Method Details
-
getOSGiComponentInstanceOfType
-
getComponentOfType
-
getComponent
-
getJiraAuthenticationContext
public static JiraAuthenticationContext getJiraAuthenticationContext() -
getProjectManager
public static ProjectManager getProjectManager() -
getProjectComponentManager
public static ProjectComponentManager getProjectComponentManager() -
getConstantsManager
public static ConstantsManager getConstantsManager() -
getVersionManager
public static VersionManager getVersionManager() -
getOptionsManager
public static OptionsManager getOptionsManager() -
getUserManager
public static UserManager getUserManager() -
getGroupManager
public static GroupManager getGroupManager() -
getUserUtil
public static UserUtil getUserUtil() -
getPluginAccessor
public static PluginAccessor getPluginAccessor() -
getPermissionManager
public static PermissionManager getPermissionManager() -
getApplicationProperties
public static ApplicationProperties getApplicationProperties() -
getIssueManager
public static IssueManager getIssueManager() -
getAvatarManager
public static AvatarManager getAvatarManager() -
getComponentClassManager
public static ComponentClassManager getComponentClassManager() -
getGlobalPermissionManager
public static GlobalPermissionManager getGlobalPermissionManager() -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
destroy
- Specified by:
destroyin interfaceDisposableBean- Throws:
Exception
-
clearCaches
public void clearCaches()- Specified by:
clearCachesin interfaceCachingComponent
-
clearUserCaches
public void clearUserCaches(@NotNull ApplicationUser user) Description copied from interface:CachingComponentClear all cached data associated with the specified user. If the component doesn't store any data associated with user (i.e., user is not a part of a cache entry key), this method mustn't do anything. If the component cannot selectively clear entries for one user, it might clear more, but it must ensure that all related entries are cleared.- Specified by:
clearUserCachesin interfaceCachingComponent- Parameters:
user- the user for which to clear the cached data
-
withThreadContextClassLoaderOf
public static <T,E extends Exception> T withThreadContextClassLoaderOf(@NotNull Object object, @NotNull CallableE<T, E> code) throws E- Throws:
E extends Exception
-