com.ibm.commerce.usermanagement.commands
Class MemberRoleUpdateCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.usermanagement.commands.MemberRoleUpdateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MemberRoleUpdateCmd, Protectable

public class MemberRoleUpdateCmdImpl
extends ControllerCommandImpl
implements MemberRoleUpdateCmd

The MemberRoleUpdateCmdImpl command assigns roles to a member for an organization. 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 memberId, roleId and orgEntityId are mandatory. Exception Conditions

See Also:
Serialized Form

Field Summary
protected boolean bToolsFramework
protected boolean byUserDN
static java.lang.String CLASSNAME
Classname.
static java.lang.String COPYRIGHT
IBM copyright notice field.
protected OrganizationAccessBean iabOrgEntity
protected UserAccessBean iabUser
protected boolean ibOrgEntity
protected java.lang.Long inMemberId
protected java.lang.String istrMemberId
protected java.lang.String istrOrgEntityId
protected java.lang.String istrRedirectURL
protected java.lang.String istrRoleId
protected java.util.Vector vecOrgEntityId
protected java.util.Vector vecRemOrgEntityId
protected java.util.Vector vecRemRoleId
protected java.util.Vector vecRoleId
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.usermanagement.commands.MemberRoleUpdateCmd
NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
MemberRoleUpdateCmdImpl()
Method Summary
java.lang.String getMemberId()
Gets the memberId of the user or orgentities to assign roles.
java.lang.String getRedirectURL()
Return redirect URL.
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 segments.
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.
void setRequestProperties(TypedProperty reqProperties)
Sets the request properties
void validateParameters()
Validates the parameters before calling performExecute
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
Classname.
See Also:
Constant Field Values

bToolsFramework

protected boolean bToolsFramework

istrMemberId

protected java.lang.String istrMemberId

inMemberId

protected java.lang.Long inMemberId

istrRoleId

protected java.lang.String istrRoleId

vecRoleId

protected java.util.Vector vecRoleId

vecOrgEntityId

protected java.util.Vector vecOrgEntityId

vecRemRoleId

protected java.util.Vector vecRemRoleId

vecRemOrgEntityId

protected java.util.Vector vecRemOrgEntityId

istrOrgEntityId

protected java.lang.String istrOrgEntityId

istrRedirectURL

protected java.lang.String istrRedirectURL

iabUser

protected UserAccessBean iabUser

iabOrgEntity

protected OrganizationAccessBean iabOrgEntity

ibOrgEntity

protected boolean ibOrgEntity

byUserDN

protected boolean byUserDN
Constructor Detail

MemberRoleUpdateCmdImpl

public MemberRoleUpdateCmdImpl()
Method Detail

getMemberId

public java.lang.String getMemberId()
Gets the memberId of the user or orgentities to assign roles.
Specified by:
getMemberId in interface MemberRoleUpdateCmd
Returns:
The memberId

getRedirectURL

public java.lang.String getRedirectURL()
Return redirect URL.
Specified by:
getRedirectURL in interface MemberRoleUpdateCmd
Returns:
The redirect URL.

getViewInputProperties

public TypedProperty getViewInputProperties()
Removes the xml properties from the request
Specified by:
getViewInputProperties in interface ControllerCommand
Overrides:
getViewInputProperties in class ControllerCommandImpl
Returns:
the request properties

performExecute

public void performExecute()
                    throws ECException
The performExecute method is called to when the marketing manager asks to add one or more users to a customer segments.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECExcption - thrown if user does not exist
ECException

setMemberId

public void setMemberId(java.lang.String astrMemberId)
Sets the memberId of the user or orgentities to assign roles.
Specified by:
setMemberId in interface MemberRoleUpdateCmd
Parameters:
astrMemberId - The memberId

setRedirectURL

public void setRedirectURL(java.lang.String astrRedirectURL)
Sets redirect URL.
Specified by:
setRedirectURL in interface MemberRoleUpdateCmd
Parameters:
astrRedirectURL - The redirect URL

setRequestProperties

public void setRequestProperties(TypedProperty reqProperties)
                          throws ECException
Sets the request properties
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
reqProperties - the typed properties from the incoming request
Throws:
ECException - thrown if the requst properties does not text

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters before calling performExecute
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - thrown if the parameters do not exist

Feedback