java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.usermanagement.commands.MemberLockCmdImpl
This command is used to set the lock state of a given organization.
Use this command with SSL (Secure Sockets Layer) to ensure that the information is encrypted. To do so type the command with the HTTPS secure protocol.
Behavior
Exception Conditions
memberId
is null (_ERR_MISSING_PARMS).state
is null (_ERR_MISSING_PARMS).
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
NAME Class name. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
MemberLockCmdImpl() Constructor for MemberLockCmdImpl. |
Method Summary | |
---|---|
AccessVector |
getResources() Returns the organization for which we are attempting to set the lock state. |
boolean |
isGeneric() Checks if this is a generic command. |
boolean |
isRetriable() Checks if this command is retriable on rollback exception |
void |
lock() Sets the lock state to Locked. |
void |
performExecute() Executes the command. |
void |
setMemberId(java.lang.String memberId) Sets the memberId for the organization to either Locked or Unlocked state. |
void |
setRequestProperties(
TypedProperty reqProperties) Sets the properties of the command. |
void |
unlock() Sets the lock state to Unlocked. |
void |
validateParameters() Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
Constructor Detail |
---|
public MemberLockCmdImpl()
Method Detail |
---|
public void setMemberId(java.lang.String memberId)
setMemberId
in interface
MemberLockCmd
memberId
- The memberId of the organization to
lock/unlock.public void lock()
lock
in interface
MemberLockCmd
MemberLockCmd.lock()
public void unlock()
unlock
in interface
MemberLockCmd
MemberLockCmd.unlock()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public boolean isGeneric()
ControllerCommand
isGeneric
in interface
ControllerCommand
isGeneric
in class
ControllerCommandImpl
ControllerCommand.isGeneric()
public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
reqProperties
- request propertiesECException
ControllerCommand.setRequestProperties(TypedProperty)
public void validateParameters() throws ECException
ECCommand
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
ECCommand.validateParameters()
public boolean isRetriable()
ControllerCommand
isRetriable
in interface
ControllerCommand
isRetriable
in class
ControllerCommandImpl
ControllerCommand.isRetriable()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
ECCommand.getResources()