com.ibm.commerce.usermanagement.commands
Class OrgEntityUpdateCmdImpl
java.lang.Object
OrgEntityRegistrationCmdImpl
com.ibm.commerce.usermanagement.commands.OrgEntityUpdateCmdImpl
- All Implemented Interfaces:
- OrgEntityUpdateCmd
- public class OrgEntityUpdateCmdImpl
- extends OrgEntityRegistrationCmdImpl
- implements OrgEntityUpdateCmd
This command updates information about an 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, orgEntityId are mandatory. The rest of the parameters are all optional.
Behavior
- Calls an empty task command PreOrgEntityUpdateCmd. Store Developers can overwrite it change the input to the command.
- Check the required parameters.
- 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, the self address (also called register address, with selfAddress field set to '1' and nickname is same as logonId) will also be updated. The old address will be marked as 'T' (temporary) and a new 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).
- orgEntityId is null (_ERR_CMD_MISSING_PARAM).
- orgEntityId is not a foreign key set to the ORGENTITY table (_ERR_CMD_INVALID_PARAM).
- orgEntityName is null (_ERR_CMD_MISSING_PARAM).
- orgEntityName is not null but the its length equals 0 (_ERR_CMD_INVALID_PARAM).
- 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
OrgEntityUpdateCmdImpl
public OrgEntityUpdateCmdImpl()
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECApplicationException
- Sets the request properties. 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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.