public class MemberRoleUpdateCmdImpl extends ControllerCommandImpl implements MemberRoleUpdateCmd
The parameters memberId, roleId and orgEntityId are mandatory. Usage:
Usage 1: To assign roles to a user in an organization based on the user's users_id, use the following syntax (in this example, the user with users_id 2 will be granted roles -2 and -4 in the default organization):
memberId=2&roleId0=-2&orgEntityId0=-2000&roleId1=-4&orgEntityId1=-2000
Note that if the user had other roles defined, then these roles will be implicitly removed. The end result will be that the user only plays the two roles defined in this example.
Usage 2: To define roles for an organization (in this example, the roles -2 and -4 will be added to the default organization):
memberId=-2000&roleId0=-2&orgentityId0=-2000&roleId1=-4&orgentityId1=-2000
Usage 3: To assign a role to a user based on the user's distinguished name (DN):
distinguishedName=uid=buyeraadmin,o=buyer a organization,o=root organization&roleId=-2&orgentityId=-2000
In this example, the user with DN uid=buyeraadmin,o=buyer a organization,o=root organization will be granted the -2 role in the default organization.
Usage 4: To unassign a role from a user based on the user's distinguished name (DN):
distinguishedName=uid=buyeraadmin,o=buyer a organization,o=root organization&roleId=-2&orgentityId=-2000&unassignRole=true
This example will take away the buyeraadmin's -2 role in the default organization (if it existed). Exception Conditions
Modifier and Type | Field and Description |
---|---|
protected boolean | bToolsFramework |
protected boolean | byUserDN |
static java.lang.String | CLASSNAME
Class name.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected OrganizationAccessBean | iabOrgEntity
Deprecated.
No longer used as of version 6.0. Use istrMemberId to derive organization access bean, if roles are being changed for an organization.
|
protected UserAccessBean | iabUser
Deprecated.
No longer used as of version 6.0. Use istrMemberId to derive user access bean, if roles are being changed for a user.
|
protected boolean | ibOrgEntity |
protected boolean | ibUnassignRoleByDN |
protected java.lang.Long | inMemberId
Deprecated.
No longer used as of version 6.0. Use istrMemberId instead.
|
protected java.lang.String | istrMemberId |
protected java.lang.String | istrOrgEntityId
Deprecated.
No longer used as of version 6.0. No replacement exists.
|
protected java.lang.String | istrRedirectURL |
protected java.lang.String | istrRoleId
Deprecated.
No longer used as of version 6.0. No replacement exists.
|
protected java.util.Vector | vecOrgEntityId |
protected java.util.Vector | vecRemOrgEntityId |
protected java.util.Vector | vecRemRoleId |
protected java.util.Vector | vecRoleId |
Constructor and Description |
---|
MemberRoleUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | getIsAssigningRoleToOrgentity()
Get whether or not we are assigning the role to an organization.
|
boolean | getIsUnassigningRoleFromDN()
Get whether or not we are unassigning the role; applies only when updating a role based on a user DN.
|
boolean | getIsUpdatingRoleByDN()
Get whether or not the role(s) are being updated based on the user distinguished name.
|
java.lang.String | getMemberId()
Gets the memberId of the user or orgEntities to assign roles.
|
java.util.Vector | getOrgEntityIdsToAssign()
Get the list of organization Ids for the role assignment.
|
java.util.Vector | getOrgEntityIdsToUnassign()
Get the list of organization Ids for the role unassignment.
|
java.lang.String | getRedirectURL()
Return redirect URL.
|
java.util.Vector | getRoleIdsToAssign()
Get the role Ids for the role assignment.
|
java.util.Vector | getRoleIdsToUnassign()
Get the role Ids for the role unassignment.
|
TypedProperty | getViewInputProperties()
Removes the XML properties from the request
|
void | performExecute()
The performExecute method is called to when the marketing manager asks to add one or more users to a customer segment.
|
void | setIsAssigningRoleToOrgentity(boolean abOrgEntity)
Set whether or not we are assigning the role to an orgEntity.
|
void | setIsUnassigningRoleFromDN(boolean abUnassignRoleByDN)
Set whether or not we are unassigning the role.
|
void | setIsUpdatingRoleByDN(boolean abByUserDN)
Set whether or not we are updating the role by DN.
|
void | setMemberId(java.lang.String astrMemberId)
Sets the memberId of the user or orgEntities to assign roles.
|
void | setOrgEntityIdsToAssign(java.util.Vector avecOrgEntityId)
Set the organization Ids to assign.
|
void | setOrgEntityIdsToUnassign(java.util.Vector avecRemOrgEntityId)
Set the organization Ids to unassign.
|
void | setRedirectURL(java.lang.String astrRedirectURL)
Sets redirect URL.
|
void | setRequestProperties(TypedProperty reqProperties)
Sets the request properties
|
void | setRoleIdsToAssign(java.util.Vector avecRoleId)
The role Ids to assign.
|
void | setRoleIdsToUnassign(java.util.Vector avecRemRoleId)
Set the role Ids to unassign.
|
void | validateParameters()
Validates the parameters before calling performExecute
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected boolean bToolsFramework
protected java.lang.String istrRedirectURL
protected java.lang.String istrMemberId
protected java.util.Vector vecRoleId
protected java.util.Vector vecOrgEntityId
protected java.util.Vector vecRemRoleId
protected java.util.Vector vecRemOrgEntityId
protected boolean ibOrgEntity
protected boolean byUserDN
protected boolean ibUnassignRoleByDN
protected java.lang.Long inMemberId
protected UserAccessBean iabUser
protected OrganizationAccessBean iabOrgEntity
protected java.lang.String istrOrgEntityId
protected java.lang.String istrRoleId
public java.lang.String getMemberId()
public java.lang.String getRedirectURL()
public TypedProperty getViewInputProperties()
public void performExecute() throws ECException
public void setMemberId(java.lang.String astrMemberId)
public void setRedirectURL(java.lang.String astrRedirectURL)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void validateParameters() throws ECException
public boolean getIsUpdatingRoleByDN()
public boolean getIsAssigningRoleToOrgentity()
public boolean getIsUnassigningRoleFromDN()
public java.util.Vector getOrgEntityIdsToAssign()
public java.util.Vector getOrgEntityIdsToUnassign()
public java.util.Vector getRoleIdsToUnassign()
public java.util.Vector getRoleIdsToAssign()
public void setIsUpdatingRoleByDN(boolean abByUserDN)
public void setIsAssigningRoleToOrgentity(boolean abOrgEntity)
public void setIsUnassigningRoleFromDN(boolean abUnassignRoleByDN)
public void setOrgEntityIdsToAssign(java.util.Vector avecOrgEntityId)
public void setOrgEntityIdsToUnassign(java.util.Vector avecRemOrgEntityId)
public void setRoleIdsToUnassign(java.util.Vector avecRemRoleId)
public void setRoleIdsToAssign(java.util.Vector avecRoleId)