java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.tools.command.ToolsControllerCommandImpl
com.ibm.commerce.collaboration.workspaces.commands.ChangeUserRoleCtrlCmdImpl
Changes the role of a member in the collaborative workspace. The following roles can be assigned to the member:
Behaviour
The command does the following a member in the collaborative workspace:
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 Copyright statement |
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.collaboration.workspaces.commands.ChangeUserRoleCtrlCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ChangeUserRoleCtrlCmdImpl() |
Method Summary | |
java.lang.String | getCollabSpaceId() Gets the unique identifier associated with the collaborative workspace. |
java.lang.String | getMemberId() Gets the unique identifier of the member whose role is to be changed. |
AccessVector | getResources() Gets the access control resources corresponding to the command. |
java.lang.String | getRole() Gets the new role that is to be assigned to the collaborative workspace member. |
void | performExecute() Contains the business logic for the command. |
void | setCollabSpaceId(java.lang.String newCollabSpaceId) Sets the unique identifier associated with the collaborative workspace to a local variable. |
void | setMemberId(java.lang.String newMemberId) Sets the unique identifier of the collaborative workspace member whose role is to be changed. |
void | setRequestProperties(TypedProperty reqParms) Gets the input parameters from the requestProperties object and sets each parameter to a local variable. |
void | setRole(java.lang.String newRole) Sets the new role of the collaborative workspace member to a local variable. |
void | validateParameters() Validates that the syntax of the input parameters are correct. |
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, 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, isGeneric, isRetriable, 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 |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ChangeUserRoleCtrlCmdImpl()
Method Detail |
public java.lang.String getCollabSpaceId()
public java.lang.String getMemberId()
public AccessVector getResources() throws ECException
public java.lang.String getRole()
public void performExecute() throws ECException
public void setCollabSpaceId(java.lang.String newCollabSpaceId)
public void setMemberId(java.lang.String newMemberId)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void setRole(java.lang.String newRole)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.