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
|
protected boolean | bCheckURL
Whether the URL parameter needs to be specified.
|
protected boolean | bToolsFramework
Whether this command is called by 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 OrganizationAccessBean | iabOrgEntity
The organization access bean of the organization having the role assigned to.
|
protected UserAccessBean | iabUser
The user access bean of the user having the role assigned to.
|
protected boolean | ibOrgEntity
Whether an organization is having the roles assigned or a user.
|
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 |
---|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.Integer ALL_ASSIGNABLE_ROLES
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 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 checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
public void performExecute() 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