com.ibm.commerce.usermanagement.commands
Interface ProcessProfileTypeCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
ProcessProfileTypeCmdImpl

public interface ProcessProfileTypeCmd
extends TaskCommand

This task command is called by UserRegistration commands to determine the profileType of a user during registration.

This task comand is called after the ProcessParentMember task command being called.
The default logic of this task command is:
If profileType is found in requestProperties, check if it equals to either 'C' or 'B', if not, an exception will thrown.
If profileType is not found in requestProperties, If parentMemberId is null or is Default Organiztion, then set profileType to 'C', otherwise, set profileType to 'C'.
The default logic can be overwriten.

Inputs of this task command are:

 setRequestProperties(TypedProperty)
 - sets request properties which may or may not contain profileType property. But it should contain
   parentMemberId property. otherwise, an exception will thrown.
 
Outputs of this task command is:
 getRequestProperties(TypedProperty)
 - returns request properties which contains determined profileType property.
 getProfileType
 - gets the profile type determined.
 


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Method Summary
 java.lang.String getProfileType()
          Get the profile type determined.
 TypedProperty getRequestProperties()
          Get the request properties processed.
 void setRequestProperties(TypedProperty aRequestProperties)
          sets the request properties need to be processed.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
Method Detail

getProfileType

public java.lang.String getProfileType()
Get the profile type determined.
Returns:
profile type

getRequestProperties

public TypedProperty getRequestProperties()
Get the request properties processed.
Returns:
The request properties

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
sets the request properties need to be processed.
Parameters:
aRequestProperties - The request properties