com.ibm.commerce.usermanagement.commands
Interface MemberRoleAssignCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
MemberRoleAssignCmdImpl

public interface MemberRoleAssignCmd
extends ControllerCommand

The MemberRoleAssign command assigns roles for a member to orgentities.

The member can be a user, organization or organizational unit. Assigning roles to organization or organizational unit means that users who belong to an organization or organizational unit can take on roles assigned to that organization. In this case, the memberId and organEntityId should be same.

The assignment is stored in the MBRROLE table.

Use this command with SSL (Secure Sockets Layer) to ensure that the information are encrypted. To do so type the command with the HTTPS secure protocol.

The parameter URL and memberId are mandatory.

Behavior

Exception Conditions


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String NAME
           
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
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.
 java.util.Vector getRoles()
          Gets a vector which contains all roldIds (Integer) to be assigned.
 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.
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, 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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

NAME

public static final java.lang.String NAME
Method Detail

getCheckURL

public boolean getCheckURL()
Gets indicator which indicates whether or not the command will check URL parameter.
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()
Gets the memberId of the user or orgentities to assign roles.
Returns:
The memberId

getOrgEntities

public java.util.Vector getOrgEntities()
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.
Returns:
java.util.Vector A vector which contains all orgEntityIds (Long) for roles to assigns

getRoles

public java.util.Vector getRoles()
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.
Returns:
java.util.Vector A vector which contains all roldIds (Integer) to be assigned

reset

public void reset()
Resets all instance variables of the command to initial state so it can be used again.

setCheckURL

public void setCheckURL(boolean abCheckURL)
Sets whether or not this command will check URL parameter.
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)
Sets the memberId of the user or orgentities to assign roles.
Parameters:
astrMemberId - The memberId