com.ibm.commerce.usermanagement.commands
Class MemberRoleUnassignCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MemberRoleUnassignCmd, Protectable
- public class MemberRoleUnassignCmdImpl
- extends ControllerCommandImpl
- implements MemberRoleUnassignCmd
The implementation class for the MemberRoleUnassignCmd.
Method Summary |
boolean |
getCheckURL()
Gets indicator which indicates whether or not the command will check URL parameter. |
java.lang.String |
getMemberId()
Gets the memberId of the user or orgentities to unassign roles. |
java.util.Vector |
getOrgEntities()
Gets a vector which contains all orgEntityIds (Long) for roles to unassign. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
java.util.Vector |
getRoles()
Gets a vector which contains all roldIds (Integer) to be unassigned. |
TypedProperty |
getViewInputProperties()
Retrieves the request properties set by the setRequestProperties() method that will be passed
onto the view command. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
reset()
Resets all instance variables of the command to initial state so it can be used again. |
void |
setCheckURL(boolean abCheckURL)
Sets whether or not this command will check URL parameter. |
void |
setMemberId(java.lang.String astrMemberId)
Sets the memberId of the user or orgentities to unassign roles. |
void |
setRequestProperties(TypedProperty reqProperties)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
bCheckURL
protected boolean bCheckURL
bToolsFramework
protected boolean bToolsFramework
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
Descendants
protected java.lang.Long[] Descendants
iabOrgEntity
protected OrganizationAccessBean iabOrgEntity
iabUser
protected UserAccessBean iabUser
ibOrgEntity
protected boolean ibOrgEntity
inMemberId
protected java.lang.Long inMemberId
istrMemberId
protected java.lang.String istrMemberId
ivecOrgEntityId
protected java.util.Vector ivecOrgEntityId
ivecRoleId
protected java.util.Vector ivecRoleId
MemberRoleUnassignCmdImpl
public MemberRoleUnassignCmdImpl()
getCheckURL
public boolean getCheckURL()
- Description copied from interface:
MemberRoleUnassignCmd
- Gets indicator which indicates whether or not the command will check URL parameter.
- Specified by:
getCheckURL
in interface MemberRoleUnassignCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmd
- Returns:
- boolean The indicator indicates whether or not the command will check URL parameter
- true - This command will check URL parameter
- false - This command will not check URL parameter
getMemberId
public java.lang.String getMemberId()
- Description copied from interface:
MemberRoleUnassignCmd
- Gets the memberId of the user or orgentities to unassign roles.
- Specified by:
getMemberId
in interface MemberRoleUnassignCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmd
- Returns:
- The memberId
getOrgEntities
public java.util.Vector getOrgEntities()
- Description copied from interface:
MemberRoleUnassignCmd
- Gets a vector which contains all orgEntityIds (Long) for roles to unassign.
These orgEntityIds are get from requestProperties.
- Specified by:
getOrgEntities
in interface MemberRoleUnassignCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmd
- Returns:
- java.util.Vector A vector which contains all orgEntityIds (Long) for roles to unassigns
getResources
public AccessVector getResources()
throws ECException
- Description copied from interface:
ECCommand
- Gets the access vector accessed by this command.
The default implementation returns null indicating that no protectable resource is
accessed by this command. It is the responsibilities of the command writer to
return the protectable primary resource(s) and the corresponding actions accessed
by this command.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Returns:
- AccessVector - a vector of resource action pairs
getRoles
public java.util.Vector getRoles()
- Description copied from interface:
MemberRoleUnassignCmd
- Gets a vector which contains all roldIds (Integer) to be unassigned.
These roldIds are get from requestProperties.
- Specified by:
getRoles
in interface MemberRoleUnassignCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmd
- Returns:
- java.util.Vector A vector which contains all roldIds (Integer) to be unassigned
getViewInputProperties
public TypedProperty getViewInputProperties()
- Description copied from interface:
ControllerCommand
- Retrieves the request properties set by the setRequestProperties() method that will be passed
onto the view command.
Command writer can overwrite this method to return all, part or non of the request
properties to be passed to the view command
- Specified by:
getViewInputProperties
in interface ControllerCommand
- Overrides:
getViewInputProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Returns:
- com.ibm.commerce.datatype.TypeProperty
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Description copied from interface:
MemberRoleUnassignCmd
- Resets all instance variables of the command to initial state so it can be used again.
- Specified by:
reset
in interface MemberRoleUnassignCmd
- Overrides:
reset
in class AbstractECTargetableCommand
setCheckURL
public void setCheckURL(boolean abCheckURL)
- Description copied from interface:
MemberRoleUnassignCmd
- Sets whether or not this command will check URL parameter.
- Specified by:
setCheckURL
in interface MemberRoleUnassignCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmd
- Parameters:
abCheckURL
- boolean
- true - This command will check URL parameter
- false - This command will not check URL parameter
setMemberId
public void setMemberId(java.lang.String astrMemberId)
- Description copied from interface:
MemberRoleUnassignCmd
- Sets the memberId of the user or orgentities to unassign roles.
- Specified by:
setMemberId
in interface MemberRoleUnassignCmd
- Following copied from interface:
com.ibm.commerce.usermanagement.commands.MemberRoleUnassignCmd
- Parameters:
astrMemberId
- The memberId
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-