com.ibm.commerce.catalogmanagement.commands
Class CatalogEntryDeleteCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.catalogmanagement.commands.CatalogEntryDeleteCmdImpl
All Implemented Interfaces:
AccCommand, CatalogEntryDeleteCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable

public class CatalogEntryDeleteCmdImpl
extends ControllerCommandImpl
implements CatalogEntryDeleteCmd

Implementation for CatalogEntryDelete command for deleting a Catalog Entry

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
static java.lang.String COPYRIGHT
protected java.lang.Boolean ibCheckATP
protected java.lang.Long inCatentryId
protected java.lang.Integer inForce
protected java.lang.Integer inMarkfordelete
protected java.lang.Long inMemberId
protected java.lang.String istrPartnumber
protected java.lang.String istrURL
protected java.sql.Timestamp itmLastupdate
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
CatalogEntryDeleteCmdImpl()
Method Summary
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 False = BaseItem nd ItemSpc will not be checked
java.lang.Integer getForce()
Get the force delete option 0 = catalog entry mark for deletion 1 = catalog entry force delete
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, it calls the task command DeleteCatalogEntry
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 false = BaseItem and ItemSpc will not 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 1 = catalog entry will be force deleted
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 1 = catalog entry 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 obtain 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
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

istrURL

protected java.lang.String istrURL

inCatentryId

protected java.lang.Long inCatentryId

inMarkfordelete

protected java.lang.Integer inMarkfordelete

inMemberId

protected java.lang.Long inMemberId

istrPartnumber

protected java.lang.String istrPartnumber

itmLastupdate

protected java.sql.Timestamp itmLastupdate

inForce

protected java.lang.Integer inForce

ibCheckATP

protected java.lang.Boolean ibCheckATP
Constructor Detail

CatalogEntryDeleteCmdImpl

public CatalogEntryDeleteCmdImpl()
Method Detail

getCatentryId

public java.lang.Long getCatentryId()
Get the Catalog Entry Id
Specified by:
getCatentryId in interface CatalogEntryDeleteCmd
Returns:
java.lang.Long

getCheckATP

public java.lang.Boolean getCheckATP()
Get the check ATP option True = BaseItem and ItemSpc will be checked False = BaseItem nd ItemSpc will not be checked
Returns:
java.lang.Boolean

getForce

public java.lang.Integer getForce()
Get the force delete option 0 = catalog entry mark for deletion 1 = catalog entry force delete
Returns:
java.lang.Integer

getLastupdate

public java.sql.Timestamp getLastupdate()
Get last update time of the catalog entry
Returns:
java.sql.Timestamp

getMarkfordelete

public java.lang.Integer getMarkfordelete()
Get the mark for delete value of the catalog entry
Returns:
java.lang.Integer

getMemberId

public java.lang.Long getMemberId()
Get the owner Id of the catalog entry
Returns:
java.lang.Long

getPartnumber

public java.lang.String getPartnumber()
Get the part number of the catalog entry
Specified by:
getPartnumber in interface CatalogEntryDeleteCmd
Returns:
java.lang.String

getURL

public java.lang.String getURL()
Get the redirect URL
Returns:
java.lang.String

performExecute

public void performExecute()
                    throws ECException
The main program for CatalogEntryDelete command, it calls the task command DeleteCatalogEntry
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
This method reset all the variables used in CatalogEntryDelete command
Overrides:
reset in class AbstractECTargetableCommand

setCatentryId

public void setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
Specified by:
setCatentryId in interface CatalogEntryDeleteCmd
Parameters:
anCatentryId - java.lang.Long

setCheckATP

public 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 false = BaseItem and ItemSpc will not be checked when deleting the catalog entry
Specified by:
setCheckATP in interface CatalogEntryDeleteCmd
Parameters:
abCheckATP -

setForce

public void setForce(java.lang.Integer anForce)
Set the force delete option of the catalog entry 0 = catalog entry will be marked for delete 1 = catalog entry will be force deleted
Specified by:
setForce in interface CatalogEntryDeleteCmd
Parameters:
anForce - java.lang.Integer

setLastupdate

public void setLastupdate(java.sql.Timestamp atmLastupdate)
Set the date and time when the catalog entry was updated
Parameters:
atmLastupdate - java.sql.Timestamp

setMarkfordelete

public void setMarkfordelete(java.lang.Integer anMarkfordelete)
Set the mark for delete flag of the catalog entry 0 = catalog entry not marked for delete 1 = catalog entry marked for delete
Specified by:
setMarkfordelete in interface CatalogEntryDeleteCmd
Parameters:
anMarkfordelete - java.lang.Integer

setMemberId

public void setMemberId(java.lang.Long anMemberId)
Set the owner Id of the catalog entry
Specified by:
setMemberId in interface CatalogEntryDeleteCmd
Parameters:
anMemberId - java.lang.Long

setPartnumber

public void setPartnumber(java.lang.String astrPartnumber)
Set the partnumber of the catalog entry
Specified by:
setPartnumber in interface CatalogEntryDeleteCmd
Parameters:
astrPartnumber - java.lang.String

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
This method obtain the input parameters for CatalogEntryDelete command
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Throws:
ECApplicationException

setURL

public void setURL(java.lang.String astrURL)
Set a redirect URL
Parameters:
astrURL - java.lang.String

validateParameters

public void validateParameters()
                        throws ECException
This method validates the parameters for CatalogGroupAdd command
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

Feedback