com.atlassian.crowd.console.action
Class License

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.crowd.console.action.BaseAction
          extended by com.atlassian.crowd.console.action.License
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, Serializable, Cloneable

public class License
extends BaseAction

See Also:
Serialized Form

Field Summary
protected  long currentResources
           
 
Fields inherited from class com.atlassian.crowd.console.action.BaseAction
actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, crowdLicenseManager, directoryManager, initialLoad, propertyManager, tab, tokenAuthenticationManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
License()
           
 
Method Summary
 String doDefault()
           
 String doUpdate()
           
 String getCrowdSid()
           
 long getCurrentResources()
           
 String getKey()
           
 String getPassword()
           
 com.atlassian.license.SIDManager getSidManager()
           
 SystemInfoHelper getSystemInfoHelper()
           
 String getUsername()
           
 boolean isAtResourceLimit()
           
protected  void processLicenseDetails()
           
 Boolean requireAuthentication()
          Returns true if the user needs to be authenticated before updating the license.
 void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)
           
 void setKey(String key)
           
 void setPassword(String password)
           
 void setSidManager(com.atlassian.license.SIDManager sidManager)
           
 void setSystemInfoHelper(SystemInfoHelper systemInfoHelper)
           
 void setUsername(String username)
           
 
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionMessage, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, containsActionMessages, containsErrorMessages, directory, getActionMessageAlertColor, getAttribute, getBootstrapManager, getCurrentLicenseResourceTotal, getDisplayableLink, getFirstAttribute, getHttpRequest, getImageLocation, getImageTitle, getLicense, getLink, getRemoteUser, getSession, getSitemeshPageProperties, getSitemeshPageProperty, getTab, getText, getText, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAdmin, isAuthenticated, isEvaluation, isInitialLoad, isLicenseExpired, isSubscription, isWithinGracePeriod, renderFreemarkerTemplate, setApplicationManager, setApplicationService, setClientProperties, setCrowdLicenseManager, setCrowdUserDetailsService, setDirectoryManager, setPropertyManager, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentResources

protected long currentResources
Constructor Detail

License

public License()
Method Detail

doDefault

public String doDefault()
Overrides:
doDefault in class BaseAction

doUpdate

public String doUpdate()
                throws Exception
Throws:
Exception

processLicenseDetails

protected void processLicenseDetails()

isAtResourceLimit

public boolean isAtResourceLimit()
Overrides:
isAtResourceLimit in class BaseAction

requireAuthentication

public Boolean requireAuthentication()
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

public String getKey()

setKey

public void setKey(String key)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getSidManager

public com.atlassian.license.SIDManager getSidManager()

setSidManager

public void setSidManager(com.atlassian.license.SIDManager sidManager)

getSystemInfoHelper

public SystemInfoHelper getSystemInfoHelper()

setSystemInfoHelper

public void setSystemInfoHelper(SystemInfoHelper systemInfoHelper)

getCrowdSid

public String getCrowdSid()

getCurrentResources

public long getCurrentResources()

setHttpAuthenticator

public void setHttpAuthenticator(HttpAuthenticator httpAuthenticator)


Copyright © 2012 Atlassian. All Rights Reserved.