com.ibm.commerce.usermanagement.commands
Interface SetBusinessEntityCmd

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

public interface SetBusinessEntityCmd
extends TaskCommand

This task command is called by OrgEntityAdd commands to set the BusinessEntity attribute.

In 5.2, each orgEntity has an attribute called 'BusinessEntity'. When BusinessEntity equals 1, it means the orgEntity is a business orgEntity that can be used for the purpose of creating accounts. The Root Org and the Default Org will have BusinessEntity equals 0. When an orgEntity is created in 5.2, the OrgEntityAdd command will call this task command which will set the BusinessEntity attribute according to the following logic:

Set the BusinessEntity attribute to 1 if the orgEntity to be created has the Root Organization as its parent, ie, in 5.2 all orgEntities directly below the Root Org (except the Default Org) will have BusinessEntity set to 1.
For all other cases, set BusinessEntity to 0

The default logic can be overwriten.

Inputs of this task command are:

 setRequestProperties(TypedProperty)
 - set request properties which should contain parentMemberId, otherwise, an exception will thrown.
 getRequestProperties(TypedProperty)
 - return request properties which contains determined BusinessEntity property.
 


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String NAME
           
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Method Summary
 TypedProperty getRequestProperties()
          Gets request properties which contains determined BusinessEntity property.
 void setRequestProperties(TypedProperty aRequestProperties)
          Set request properties which should contain parentMemberId, otherwise, an exception will thrown.
 
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

NAME

public static final java.lang.String NAME
Method Detail

getRequestProperties

public TypedProperty getRequestProperties()
Gets request properties which contains determined BusinessEntity property.
Returns:
The request properties

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
Set request properties which should contain parentMemberId, otherwise, an exception will thrown.
Parameters:
aRequestProperties - The request properties