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 |
---|---|
protected boolean | bCheckURL
Whether to check if the URL parameter has been specified.
|
protected boolean | bToolsFramework
Whether the command is being called from the tools framework.
|
static java.lang.String | CLASSNAME
The name of this implementation of the command.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected java.lang.Long[] | Descendants
The descendant identifiers of the organization.
|
protected OrganizationAccessBean | iabOrgEntity
The organization that is being unassigned from the role.
|
protected UserAccessBean | iabUser
The user that is being unassigned from the role.
|
protected boolean | ibOrgEntity
Whether the member is a user or organization entity.
|
protected java.lang.Long | inMemberId
The long representation of the member identifier.
|
protected java.lang.String | istrMemberId
The string representation of the member identifier.
|
protected java.util.Vector | ivecOrgEntityId
A list of organization entity identifiers.
|
protected java.util.Vector | ivecRoleId
A list of role identifiers.
|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.String istrMemberId
protected java.lang.Long inMemberId
protected java.util.Vector ivecRoleId
protected java.util.Vector ivecOrgEntityId
protected UserAccessBean iabUser
protected OrganizationAccessBean iabOrgEntity
protected boolean ibOrgEntity
protected java.lang.Long[] Descendants
protected boolean bCheckURL
protected boolean bToolsFramework
public boolean getCheckURL()
public java.lang.String getMemberId()
public java.util.Vector getOrgEntities()
public AccessVector getResources() throws ECException
public java.util.Vector getRoles()
public TypedProperty getViewInputProperties()
public void performExecute() throws ECException
public void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
public void reset()
public void setCheckURL(boolean abCheckURL)
public void setMemberId(java.lang.String astrMemberId)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void validateParameters() throws ECException