public class GiftListContextUpdateCmdImpl extends TaskCommandImpl implements GiftListContextUpdateCmd
GiftListContextUpdateCmd
task
command interface. The command updates the gift center context of the user
with the list of external identifiers that are accessed and the relationship
shared with them.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copy right field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
GiftListContextUpdateCmdImpl()
Default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Updates the gift center context to establish the user's relationship with
the external identifiers passed.
|
void |
setListExternalIds(java.util.Vector<java.lang.String> externalIds)
Sets the list of external identifiers which needs to be updated in the
context.
|
void |
setNouns(java.util.List nouns)
Sets the list of nouns which are returned by the get service based on the
search expression.
|
void |
setSearchExpression(SearchExpression expression)
Sets the search expression based on which the context is updated.
|
void |
setUserRelationship(java.lang.Integer relationshipEstablished)
Sets the relationship to be established with the external identifiers in
the context.
|
void |
validateParameters()
Validates if the parameters required are set for the command to execute
successfully.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public GiftListContextUpdateCmdImpl()
public void setListExternalIds(java.util.Vector<java.lang.String> externalIds)
setListExternalIds
in interface GiftListContextUpdateCmd
externalIds
- A vector of strings representing the external identifiers.public void setUserRelationship(java.lang.Integer relationshipEstablished)
setUserRelationship
in interface GiftListContextUpdateCmd
relationshipEstablished
- The relationship to be established.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- - When an error occurs while fetching the context.ContextServiceFactory#getContextService()}
public void validateParameters() throws ECException
GiftCenterContext.GIFT_GIVER
or
GiftCenterContext.COREGISTRANT_TYPE
. and the external Ids list is
validated to be non empty.validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- when either of the validations mentioned fails.public void setSearchExpression(SearchExpression expression)
setSearchExpression
in interface GiftListContextUpdateCmd
expression
- public void setNouns(java.util.List nouns)
setNouns
in interface GiftListContextUpdateCmd
nouns
- The list of gift list nouns.