com.ibm.commerce.usermanagement.commands
Interface AddressCheckCmd
-
- All Superinterfaces:
- AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
- All Known Implementing Classes:
- AddressCheckCmdImpl
public interface AddressCheckCmd extends ControllerCommand
Determines whether or not a user or organization has at least one permanent address.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 parameters yesURL and noURL are mandatory. The rest of the parameters are all optional.
Behavior
- Calls an empty task command PreAddressCheckCmd which can be customized for any pre-processing prior to execution of this command.
- memberId is used to specify the member (user, organization or organizational unit) to be checked. If memberId is not specified, the default is current user.
- Calls the URL specified by yesURL if at least one permanent address exists for the user Otherwise, calls the URL specified by noURL.
- Calls the AddressCheckErrorView view command is called if the command fails. Upon successful completion, the specified URL is called.
- Calls an empty task command PostAddressCheckCmd which can be customized for any further processing post the execution of this command.
Exception Conditions
- yesURL or noURL is null (_ERR_CMD_MISSING_PARAM)
- The length of yesURL or noURL equals 0 (_ERR_CMD_INVALID_PARAM)
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyright notice field.static java.lang.String
NAME
The name of this command.-
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description boolean
getAddressCheck()
Gets the boolean result indicating whether the member has any address entry.java.lang.String
getAddressNoURL()
Gets the URL that is called if the member does not have any address entry.java.lang.String
getAddressYesURL()
Gets the URL that is called if the member has at least one address entry.void
reset()
Resets all instance variables of the command to initial state so it can be used again.void
setAddressNoURL(java.lang.String astrAddressNoURL)
Sets the URL that is called if the member does not have any address entry.void
setAddressYesURL(java.lang.String astrAddressYesURL)
Sets the URL that is called if the member has at least one address entry.void
setMemberId(java.lang.String astrMemberId)
Sets the memberId of the member to check address.-
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
-
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, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
NAME
static final java.lang.String NAME
The name of this command.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAddressCheck
boolean getAddressCheck()
Gets the boolean result indicating whether the member has any address entry.- Returns:
- The boolean result indicating whether the member has any address entry
- true - the member has at least one address entry
- false - the member does not have any address entry
-
getAddressNoURL
java.lang.String getAddressNoURL()
Gets the URL that is called if the member does not have any address entry.- Returns:
- The URL that is called if the member does not have any address entry.
-
getAddressYesURL
java.lang.String getAddressYesURL()
Gets the URL that is called if the member has at least one address entry.- Returns:
- The URL that is called if the member has at least one address entry.
-
reset
void reset()
Resets all instance variables of the command to initial state so it can be used again.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
-
setAddressNoURL
void setAddressNoURL(java.lang.String astrAddressNoURL)
Sets the URL that is called if the member does not have any address entry.- Parameters:
astrAddressNoURL
- The URL that is called if the member does not have any address entry.
-
setAddressYesURL
void setAddressYesURL(java.lang.String astrAddressYesURL)
Sets the URL that is called if the member has at least one address entry.- Parameters:
astrAddressNoURL
- The URL that is called if the member has at least one address entry.
-
setMemberId
void setMemberId(java.lang.String astrMemberId)
Sets the memberId of the member to check address.- Parameters:
astrMemberId
- The memberId.
-
-