com.ibm.commerce.catalogmanagement.commands
Class CatalogUpdateCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.catalogmanagement.commands.CatalogUpdateCmdImpl
All Implemented Interfaces:
AccCommand, CatalogUpdateCmd, ControllerCommand, ECCommand, ECTargetableCommand

public class CatalogUpdateCmdImpl
extends ControllerCommandImpl
implements CatalogUpdateCmd

Command Name: CatalogUpdateCmd Command Type: URL and controller command Description:

Parameters: Access Beans: Task Commands: UpdateCatalogCmd, UpdateCatalogDescCmd Other Controller Commands: None Mandatory Parameters: catalogId, or identifier Additional Parameters: Optional Parameters: fImage, tImage, sDesc, lDesc, Desc, descLangId, name, URL Default Value: descLangId = language ID from command context.
See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          Define the CLASSNAME.
static java.lang.String COPYRIGHT
          The internal copyright field.
protected  java.lang.Long inCatalogId
           
protected  java.lang.Integer inDescLanguage
           
protected  java.lang.Long inMemberId
           
protected  java.lang.Integer inTPCLevel
           
protected  java.lang.String istrDescription
           
protected  java.lang.String istrFullimage
           
protected  java.lang.String istrIdentifier
           
protected  java.lang.String istrLongdescription
           
protected  java.lang.String istrName
           
protected  java.lang.String istrShortdescription
           
protected  java.lang.String istrThumbnail
           
protected  java.lang.String istrURL
           
 
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
CatalogUpdateCmdImpl()
           
 
Method Summary
 java.lang.Long getCatalogId()
          Gets the catalog Id.
 java.lang.Integer getDescLanguage()
          Gets the language Id of the catalog description.
 java.lang.String getDescription()
          Gets the description of the catalog.
 java.lang.String getFullimage()
          Gets the path of the full image of the catalog.
 java.lang.String getIdentifier()
          Gets the identifier of the catalog.
 java.lang.String getLongdescription()
          Gets the long description of the catalog.
 java.lang.Long getMemberId()
          Gets the owner id of the catalog.
 java.lang.String getName()
          Gets the language dependent name of the catalog.
 java.lang.String getShortdescription()
          Gets the short description of the catalog
 java.lang.String getThumbnail()
          Gets the path of the thumbnail image of the catalog.
 java.lang.String getURL()
          Gets the redirect URL
 void performExecute()
          Updates a catalog and catalog description.
 void reset()
          Resets all the variables.
 void setCatalogId(java.lang.Long anCatalogId)
          Sets the catalog Id.
 void setDescLanguage(java.lang.Integer anDescLanguage)
          Sets the language Id of the catalog description.
 void setDescription(java.lang.String astrDescription)
          Sets the description of the catalog.
 void setFullimage(java.lang.String astrFullimage)
          Sets the path of the full image of catalog.
 void setIdentifier(java.lang.String astrIdentifier)
          Sets the identifier of the catalog.
 void setLongdescription(java.lang.String astrLongdescription)
          Sets the long description of catalog.
 void setMemberId(java.lang.Long anMemberId)
          Sets the owner id of the catalog.
 void setName(java.lang.String astrName)
          Sets the language dependent name of the catalog.
 void setRequestProperties( TypedProperty reqParms)
          Sets the request properties
 void setShortdescription(java.lang.String astrShortdescription)
          Sets the short description of the catalog.
 void setThumbnail(java.lang.String astrThumbnail)
          Sets the path of the thumbnail image of the catalog.
 void setTPCLevel(java.lang.Integer anTPCLevel)
          Set the TPC Level of the catalog.
 void setURL(java.lang.String astrURL)
          Sets the redirect URL.
 void validateParameters()
          Validates the input parameters.
 
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
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

CLASSNAME

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

istrURL

protected java.lang.String istrURL

inCatalogId

protected java.lang.Long inCatalogId

istrDescription

protected java.lang.String istrDescription

istrIdentifier

protected java.lang.String istrIdentifier

inMemberId

protected java.lang.Long inMemberId

inTPCLevel

protected java.lang.Integer inTPCLevel

istrFullimage

protected java.lang.String istrFullimage

inDescLanguage

protected java.lang.Integer inDescLanguage

istrLongdescription

protected java.lang.String istrLongdescription

istrName

protected java.lang.String istrName

istrShortdescription

protected java.lang.String istrShortdescription

istrThumbnail

protected java.lang.String istrThumbnail
Constructor Detail

CatalogUpdateCmdImpl

public CatalogUpdateCmdImpl()
Method Detail

getCatalogId

public java.lang.Long getCatalogId()
Gets the catalog Id.
Specified by:
getCatalogId in interface CatalogUpdateCmd
Returns:
catalog Id

getDescLanguage

public java.lang.Integer getDescLanguage()
Gets the language Id of the catalog description.
Returns:
language Id

getDescription

public java.lang.String getDescription()
Gets the description of the catalog.
Returns:
catalog description

getFullimage

public java.lang.String getFullimage()
Gets the path of the full image of the catalog.
Returns:
full image of catalog

getIdentifier

public java.lang.String getIdentifier()
Gets the identifier of the catalog.
Specified by:
getIdentifier in interface CatalogUpdateCmd
Returns:
catalog identifier

getLongdescription

public java.lang.String getLongdescription()
Gets the long description of the catalog.
Returns:
catalog long description

getMemberId

public java.lang.Long getMemberId()
Gets the owner id of the catalog.
Returns:
java.lang.Long

getName

public java.lang.String getName()
Gets the language dependent name of the catalog.
Returns:
catalog name

getShortdescription

public java.lang.String getShortdescription()
Gets the short description of the catalog
Returns:
short description of catalog

getThumbnail

public java.lang.String getThumbnail()
Gets the path of the thumbnail image of the catalog.
Returns:
thumbnail image of catalog

getURL

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

performExecute

public void performExecute()
                    throws ECException
Updates a catalog and catalog description.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
Resets all the variables.
Overrides:
reset in class AbstractECTargetableCommand

setCatalogId

public void setCatalogId(java.lang.Long anCatalogId)
Sets the catalog Id.
Specified by:
setCatalogId in interface CatalogUpdateCmd
Parameters:
anCatalogId - catalog Id

setDescLanguage

public void setDescLanguage(java.lang.Integer anDescLanguage)
Sets the language Id of the catalog description.
Specified by:
setDescLanguage in interface CatalogUpdateCmd
Parameters:
anDescLanguage - language Id

setDescription

public void setDescription(java.lang.String astrDescription)
Sets the description of the catalog.
Specified by:
setDescription in interface CatalogUpdateCmd
Parameters:
astrDescription - catalog description

setFullimage

public void setFullimage(java.lang.String astrFullimage)
Sets the path of the full image of catalog.
Specified by:
setFullimage in interface CatalogUpdateCmd
Parameters:
astrFullimage - full image of catalog

setIdentifier

public void setIdentifier(java.lang.String astrIdentifier)
Sets the identifier of the catalog.
Specified by:
setIdentifier in interface CatalogUpdateCmd
Parameters:
astrIdentifier - catalog identifier

setLongdescription

public void setLongdescription(java.lang.String astrLongdescription)
Sets the long description of catalog.
Specified by:
setLongdescription in interface CatalogUpdateCmd
Parameters:
astrLongdescription - catalog long description

setMemberId

public void setMemberId(java.lang.Long anMemberId)
Sets the owner id of the catalog.
Specified by:
setMemberId in interface CatalogUpdateCmd
Parameters:
anMemberId - owner of catalog

setName

public void setName(java.lang.String astrName)
Sets the language dependent name of the catalog.
Specified by:
setName in interface CatalogUpdateCmd
Parameters:
astrName - catalog name

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
Sets the request properties
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
reqParms - request properties
Throws:
ECApplicationException

setShortdescription

public void setShortdescription(java.lang.String astrShortdescription)
Sets the short description of the catalog.
Specified by:
setShortdescription in interface CatalogUpdateCmd
Parameters:
astrShortdescription - short description of catalog

setThumbnail

public void setThumbnail(java.lang.String astrThumbnail)
Sets the path of the thumbnail image of the catalog.
Specified by:
setThumbnail in interface CatalogUpdateCmd
Parameters:
astrThumbnail - thumbnail image of catalog

setTPCLevel

public void setTPCLevel(java.lang.Integer anTPCLevel)
Set the TPC Level of the catalog.
Specified by:
setTPCLevel in interface CatalogUpdateCmd
Parameters:
anTPCLevel - catalog TPC level

setURL

public void setURL(java.lang.String astrURL)
Sets the redirect URL.
Specified by:
setURL in interface CatalogUpdateCmd
Parameters:
astrURL - redirect URL

validateParameters

public void validateParameters()
                        throws ECException
Validates the input parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException