public class MemberRoleUnassignCmdImpl extends ControllerCommandImpl implements MemberRoleUnassignCmd
The member can be a user, organization or organizational unit. When unassigning roles from organization or organizational unit, the member ID and organization entity ID should be the same.
The unassigned records is removed from 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
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
MemberRoleUnassignCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIsAllowed(AccessVector resource,
java.lang.String action)
Performs resource-level access control on demand when roles are being unassigned for
a user.
|
boolean |
getCheckURL()
Returns whether the URL parameter needs to be specified.
|
java.lang.String |
getMemberId()
Returns the member identifier of the member which is being unassigned from the specified role.
|
java.util.Vector |
getOrgEntities()
Returns a list of organization entity identifiers.
|
AccessVector |
getResources()
If roles are being unassigned for an organization, return that Organization as the resource.
|
java.util.Vector |
getRoles()
Returns the list of roles that the member is being unassigned from.
|
TypedProperty |
getViewInputProperties()
Returns the request properties without the tools framework objects.
|
void |
performExecute()
Unassigns the member from the specified member groups.
|
void |
reset()
Resets the parameters to their original state so the command object can be reused.
|
void |
setCheckURL(boolean abCheckURL)
Sets whether the URL needs to be specified.
|
void |
setMemberId(java.lang.String astrMemberId)
Sets the member identifier of the member that is being unassigned to the specified roles.
|
void |
setRequestProperties(TypedProperty reqProperties)
Sets the request properties by calling the ProcessRequestProperties command.
|
void |
validateParameters()
Validate the member and the roles specified.
|
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 boolean getCheckURL()
getCheckURL in interface MemberRoleUnassignCmdpublic java.lang.String getMemberId()
getMemberId in interface MemberRoleUnassignCmdpublic java.util.Vector getOrgEntities()
getOrgEntities in interface MemberRoleUnassignCmdpublic AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - if access is not allowedpublic java.util.Vector getRoles()
getRoles in interface MemberRoleUnassignCmdpublic TypedProperty getViewInputProperties()
getViewInputProperties in interface ControllerCommandgetViewInputProperties in class ControllerCommandImplpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - If there was a problem unassigning the member from the
roles or a problem when executing the customize post command.public void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
resource - Access Vectoraction - The action.Throws - ECSystemException.ECExceptionpublic void reset()
reset in interface MemberRoleUnassignCmdreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setCheckURL(boolean abCheckURL)
setCheckURL in interface MemberRoleUnassignCmdWhether - the URL needs to be specified.public void setMemberId(java.lang.String astrMemberId)
setMemberId in interface MemberRoleUnassignCmdastrMemberId - the member identifier.public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqProperties - the parameters of the command.ECException - If there is a problem with invalid or missing parameters
or there was a problem reported by the PreMemberRoleUnassign command.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - If any of the specified parameters are invalid.