|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.atlassianuser.CrowdClientHolder
public class CrowdClientHolder
A holder for the current RestCrowdClient
and UserGroupCache
.
These will be used when a CrowdClient
implementation is not available in the Spring
context.
When the configuration directory changes and a new instance needs to be created it will take care of disposing the old instance.
Constructor Summary | |
---|---|
CrowdClientHolder()
|
Method Summary | |
---|---|
static CrowdClientControl |
get()
Get the current instance, creating if if necessary. |
static com.atlassian.crowd.service.client.CrowdClient |
getInstance()
|
static com.atlassian.crowd.integration.atlassianuser.UserGroupCache |
getUserGroupCacheInstance()
|
static CrowdClientControl |
peek()
Get the current instance but do not create one if it doesn't already exist. |
static void |
setScheduled(boolean isScheduled)
Indicate whether or not #refreshCache() will be called with a regular schedule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrowdClientHolder()
Method Detail |
---|
public static com.atlassian.crowd.service.client.CrowdClient getInstance()
public static com.atlassian.crowd.integration.atlassianuser.UserGroupCache getUserGroupCacheInstance()
public static CrowdClientControl get()
public static CrowdClientControl peek()
public static void setScheduled(boolean isScheduled)
#refreshCache()
will be called with a regular schedule. If so,
caches will not expire automatically.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |