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

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

Usecase to change the profile of an IP range.


Nested Class Summary
static class IPRangeProfile.Part
          IP address part holder.
 
Field Summary
protected static java.lang.String DESCRIPTION
           
protected static java.lang.String ID
           
protected static java.lang.String NAME
           
protected static java.lang.String NETWORK_ADDRESS
           
protected static java.lang.String PART_NUMBERS
           
protected static java.lang.String SUBNET_MASK
           
 
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
IPRangeProfile()
           
 
Method Summary
protected  void doCheckExecutionConditions()
           
protected  void doExecute()
           
protected  org.apache.lenya.ac.IPRange getIPRange()
           
 void setParameter(java.lang.String name, java.lang.Object value)
           
protected static void validateAddresses(org.apache.lenya.cms.usecase.AbstractUsecase usecase)
           
 
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, 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

ID

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

NAME

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

DESCRIPTION

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

NETWORK_ADDRESS

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

SUBNET_MASK

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

PART_NUMBERS

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

IPRangeProfile

public IPRangeProfile()
Method Detail

doCheckExecutionConditions

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

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()

getIPRange

protected org.apache.lenya.ac.IPRange getIPRange()
Returns:
The IP range.

setParameter

public void setParameter(java.lang.String name,
                         java.lang.Object value)
Specified by:
setParameter in interface org.apache.lenya.cms.usecase.Usecase
Overrides:
setParameter in class org.apache.lenya.cms.usecase.AbstractUsecase
See Also:
Usecase.setParameter(java.lang.String, java.lang.Object)

validateAddresses

protected static void validateAddresses(org.apache.lenya.cms.usecase.AbstractUsecase usecase)


Copyright $ Apache Software Foundation. All Rights Reserved.