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

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.GroupMembers
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 GroupMembers
extends org.apache.lenya.cms.ac.usecases.AccessControlUsecase

Usecase to change the members of a group.

Version:
$Id: GroupMembers.java 407305 2006-05-17 16:21:49Z andreas $

Field Summary
protected static java.lang.String ADD
           
protected static java.lang.String GROUP_USER
           
protected static java.lang.String GROUP_USERS
           
protected static java.lang.String OTHER_USER
           
protected static java.lang.String OTHER_USERS
           
protected static java.lang.String REMOVE
           
 
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
GroupMembers()
           
 
Method Summary
 void advance()
           
protected  void doExecute()
           
protected  org.apache.lenya.ac.Group getGroup()
           
protected  void initParameters()
           
 
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, advanceState, cancel, canCheckOut, checkEvent, checkExecutionConditions, checkoutRestrictedToSession, checkPostconditions, checkPreconditions, clearErrorMessages, clearInfoMessages, configure, contextualize, deleteParameter, doCheckExecutionConditions, 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, 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

GROUP_USERS

protected static final java.lang.String GROUP_USERS
See Also:
Constant Field Values

OTHER_USERS

protected static final java.lang.String OTHER_USERS
See Also:
Constant Field Values

ADD

protected static final java.lang.String ADD
See Also:
Constant Field Values

REMOVE

protected static final java.lang.String REMOVE
See Also:
Constant Field Values

GROUP_USER

protected static final java.lang.String GROUP_USER
See Also:
Constant Field Values

OTHER_USER

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

GroupMembers

public GroupMembers()
Method Detail

initParameters

protected void initParameters()
Overrides:
initParameters in class org.apache.lenya.cms.usecase.AbstractUsecase
See Also:
AbstractUsecase.initParameters()

doExecute

protected void doExecute()
                  throws java.lang.Exception
Overrides:
doExecute in class org.apache.lenya.cms.usecase.AbstractUsecase
Throws:
java.lang.Exception
See Also:
AbstractUsecase.doExecute()

advance

public void advance()
             throws org.apache.lenya.cms.usecase.UsecaseException
Specified by:
advance in interface org.apache.lenya.cms.usecase.Usecase
Overrides:
advance in class org.apache.lenya.cms.usecase.AbstractUsecase
Throws:
org.apache.lenya.cms.usecase.UsecaseException
See Also:
Usecase.advance()

getGroup

protected org.apache.lenya.ac.Group getGroup()


Copyright $ Apache Software Foundation. All Rights Reserved.