com.ibm.commerce.collaboration.workspaces.commands
Interface ChangeUserRoleCtrlCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
All Known Implementing Classes:
ChangeUserRoleCtrlCmdImpl

public interface ChangeUserRoleCtrlCmd
extends ToolsControllerCommand

Changes the role of a member in the collaborative workspace. The following roles can be assigned to the member:

  1. manager: This role has access read and write information in the collaborative workspace; and to add, change, or remove member access.
  2. author: This role has access to read and write information in the collaborative workspace.
  3. reader: This role has access to read or view information in the collaborative workspace.

Behaviour

The command does the following a member in the collaborative workspace:

  1. Verifies that the user requesting the action has a Manager role in the collaborative workspace or a Site Administrator role in the seller organization. Otherwise, the requester does not have the authority to execute this command.
  2. Creates an instance of the CollabManagerAccessBean.
  3. Removes original role of the user by calling the deleteXXXGroupMember in the access bean where XXX refers to the original role of the user.
  4. Adds the user to the new role by calling the addXXXGroupMember in the access bean where XXX refers to the new role of the user.

Exception Conditions

If the collaborative workspace Id parameter is missing, the command sets the _ERR_MISSING_CMD_PARAMETER exception task to handle the error.

If the user requester does not have the authority to execute the AddMember function, the command sets the EC_ERROR_COLLAB_NO_AUTHORIZATION exception task to handle the error.


Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
static java.lang.String defaultCommandClassName
          The default implementation class is "com.ibm.commerce.collaboration.workspaces.commands.ChangeUserRoleCtrlCmdImpl"
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.collaboration.workspaces.commands.ChangeUserRoleCtrlCmd".
 
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
The internal copyright field.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class is "com.ibm.commerce.collaboration.workspaces.commands.ChangeUserRoleCtrlCmdImpl"

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.collaboration.workspaces.commands.ChangeUserRoleCtrlCmd".