Class License
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.crowd.console.action.BaseAction
com.atlassian.crowd.console.action.License
- All Implemented Interfaces:
Serializable
,org.apache.struts2.action.Action
,org.apache.struts2.interceptor.ValidationAware
,org.apache.struts2.locale.LocaleProvider
,org.apache.struts2.text.TextProvider
,org.apache.struts2.Validateable
- See Also:
-
Field Summary
FieldsFields inherited from class com.atlassian.crowd.console.action.BaseAction
actionHelper, actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, BASIC_AUTH_PLUGIN_KEY, BASIC_AUTH_SYS_PROP_DISABLED, clientProperties, clusterService, crowdLicenseManager, directoryManager, initialLoad, pluginPropertyManager, propertyManager, rememberMeService, SMALL_AVATAR_SIZE, smallAvatarUrl, tab, tokenAuthenticationManager
Fields inherited from class org.apache.struts2.ActionSupport
container
Fields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
ConstructorsConstructorDescriptionLicense
(UserService userService, UserPermissionService userPermissionService, com.atlassian.license.SIDManager sidManager, SystemInfoHelper systemInfoHelper) -
Method Summary
Modifier and TypeMethodDescriptionexecute()
long
getKey()
com.atlassian.license.SIDManager
boolean
Returns true if the user needs to be authenticated before updating the license.protected void
void
void
setPassword
(String password) void
setUsername
(String username) update()
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, getPrincipalName, getRemoteUser, getSession, getSitemeshPageProperties, getSmallAvatarUrl, getTab, getText, getText, getTextProvider, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAuthenticated, isBasicAuthEnabled, isDataCenterLicense, isEvaluation, isGroupAdmin, isInitialLoad, isLicenseExpired, isLicenseForged, isRestartRequiredToEnableClustering, isSubscription, isSysAdmin, isWithinGracePeriod, renderFreemarkerTemplate, resolveAvatarUri, setActionHelper, setApplicationManager, setApplicationService, setClientProperties, setClusterService, setCrowdApplication, setCrowdLicenseManager, setDirectoryManager, setPluginPropertyManager, setPropertyManager, setRememberMeService, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
Methods inherited from class org.apache.struts2.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, toLocale, validate
-
Field Details
-
currentResources
protected long currentResources
-
-
Constructor Details
-
License
@Autowired public License(UserService userService, UserPermissionService userPermissionService, com.atlassian.license.SIDManager sidManager, SystemInfoHelper systemInfoHelper)
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceorg.apache.struts2.action.Action
- Overrides:
execute
in classBaseAction
-
update
- Throws:
Exception
-
processLicenseDetails
protected void processLicenseDetails() -
isAtResourceLimit
public boolean isAtResourceLimit()- Overrides:
isAtResourceLimit
in classBaseAction
-
isAuthenticationRequired
Returns true if the user needs to be authenticated before updating the license.Unauthenticated updating is allowed when Crowd is locked up because of invalid license or too new Crowd version.
- Returns:
- true if the user needs to be authenticated before updating the license
-
getKey
-
setKey
-
getPassword
-
setPassword
-
getUsername
-
setUsername
-
getSidManager
public com.atlassian.license.SIDManager getSidManager() -
getSystemInfoHelper
-
getCrowdSid
-
getCurrentResources
public long getCurrentResources()
-