com.ibm.commerce.usermanagement.commands
Class OrgEntityAddCmdImpl
java.lang.Object
|
+--OrgEntityRegistrationCmdImpl
|
+--com.ibm.commerce.usermanagement.commands.OrgEntityAddCmdImpl
- All Implemented Interfaces:
-
OrgEntityAddCmd
- public class OrgEntityAddCmdImpl
- extends OrgEntityRegistrationCmdImpl
- implements
OrgEntityAddCmd
This command registers a new organization or organizational unit.
The information of the new organization or organizational unit is stored in
the MEMBER, ORGENTITY, MBRREL and ADDRESS tables.
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 URL, orgEntityName, orgEntityType and
parentMemberId are mandatory. The rest of the parameters are all
optional.
Behavior
- Calls an empty task command PreOrgEntityAddCmd. Store Developers can
overwrite it change the input to the command.
- Check the required parameters.
- Calls a task command SetBusinessEntityCmd to set the BusinessEntity
attribute.
- Calls a task command AuditOrgEntityCmd to perform additional
parameter checking. Store Developers need to add new code to AuditAddressCmd
task command if they want to customize the check.
- If any field related to ADDRESS table is specified, a self address (also
called register address, with selfAddress field set to '1' and
nickname is same as orgEntityName) will be created. Otherwise no record
will be created in the ADDRESS table.
- If the command fails, the OrgEntityErrorView view command is called.
Upon successful completion, the specified URL is called.
- Calls an empty task command PostOrgEntityAddCmd. Store Developers
can overwrite it to perform additional operations.
Exception conditions
- URL is null (_ERR_CMD_MISSING_PARAM).
- The length of URL length equals 0 (_ERR_CMD_INVALID_PARAM).
- parentMemberId is null (_ERR_CMD_MISSING_PARAM).
- parentMemberId is not a foreign key set to the ORGENTITY table
(_ERR_CMD_INVALID_PARAM).
- orgEntityName is null (_ERR_CMD_MISSING_PARAM).
- The length of orgEntityName equals 0 (_ERR_CMD_INVALID_PARAM).
- orgEntityType is null (_ERR_CMD_MISSING_PARAM).
- orgEntityType is not 'O' or 'OU'
(_ERR_CMD_INVALID_PARAM).
- In LDAP Mode, the formulated Distinguished Name already exist in LDAP Sever
or WCS Database (_ERR_RDN_ALREADY_EXIST).
- In LDAP Mode, the distinguishedName specified already exist in LDAP
Sever or WCS Database (_ERR_DN_ALREADY_EXIST).
- See Also:
- Serialized
Form
Field Summary |
static java.lang.String |
CLASSNAME
The name of this implementation of the command. |
static java.lang.String |
COPYRIGHT
IBM Copyright notice field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
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
OrgEntityAddCmdImpl
public OrgEntityAddCmdImpl()
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECApplicationException
- Sets the request properties by calling the ProcessRequestProperties
command. Then calls the PreOrgEntityUpdate command to preform any preprocessing
before the command is executed.
-
- Parameters:
reqProperties
- the parameters of the command.
- Throws:
-
ECException
- If there is a problem with invalid or missing parameters or there was a
problem reported by the PreOrgEntityUpdate command.
-
ECApplicationException