com.ibm.commerce.catalogmanagement.commands
Class CatalogUpdateCmdImpl

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

public class CatalogUpdateCmdImpl
extends ControllerCommandImpl
implements CatalogUpdateCmd

Implementation for CatalogUpdate command which updates a catalog


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
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()
          Get the catalog id
 java.lang.Integer getDescLanguage()
          Get language id of the catalog description
 java.lang.String getDescription()
          Get the description of the catalog
 java.lang.String getFullimage()
          Get path of the full image of the catalog description
 java.lang.String getIdentifier()
          Get identifier of the catalog
 java.lang.String getLongdescription()
          Get long description of the catalog description
 java.lang.Long getMemberId()
          Get the owner id of the catalog
 java.lang.String getName()
          Get name of the catalog description
 java.lang.String getShortdescription()
          Get short description of the catalog description
 java.lang.String getThumbnail()
          Get thumbnail image of the Catalog Description
 java.lang.String getURL()
          Get the redirect URL
 void performExecute()
          The main program for CatalogUpdate command
 void reset()
          This methid reset all the variables in CatalogUpdate command
 void setCatalogId(java.lang.Long anCatalogId)
          Set the catalog id
 void setDescLanguage(java.lang.Integer anDescLanguage)
          Set the language id of the catalog description
 void setDescription(java.lang.String astrDescription)
          Set description of the catalog
 void setFullimage(java.lang.String astrFullimage)
          Set path of the full image of catalog description
 void setIdentifier(java.lang.String astrIdentifier)
          Set the identifier of the catalog
 void setLongdescription(java.lang.String astrLongdescription)
          Set long description of catalog description
 void setMemberId(java.lang.Long anMemberId)
          Set owner id of the catalog
 void setName(java.lang.String astrName)
          Set language dependent name of catalog description
 void setRequestProperties(TypedProperty reqParms)
          This method obtain the input parameters for CatalogUpdate command
 void setShortdescription(java.lang.String astrShortdescription)
          Set the short description of catalog description
 void setThumbnail(java.lang.String astrThumbnail)
          Set path to a thumbnail image of catalog description
 void setTPCLevel(java.lang.Integer anTPCLevel)
          Set the TPC Level of the catalog
 void setURL(java.lang.String astrURL)
          Set a redirect URL
 void validateParameters()
          This method validates the parameters for CatalogUpdate command
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

inCatalogId

protected java.lang.Long inCatalogId

inDescLanguage

protected java.lang.Integer inDescLanguage

inMemberId

protected java.lang.Long inMemberId

inTPCLevel

protected java.lang.Integer inTPCLevel

istrDescription

protected java.lang.String istrDescription

istrFullimage

protected java.lang.String istrFullimage

istrIdentifier

protected java.lang.String istrIdentifier

istrLongdescription

protected java.lang.String istrLongdescription

istrName

protected java.lang.String istrName

istrShortdescription

protected java.lang.String istrShortdescription

istrThumbnail

protected java.lang.String istrThumbnail

istrURL

protected java.lang.String istrURL
Constructor Detail

CatalogUpdateCmdImpl

public CatalogUpdateCmdImpl()
Method Detail

getCatalogId

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

getDescLanguage

public java.lang.Integer getDescLanguage()
Get language id of the catalog description
Returns:
java.lang.Integer

getDescription

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

getFullimage

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

getIdentifier

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

getLongdescription

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

getMemberId

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

getName

public java.lang.String getName()
Get name of the catalog description
Returns:
java.lang.String

getShortdescription

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

getThumbnail

public java.lang.String getThumbnail()
Get thumbnail image of the Catalog Description
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 CatalogUpdate command
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException -  

reset

public void reset()
This methid reset all the variables in CatalogUpdate command
Overrides:
reset in class AbstractECTargetableCommand

setCatalogId

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

setDescLanguage

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

setDescription

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

setFullimage

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

setIdentifier

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

setLongdescription

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

setMemberId

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

setName

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

setRequestProperties

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

setShortdescription

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

setThumbnail

public void setThumbnail(java.lang.String astrThumbnail)
Set path to a thumbnail image of catalog description
Specified by:
setThumbnail in interface CatalogUpdateCmd
Parameters:
astrThumbnail - java.lang.String

setTPCLevel

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

setURL

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

validateParameters

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