com.ibm.commerce.usermanagement.commands
Class ProcessParentMemberCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ProcessParentMemberCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class ProcessParentMemberCmdImpl extends TaskCommandImpl implements ProcessParentMemberCmd
This task command is used to calculate and validate the parentMemberId given parentMember property.parentMember property can be encrypted parentMemberId or DN.
If this task command is called by UserRegistrationAdminAdd/Update command, parentMember can also be un-encrypted parentMemberId.Inputs of this task command are:
setRequestProperties(TypedProperty) - set 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/Update command).
Outputs of this task command are:getRequestProperties(TypedProperty) - returns request properties which contains calculated parentMemberId property. The parentmember property is removed. public OrganizationAccessBean getParentMember() - returns the parent OrganizationAccessBean public String getParentMemberType() - returns the type of parent organization ('O' or 'OU').
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
The name of this implementation of the command.static java.lang.String
COPYRIGHT
IBM Copyright notice field.-
Fields inherited from interface com.ibm.commerce.usermanagement.commands.ProcessParentMemberCmd
defaultCommandClassName, NAME, REQUEST_PARAM_APPENDROOTORGANIZATIONDN, REQUEST_PARAM_PARENTMEMBER, REQUEST_PARAM_PARENTMEMBERID, RESPONSE_PARAM_PARENTMEMBERID
-
-
Constructor Summary
Constructors Constructor and Description ProcessParentMemberCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description OrganizationAccessBean
getParentMember()
Returns the parent member.java.lang.String
getParentMemberType()
Returns the parent member type.TypedProperty
getRequestProperties()
Returns the request properties.void
performExecute()
Performs the business logic.void
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
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
The name of this implementation of the command.- See Also:
- Constant Field Values
-
-
Method Detail
-
getParentMember
public OrganizationAccessBean getParentMember()
Returns the parent member.- Specified by:
getParentMember
in interfaceProcessParentMemberCmd
- Returns:
- The parent member.
-
getParentMemberType
public java.lang.String getParentMemberType()
Returns the parent member type. This will either be 'O' or 'OU'.- Specified by:
getParentMemberType
in interfaceProcessParentMemberCmd
- Returns:
- The member type of the parent member.
-
getRequestProperties
public TypedProperty getRequestProperties()
Returns the request properties.- Specified by:
getRequestProperties
in interfaceProcessParentMemberCmd
- Returns:
- The request properties.
-
performExecute
public void performExecute() throws ECException
Performs the business logic. This done be finding the specified parent member.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- If there is a problem finding the parent organization.
-
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.- Specified by:
setRequestProperties
in interfaceProcessParentMemberCmd
- Parameters:
aRequestProperties
- the request properties.
-
-