com.ibm.commerce.catalogmanagement.commands
Class CatalogAddCmdImpl

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

public class CatalogAddCmdImpl
extends ControllerCommandImpl
implements CatalogAddCmd

Implementation for CatalogAdd command


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
CatalogAddCmdImpl()
           
 
Method Summary
 java.lang.Long getCatalogId()
          Get the catalog id
 java.lang.Integer getDescLanguage()
          Get the language id for the catalog description
 java.lang.String getDescription()
          Get the description for the catalog
 java.lang.String getFullimage()
          Get path of the full image of the catalog description
 java.lang.String getIdentifier()
          Get the identifier of the catalog
 java.lang.String getLongdescription()
          Get the long description of the catalog description
protected  java.lang.Long getMemberId()
          Get the owner id of the catalog
 java.lang.String getName()
          get the name of the catalog description
 java.lang.String getShortdescription()
          Get the short description of the catalog description
 java.lang.String getThumbnail()
          Get the thumbnail image of the catalog description
 java.lang.String getURL()
          Get the redirect URL
 void performExecute()
          The main program for CatalogAdd command
 void reset()
          This method reset all the variables used in CatalogAdd 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 the 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 the long description of catalog description
 void setMemberId(java.lang.Long anMemberId)
          Set the owner id of the catalog
 void setName(java.lang.String astrName)
          Set the language dependent name of catalog description
 void setRequestProperties(TypedProperty reqParms)
          This method obtain the input parameters for CatalogAdd 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 CatalogAdd 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

CatalogAddCmdImpl

public CatalogAddCmdImpl()
Method Detail

getCatalogId

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

getDescLanguage

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

getDescription

public java.lang.String getDescription()
Get the description for 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 the identifier of the catalog
Specified by:
getIdentifier in interface CatalogAddCmd
Returns:
java.lang.String

getLongdescription

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

getMemberId

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

getName

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

getShortdescription

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

getThumbnail

public java.lang.String getThumbnail()
Get the 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 CatalogAdd command
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 CatalogAdd command
Overrides:
reset in class AbstractECTargetableCommand

setCatalogId

public void setCatalogId(java.lang.Long anCatalogId)
Set the catalog id
Specified by:
setCatalogId in interface CatalogAddCmd
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 CatalogAddCmd
Parameters:
anDescLanguage - java.lang.Integer

setDescription

public void setDescription(java.lang.String astrDescription)
Set the description of the catalog
Specified by:
setDescription in interface CatalogAddCmd
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 CatalogAddCmd
Parameters:
astrFullimage - java.lang.String

setIdentifier

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

setLongdescription

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

setMemberId

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

setName

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

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
This method obtain the input parameters for CatalogAdd 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 CatalogAddCmd
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 CatalogAddCmd
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 CatalogAddCmd
Parameters:
anTPCLevel - java.lang.Integer

setURL

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

validateParameters

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