public interface MemberRoleUpdateCmd extends ControllerCommand
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 memberId, roleId and orgEntityId are mandatory.
Usage:
Usage 1
To assign roles to a user in an organization based on the user's user_id, use the
following syntax. In this example, the user with user_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). 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.
distinguishedName=uid=buyeraadmin,o=buyer organization,o=root organization&roleId=-2&orgentityId=-2000
Usage 4
To unassign a role from a user based on the user's distinguished name (DN). This example will take away the buyeradmin's -2 role in the default organization (if it existed).
distinguishedName=uid=buyeradmin,o=buyer organization,o=root organization&roleId=-2&orgentityId=-2000&unassignRole=true
Exception Conditions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
NAME
defaultCommandClassName is the default implementation class used by command factory to instantiate
this command if the interface com.ibm.commerce.tools.campaigns.CalcCodeDeleteControllerCmd is not
defined in the CMDREG table.
|
static java.lang.String |
REQUEST_PARAM_DISTINGUISHEDNAME
Request parameter: distinguishedName
|
static java.lang.String |
REQUEST_PARAM_MEMBERID
Request parameter: memberId
|
static java.lang.String |
REQUEST_PARAM_ORGENTITYID
Request parameter: orgEntityId
|
static java.lang.String |
REQUEST_PARAM_ROLEID
Request parameter: roleId
|
static java.lang.String |
REQUEST_PARAM_UNASSIGNROLE
Request parameter: unassignRole
|
static java.lang.String |
REQUEST_PARAM_UNASSIGNROLE_VALUE_TRUE
unassignRole request parameter value: true
|
defaultCommandClassName
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMemberId()
Gets the memberId of the user or orgEntities to assign roles.
|
java.lang.String |
getRedirectURL()
Return redirect URL.
|
void |
setMemberId(java.lang.String astrMemberId)
Sets the memberId of the user or orgEntities to assign roles.
|
void |
setRedirectURL(java.lang.String astrRedirectURL)
Sets redirect URL.
|
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String REQUEST_PARAM_UNASSIGNROLE
static final java.lang.String REQUEST_PARAM_UNASSIGNROLE_VALUE_TRUE
static final java.lang.String REQUEST_PARAM_MEMBERID
static final java.lang.String REQUEST_PARAM_ROLEID
static final java.lang.String REQUEST_PARAM_ORGENTITYID
static final java.lang.String REQUEST_PARAM_DISTINGUISHEDNAME
java.lang.String getMemberId()
java.lang.String getRedirectURL()
void setMemberId(java.lang.String astrMemberId)
astrMemberId
- The memberIdvoid setRedirectURL(java.lang.String astrRedirectURL)
astrRedirectURL
- The redirect URL