Class SynchroniseDirectoryCache
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.crowd.console.action.BaseAction
com.atlassian.crowd.console.action.directory.AbstractViewDirectory
com.atlassian.crowd.console.action.directory.AbstractViewDetailedDirectory
com.atlassian.crowd.console.action.directory.AbstractViewCacheableDirectory
com.atlassian.crowd.console.action.directory.ViewConnector
com.atlassian.crowd.console.action.directory.SynchroniseDirectoryCache
- All Implemented Interfaces:
com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.atlassian.crowd.console.action.directory.AbstractViewCacheableDirectory
cacheEnabled, syncInfo
Fields inherited from class com.atlassian.crowd.console.action.directory.AbstractViewDetailedDirectory
active, description, name
Fields inherited from class com.atlassian.crowd.console.action.directory.AbstractViewDirectory
directoryInstanceLoader
Fields inherited from class com.atlassian.crowd.console.action.BaseAction
actionHelper, actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, clusterService, crowdLicenseManager, directoryManager, initialLoad, logger, propertyManager, rememberMeService, SMALL_AVATAR_SIZE, smallAvatarUrl, tab, tokenAuthenticationManager
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Synchronises the directory cache, and then returns immediately.void
setTargetAction
(SynchroniseDirectoryCache.AllowedTargetAction targetAction) Methods inherited from class com.atlassian.crowd.console.action.directory.ViewConnector
setConnectorValidator
Methods inherited from class com.atlassian.crowd.console.action.directory.AbstractViewCacheableDirectory
getFullSyncError, getIncrementalSyncError, getNodeId, getNodeName, getRoundToDisplay, getSynchronisationDuration, getSynchronisationStartTime, getSynchronisationStatus, isCacheEnabled, isCurrentlySynchronising, setCacheEnabled
Methods inherited from class com.atlassian.crowd.console.action.directory.AbstractViewDetailedDirectory
getActive, getDescription, getName, setActive, setDescription, setName
Methods inherited from class com.atlassian.crowd.console.action.directory.AbstractViewDirectory
getDirectory, getDirectoryImplementationDescriptiveName, getID, setDirectoryInstanceLoader, setID
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionError, addActionMessage, applyFieldError, applyFieldErrors, applyValidationErrors, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, bindInformationAboutLicense, containsActionMessages, containsErrorMessages, directory, findAvatarUrl, getActionMessageAlertColor, getBootstrapManager, getCrowdApplication, getCurrentLicenseResourceTotal, getDisplayableLink, getHttpRequest, getImageLocation, getImageTitle, getLabel, getLicense, getLink, getLocaleProvider, getPasswordComplexityMessage, getRemoteUser, getSession, getSitemeshPageProperties, getSmallAvatarUrl, getTab, getText, getText, getTextProvider, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAtResourceLimit, isAuthenticated, isDataCenterLicense, isEvaluation, isGroupAdmin, isInitialLoad, isLicenseExpired, isLicenseForged, isRestartRequiredToEnableClustering, isSubscription, isSysAdmin, isWithinGracePeriod, renderFreemarkerTemplate, resolveAvatarUri, setActionHelper, setApplicationManager, setApplicationService, setClientProperties, setClusterService, setCrowdApplication, setCrowdLicenseManager, setDirectoryManager, setPropertyManager, setRememberMeService, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Constructor Details
-
SynchroniseDirectoryCache
public SynchroniseDirectoryCache()
-
-
Method Details
-
execute
Synchronises the directory cache, and then returns immediately. Runs the synchronise in a background thread so the page will not appear to hang If the directory is already synchronising, a new sync will NOT be started.- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classViewConnector
- Throws:
Exception
-
getTargetAction
-
setTargetAction
-