public class InterestItemListCopyCmdImpl extends ControllerCommandImpl implements InterestItemListCopyCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
InterestItemListCopyCmdImpl()
No value constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkIsAllowed(AccessVector resource,
java.lang.String action)
Check to see if user can perform action on resource.
|
java.lang.Long[] |
getResourceOwners()
This method gets all the organization units that own the resources accessed by this command.
|
boolean |
isReadyToCallExecute()
This method is called by the targetable command framework.
|
void |
performExecute()
The main program for InterestItemListCopy command.
|
void |
reset()
This method is called after a command has been executed.
|
java.util.Hashtable |
retrieveValidNumericOutListId(java.lang.String[] asaListRn,
java.lang.Long aUserNumber) |
void |
setCatEntryId(java.lang.String[] asaCatEntryId)
Specifies either "*" or zero or more reference numbers of products or
items (from the CATENTRY_ID column in the IITEM table, ) to
delete from the interest list(s) specified by ListId.
|
void |
setDisplaySeq(java.lang.Double adDisplaySeq)
Specifies the display sequence for the interest item lists to which
interest items are copied.
|
void |
setInListId(java.lang.String[] asaInListId)
Specifies zero or more interest item lists to be copied from.
|
void |
setInListIdName(java.lang.String[] asaListIdName)
Specifies the names of name-value pairs to be added to the redirection URL.
|
void |
setInListMemberId(java.lang.Long anInListMemberId)
The reference number of the member whose interest lists will be copied.
|
void |
setOutListDesc(java.lang.String astrDesc)
Specifies a description of the output interest lists.
|
void |
setOutListId(java.lang.String[] asaListId)
Specifies zero or more interest item lists to be copied to.
|
void |
setOutListIdName(java.lang.String[] asaListIdName)
Specifies the names of name-value pairs to be added to the redirection URL.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the
requestProperties for the command. |
void |
validateParameters()
This method performs server side parameter checking.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public InterestItemListCopyCmdImpl()
public void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
resource
- AccessVector - the resource to be acted onaction
- String - action to be performed on the resourceECException
public java.lang.Long[] getResourceOwners() throws ECException
ControllerCommandImpl
getResourceOwners
in interface AccCommand
getResourceOwners
in class ControllerCommandImpl
Long
objects that represents all the organization
unit reference numbers. A site owner is represented by an organization unit value of -1.ECException
public boolean isReadyToCallExecute()
AbstractECTargetableCommand
true
.isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
boolean
value; true
if we can execute the
command and false
otherwise. This default implementation will return true
.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public java.util.Hashtable retrieveValidNumericOutListId(java.lang.String[] asaListRn, java.lang.Long aUserNumber) throws ECException
ECException
public void setCatEntryId(java.lang.String[] asaCatEntryId)
setCatEntryId
in interface InterestItemListCopyCmd
asaCatEntryId
- the array of catalog entry idpublic void setDisplaySeq(java.lang.Double adDisplaySeq)
setDisplaySeq
in interface InterestItemListCopyCmd
adDisplaySeq
- the display sequencepublic void setInListId(java.lang.String[] asaInListId)
setInListId
in interface InterestItemListCopyCmd
asaInListId
- the input ListIdpublic void setInListIdName(java.lang.String[] asaListIdName)
setInListIdName
in interface InterestItemListCopyCmd
asaListIdName
- the String array of namespublic void setInListMemberId(java.lang.Long anInListMemberId)
setInListMemberId
in interface InterestItemListCopyCmd
anInListMemberId
- the inlist member idpublic void setOutListDesc(java.lang.String astrDesc)
setOutListDesc
in interface InterestItemListCopyCmd
astrDesc
- the description of the output interest listspublic void setOutListId(java.lang.String[] asaListId)
setOutListId
in interface InterestItemListCopyCmd
asaListId
- the String array of OutListIdpublic void setOutListIdName(java.lang.String[] asaListIdName)
setOutListIdName
in interface InterestItemListCopyCmd
asaListIdName
- the String array of namespublic void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommandImpl
requestProperties
for the command. The WebController
calls the setRequestProperties
method before invoking the execute method for this command.
It is the responsibility of the command writer to extract the
required input parameters from the requestProperties
object.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- This is an object that represents the request properties.ECApplicationException
public void validateParameters() throws ECException
AbstractECTargetableCommand
checkParameters()
method from version 5.1.
The default implementation of validateParameters()
is a no op
.
It is the responsibility of the command writers to implement this method if they want to perform
server side parameter checking.validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException