com.ibm.commerce.usermanagement.commands
Class MemberRoleAssignCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MemberRoleAssignCmd, Protectable

public class MemberRoleAssignCmdImpl
extends ControllerCommandImpl
implements MemberRoleAssignCmd

The implementation for the AddressDelete command which deletes an entry from the member's address book.


Field Summary
protected  boolean bCheckURL
           
protected  boolean bToolsFramework
           
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
protected  OrganizationAccessBean iabOrgEntity
           
protected  UserAccessBean iabUser
           
protected  boolean ibOrgEntity
           
protected  java.lang.Long inMemberId
           
protected  java.lang.String istrMemberId
           
protected  java.util.Vector ivecOrgEntityId
           
protected  java.util.Vector ivecRoleId
           
 
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.usermanagement.commands.MemberRoleAssignCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
MemberRoleAssignCmdImpl()
           
 
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 assign roles.
 java.util.Vector getOrgEntities()
          Gets a vector which contains all orgEntityIds (Long) for roles to assign.
 AccessVector getResources()
          Gets the access vector accessed by this command.
 java.util.Vector getRoles()
          Gets a vector which contains all roldIds (Integer) to be assigned.
 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 assign 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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

bCheckURL

protected boolean bCheckURL

bToolsFramework

protected boolean bToolsFramework

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

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
Constructor Detail

MemberRoleAssignCmdImpl

public MemberRoleAssignCmdImpl()
Method Detail

getCheckURL

public boolean getCheckURL()
Description copied from interface: MemberRoleAssignCmd
Gets indicator which indicates whether or not the command will check URL parameter.
Specified by:
getCheckURL in interface MemberRoleAssignCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmd
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: MemberRoleAssignCmd
Gets the memberId of the user or orgentities to assign roles.
Specified by:
getMemberId in interface MemberRoleAssignCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmd
Returns:
The memberId

getOrgEntities

public java.util.Vector getOrgEntities()
Description copied from interface: MemberRoleAssignCmd
Gets a vector which contains all orgEntityIds (Long) for roles to assign. These orgEntityIds are get from requestProperties. For each roldId, there is a corresponding orgEntityId.
Specified by:
getOrgEntities in interface MemberRoleAssignCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmd
Returns:
java.util.Vector A vector which contains all orgEntityIds (Long) for roles to assigns

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: MemberRoleAssignCmd
Gets a vector which contains all roldIds (Integer) to be assigned. These roldIds are get from requestProperties. For each roldId, there is a corresponding orgEntityId.
Specified by:
getRoles in interface MemberRoleAssignCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmd
Returns:
java.util.Vector A vector which contains all roldIds (Integer) to be assigned

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: MemberRoleAssignCmd
Resets all instance variables of the command to initial state so it can be used again.
Specified by:
reset in interface MemberRoleAssignCmd
Overrides:
reset in class AbstractECTargetableCommand

setCheckURL

public void setCheckURL(boolean abCheckURL)
Description copied from interface: MemberRoleAssignCmd
Sets whether or not this command will check URL parameter.
Specified by:
setCheckURL in interface MemberRoleAssignCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmd
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: MemberRoleAssignCmd
Sets the memberId of the user or orgentities to assign roles.
Specified by:
setMemberId in interface MemberRoleAssignCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.MemberRoleAssignCmd
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. -