|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.atlassianuser.CrowdClientControl
public class CrowdClientControl
A class that holds an instance of RestCrowdClient
and of UserGroupCache
, initialised through
system properties or a properties file from the classpath.
Field Summary | |
---|---|
static java.lang.String |
CACHE_MINUTES_PROPERTY
|
static long |
DEFAULT_CACHE_MINUTES
|
Method Summary | |
---|---|
void |
flush()
Clear the underlying cache of users and groups. |
com.atlassian.crowd.integration.atlassianuser.UserGroupCache |
getCache()
|
com.atlassian.crowd.service.client.CrowdClient |
getClient()
|
com.atlassian.crowd.service.client.ClientProperties |
getClientProperties()
|
CrowdSynchronisationResult |
getSynchronisationResult()
Get details of the last attempted snapshot retrieval. |
SnapshotFetchingInfo |
refreshCache()
Unconditionally attempt to refresh the cache and propagate any exceptions. |
void |
refreshCacheIfNecessary()
Trigger a refresh of the cache unless there is a current valid snapshot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CACHE_MINUTES_PROPERTY
public static final long DEFAULT_CACHE_MINUTES
Method Detail |
---|
public com.atlassian.crowd.service.client.CrowdClient getClient()
public com.atlassian.crowd.integration.atlassianuser.UserGroupCache getCache()
public com.atlassian.crowd.service.client.ClientProperties getClientProperties()
ClientProperties
that were used to construct this clientpublic void flush()
public void refreshCacheIfNecessary()
public SnapshotFetchingInfo refreshCache() throws com.atlassian.crowd.exception.ApplicationPermissionException, com.atlassian.user.EntityException, com.atlassian.crowd.exception.CrowdException
com.atlassian.crowd.exception.CrowdException
com.atlassian.user.EntityException
com.atlassian.crowd.exception.ApplicationPermissionException
public CrowdSynchronisationResult getSynchronisationResult()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |