Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.action
Class LicenseValidateAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.jivesoftware.base.action.AbstractLicenseAction
          extended by com.jivesoftware.base.action.LicenseValidateAction
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, java.io.Serializable, java.lang.Cloneable

public class LicenseValidateAction
extends AbstractLicenseAction

The first step of the license upgrade process.

The execute method will validate the field licenseString and determine if it is a valid license and provide diffs and LicenseContainer object to the next view.

To display the license upgrade view, you should access the doInput method.

Since:
5.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
LicenseValidateAction()
           
 
Method Summary
 java.lang.String doInput()
           
 java.lang.String execute()
           
 java.util.Map getDiffs()
          Contains the differences (added/changed properties) for all the licenses.
 com.jivesoftware.base.license.LicenseContainer getLicenseContainer()
           
 java.lang.String getLicenseString()
           
 com.jivesoftware.base.license.LicenseContainer getNewContainer()
           
 com.jivesoftware.base.license.LicenseContainer getOldContainer()
           
 int getUserCount()
           
 void setLicenseString(java.lang.String licenseString)
           
 void validate()
           
 
Methods inherited from class com.jivesoftware.base.action.AbstractLicenseAction
cleanLicense, getEditionDisplayName, getProductDisplayName, getPropertyDisplayName
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseValidateAction

public LicenseValidateAction()
Method Detail

getLicenseContainer

public com.jivesoftware.base.license.LicenseContainer getLicenseContainer()

getUserCount

public int getUserCount()

getDiffs

public java.util.Map getDiffs()
Contains the differences (added/changed properties) for all the licenses. The key will be the product for the license, the value is a collection of property names (either field names, or map properties).

Returns:
list of diffs in the license

getLicenseString

public java.lang.String getLicenseString()

setLicenseString

public void setLicenseString(java.lang.String licenseString)

getNewContainer

public com.jivesoftware.base.license.LicenseContainer getNewContainer()

getOldContainer

public com.jivesoftware.base.license.LicenseContainer getOldContainer()

validate

public void validate()
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

doInput

public java.lang.String doInput()
                         throws java.lang.Exception
Overrides:
doInput in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.