org.apache.lenya.cms.ac.usecases
Class ChangePassword

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.usecase.AbstractUsecase
          extended by org.apache.lenya.cms.ac.usecases.AccessControlUsecase
              extended by org.apache.lenya.cms.ac.usecases.AbstractChangePassword
                  extended by org.apache.lenya.cms.ac.usecases.ChangePassword
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.lenya.cms.usecase.Usecase

public class ChangePassword
extends AbstractChangePassword

Usecase to change a user's password. The old password is checked.


Field Summary
protected static java.lang.String OLD_PASSWORD
           
 
Fields inherited from class org.apache.lenya.cms.ac.usecases.AbstractChangePassword
CONFIRM_PASSWORD, NEW_PASSWORD
 
Fields inherited from class org.apache.lenya.cms.usecase.AbstractUsecase
ATTRIBUTE_NAME, ATTRIBUTE_POLICY, ATTRIBUTE_USECASE, ATTRIBUTE_VALUE, context, ELEMENT_EXIT, ELEMENT_PARAMETER, ELEMENT_TRANSACTION, ELEMENT_VIEW, ERROR_OBJECTS_CHECKED_OUT, EVENT_CHECK_EXECUTION_CONDITIONS, EVENT_CHECK_POSTCONDITIONS, EVENT_CHECK_PRECONDITIONS, EVENT_EXECUTE, manager, MODEL, PARAMETER_CHECKOUT_RESTRICTED_TO_SESSION, PARAMETER_FACTORY, PARAMETER_SESSION, PARAMETER_STATE_MACHINE, PARAMETERS_INITIALIZED, SOURCE_URL, TRANSITIONS, VALUE_OPTIMISTIC, VALUE_PESSIMISTIC
 
Fields inherited from interface org.apache.lenya.cms.usecase.Usecase
ROLE
 
Constructor Summary
ChangePassword()
           
 
Method Summary
protected  void doCheckExecutionConditions()
           
protected  org.apache.lenya.ac.User getUser()
           
 
Methods inherited from class org.apache.lenya.cms.ac.usecases.AbstractChangePassword
checkNewPassword, doExecute
 
Methods inherited from class org.apache.lenya.cms.ac.usecases.AccessControlUsecase
getAccessController, getGroupManager, getIpRangeManager, getRoleManager, getUserManager, initializeAccessController
 
Methods inherited from class org.apache.lenya.cms.usecase.AbstractUsecase
addErrorMessage, addErrorMessage, addErrorMessages, addInfoMessage, addInfoMessage, advance, advanceState, cancel, canCheckOut, checkEvent, checkExecutionConditions, checkoutRestrictedToSession, checkPostconditions, checkPreconditions, clearErrorMessages, clearInfoMessages, configure, contextualize, deleteParameter, doCheckPostconditions, doCheckPreconditions, doInitialize, dumpErrorMessages, execute, getBooleanCheckboxParameter, getContext, getDocumentFactory, getErrorMessages, getExitQueryString, getInfoMessages, getName, getNodesToLock, getParameter, getParameter, getParameterAsBoolean, getParameterAsInteger, getParameterAsString, getParameterAsString, getParameterNames, getParameters, getPart, getSession, getSourceURL, getStateMachine, getTargetURL, getView, hasErrors, hasInfoMessages, initialize, initializeParametersIfNotDone, initParameters, isOptimistic, lockInvolvedObjects, lockInvolvedObjects, prepareView, service, setDefaultTargetURL, setExitParameter, setName, setParameter, setPart, setSession, setSourceURL, setTestSession, setView, startTransaction
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OLD_PASSWORD

protected static final java.lang.String OLD_PASSWORD
See Also:
Constant Field Values
Constructor Detail

ChangePassword

public ChangePassword()
Method Detail

getUser

protected org.apache.lenya.ac.User getUser()
Specified by:
getUser in class AbstractChangePassword
Returns:
Always returns the currently logged in user.

doCheckExecutionConditions

protected void doCheckExecutionConditions()
                                   throws java.lang.Exception
Overrides:
doCheckExecutionConditions in class AbstractChangePassword
Throws:
java.lang.Exception
See Also:
AbstractUsecase.doCheckExecutionConditions()


Copyright $ Apache Software Foundation. All Rights Reserved.