public class CatalogEntryDeleteCmdImpl extends ControllerCommandImpl implements CatalogEntryDeleteCmd
CatalogEntryDeleteCmd
is a URL and controller command that:
baseitem
and item specification tables. The baseitem
and item specification will be
marked for delete depending if the force option is set to 1 for delete and the check ATP
option is set to true for checking.ATP
option is set to false (off). ATP
option is set to true, then it will be checked whether or not the catalog entry being deleted is the last catalog entry
associated with the baseitem or item specification. If the catalog entry is the last one associated with them, then the baseitem
or item specification
will be the mark for deleted, regardless of the force option. The force option is only applicable to the catalog entry, not the inventory.ATP
option is set to false, then no checking on the inventory will be performed. The partnumber
of the baseitem
or item specification
associated with the catalog entry will be appended a timestamp. They will not be deleted or marked for delete.partnumber
will be ignored.partnumber
of the catalog entry.ATP
option required.CatalogEntryAccessBean
AttributeAccessBean
, AttributeValueAccessBean
, CatalogEntryAccessBean
CatalogEntryDescriptionAccessBean
, BaseItmDescriptionAccessBean
BaseItemAccessBean
, ItemSpecificationAccessBean
BaseItemAccessBean
, ItemSpecificationAccessBean
DeleteCatalogEntryCmd
CatalogEntryAttachmentDeleteCmd
catentryId
, or partnumber
.checkATP
. Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogEntryDeleteCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
CatalogEntryDeleteCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatentryId()
Get the Catalog Entry Id
|
java.lang.Boolean |
getCheckATP()
Get the check ATP option:
True =
BaseItem and ItemSpc will be checked. |
java.lang.Integer |
getForce()
Get the force delete option:
0 = catalog entry mark for deletion.
|
java.sql.Timestamp |
getLastupdate()
Get last update time of the catalog entry
|
java.lang.Integer |
getMarkfordelete()
Get the mark for delete value of the catalog entry
|
java.lang.Long |
getMemberId()
Get the owner Id of the catalog entry
|
java.lang.String |
getPartnumber()
Get the part number of the catalog entry
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for
CatalogEntryDelete command. |
void |
reset()
This method reset all the variables used in
CatalogEntryDelete command |
void |
setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
|
void |
setCheckATP(java.lang.Boolean abCheckATP)
Set the check ATP option for the catalog entry:
true =
BaseItem and ItemSpc will be checked when deleting the catalog entry. |
void |
setForce(java.lang.Integer anForce)
Set the force delete option of the catalog entry:
0 = catalog entry will be marked for delete.
|
void |
setLastupdate(java.sql.Timestamp atmLastupdate)
Set the date and time when the catalog entry was updated
|
void |
setMarkfordelete(java.lang.Integer anMarkfordelete)
Set the mark for delete flag of the catalog entry:
0 = catalog entry not marked for delete.
|
void |
setMemberId(java.lang.Long anMemberId)
Set the owner Id of the catalog entry
|
void |
setPartnumber(java.lang.String astrPartnumber)
Set the
partnumber of the catalog entry |
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
CatalogEntryDelete command |
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
validateParameters()
This method validates the parameters for
CatalogGroupAdd command |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, 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, isReadyToCallExecute, 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, getResourceOwners, 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 static final java.lang.String CLASSNAME
public java.lang.Long getCatentryId()
getCatentryId
in interface CatalogEntryDeleteCmd
public java.lang.Boolean getCheckATP()
BaseItem
and ItemSpc
will be checked.
False = BaseItem
and ItemSpc
will not be checked.public java.lang.Integer getForce()
public java.sql.Timestamp getLastupdate()
public java.lang.Integer getMarkfordelete()
public java.lang.Long getMemberId()
public java.lang.String getPartnumber()
getPartnumber
in interface CatalogEntryDeleteCmd
public java.lang.String getURL()
public void performExecute() throws ECException
CatalogEntryDelete
command.
This method calls the task command DeleteCatalogEntryCmd
and then
sets the catalog entry ID in the response properties.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
CatalogEntryDelete
commandreset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface CatalogEntryDeleteCmd
anCatentryId
- java.lang.Longpublic void setCheckATP(java.lang.Boolean abCheckATP)
BaseItem
and ItemSpc
will be checked when deleting the catalog entry.
false = BaseItem
and ItemSpc
will not be checked when deleting the catalog entry.setCheckATP
in interface CatalogEntryDeleteCmd
abCheckATP
- public void setForce(java.lang.Integer anForce)
setForce
in interface CatalogEntryDeleteCmd
anForce
- java.lang.Integerpublic void setLastupdate(java.sql.Timestamp atmLastupdate)
atmLastupdate
- java.sql.Timestamppublic void setMarkfordelete(java.lang.Integer anMarkfordelete)
setMarkfordelete
in interface CatalogEntryDeleteCmd
anMarkfordelete
- java.lang.Integerpublic void setMemberId(java.lang.Long anMemberId)
setMemberId
in interface CatalogEntryDeleteCmd
anMemberId
- java.lang.Longpublic void setPartnumber(java.lang.String astrPartnumber)
partnumber
of the catalog entrysetPartnumber
in interface CatalogEntryDeleteCmd
astrPartnumber
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
CatalogEntryDelete
commandsetRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setURL(java.lang.String astrURL)
astrURL
- java.lang.Stringpublic void validateParameters() throws ECException
CatalogGroupAdd
commandvalidateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException