public class MemberRoleAssignCmdImpl extends ControllerCommandImpl implements MemberRoleAssignCmd
Assigning roles to an organizational entity controls what roles other users can have in this organizational entity. An organizational entity can only have a role if its parent organizational entity has that role. When assigning a role to an organizational entity, 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 parameters URL and memberId are mandatory.
Behavior
Exception Conditions
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
ALL_ASSIGNABLE_ROLES
Value in of Assignable Role column in Role Assignment Permission table to signify all available roles
|
static java.lang.String |
CLASSNAME
The name of this implementation of the command.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
NAMEdefaultCommandClassName| Constructor and Description |
|---|
MemberRoleAssignCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIsAllowed(AccessVector resource,
java.lang.String action)
Check if the access control by calling checkIsAllowed() in the super classes
|
boolean |
getCheckURL()
Returns whether the URL needs to be specified.
|
java.lang.String |
getMemberId()
Returns the member identifier of the member having the role assigned to.
|
java.util.Vector |
getOrgEntities()
Returns a list organization entity identifiers.
|
AccessVector |
getResources()
Returns the resources that needs to be checked before the command is executed for access control.
|
java.util.Vector |
getRoles()
Returns a list of role identifiers.
|
TypedProperty |
getViewInputProperties()
Returns the request properties with the tool framework objects removed.
|
void |
performExecute()
Assigns the specified member to the specified role.
|
void |
reset()
Resets the command to its original state so the object can be reused to assign a role to a member.
|
void |
setCheckURL(boolean abCheckURL)
Sets whether the URL needs to be specified.
|
void |
setMemberId(java.lang.String astrMemberId)
Sets the member identifier.
|
void |
setRequestProperties(TypedProperty reqProperties)
Sets the request properties.
|
void |
validateParameters()
Validates the parameters passed to the command before the role is assigned to the member.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.Integer ALL_ASSIGNABLE_ROLES
public boolean getCheckURL()
getCheckURL in interface MemberRoleAssignCmdpublic java.lang.String getMemberId()
getMemberId in interface MemberRoleAssignCmdpublic java.util.Vector getOrgEntities()
getOrgEntities in interface MemberRoleAssignCmdpublic AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - if access is not allowedpublic java.util.Vector getRoles()
getRoles in interface MemberRoleAssignCmdpublic TypedProperty getViewInputProperties()
getViewInputProperties in interface ControllerCommandgetViewInputProperties in class ControllerCommandImplpublic void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
resource - The resource.action - The action.ECException - ECApplicationException is thrown if authorization fails.public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - If there was a problem assigning the member to the role or executing
the PostMemberRoleAssign command.public void reset()
reset in interface MemberRoleAssignCmdreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setCheckURL(boolean abCheckURL)
setCheckURL in interface MemberRoleAssignCmdabCheckURL - whether the URL needs to be specified.public void setMemberId(java.lang.String astrMemberId)
setMemberId in interface MemberRoleAssignCmdastrMemberId - the member identifier.public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqProperties - the parameters passed to the command.ECException - If there were any invalid parameter specified or a problem
indicated by the PreMemberRoeAssign command.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - If either the role or the member does exist, an ECApplicationException will
be thrown.