com.ibm.commerce.usermanagement.commands
Class ProcessParentMemberCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmdImpl
All Implemented Interfaces:
ECCommand, ProcessParentMemberCmd, TaskCommand

public class ProcessParentMemberCmdImpl
extends TaskCommandImpl
implements ProcessParentMemberCmd

The implementation class for ProcessParentMemberCmd.


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
protected  OrganizationAccessBean iabParentOrgEntity
           
protected  java.lang.String istrParentMemberType
           
protected  TypedProperty requestProperties
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmd
defaultCommandClassName, NAME
 
Constructor Summary
ProcessParentMemberCmdImpl()
           
 
Method Summary
protected  void checkParentMemberId(java.lang.String astrParentMemberId, java.lang.String astrPropertyName)
           
 OrganizationAccessBean getParentMember()
          Gets the parent OrganizationAccessBean.
 java.lang.String getParentMemberType()
          Gets the type of parent organization ('O' or 'OU').
 TypedProperty getRequestProperties()
          Gets the processed request properties which contains calculated parentMemberId property.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setRequestProperties(TypedProperty aRequestProperties)
          Set the request properties which should contain parentMember property.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

iabParentOrgEntity

protected OrganizationAccessBean iabParentOrgEntity

istrParentMemberType

protected java.lang.String istrParentMemberType

requestProperties

protected TypedProperty requestProperties
Constructor Detail

ProcessParentMemberCmdImpl

public ProcessParentMemberCmdImpl()
Method Detail

checkParentMemberId

protected void checkParentMemberId(java.lang.String astrParentMemberId,
                                   java.lang.String astrPropertyName)
                            throws ECException

getParentMember

public OrganizationAccessBean getParentMember()
Description copied from interface: ProcessParentMemberCmd
Gets the parent OrganizationAccessBean.
Specified by:
getParentMember in interface ProcessParentMemberCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmd
Returns:
The parent OrganizationAccessBean

getParentMemberType

public java.lang.String getParentMemberType()
Description copied from interface: ProcessParentMemberCmd
Gets the type of parent organization ('O' or 'OU').
Specified by:
getParentMemberType in interface ProcessParentMemberCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmd
Returns:
The type of parent organization

getRequestProperties

public TypedProperty getRequestProperties()
Description copied from interface: ProcessParentMemberCmd
Gets the processed request properties which contains calculated parentMemberId property. parentmember property is removed.
Specified by:
getRequestProperties in interface ProcessParentMemberCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmd
Returns:
The request properties

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
Description copied from interface: ProcessParentMemberCmd
Set the request properties which should contain parentMember property. It may also contain parentMemberId (it will be ignored if the task command is not called by UserRegistrationAdminAdd/Upate command).
Specified by:
setRequestProperties in interface ProcessParentMemberCmd
Following copied from interface: com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmd
Parameters:
aRequestProperties - The request properties