com.ibm.commerce.catalogmanagement.commands
Class CatalogGroupAddCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.catalogmanagement.commands.CatalogGroupAddCmdImpl
-
- All Implemented Interfaces:
- CatalogGroupAddCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CatalogGroupAddCmdImpl extends ControllerCommandImpl implements CatalogGroupAddCmd
TheCatalogGroupAddCmd
is a URL and controller command that:- Adds a new Catalog Group. If the catalog group is new, then the catalog group ID cannot be set.
- Adds a new Catalog Group description.
- Adds a relationship between the new Catalog Group and the Store.
- Adds a relationship with the specified Catalog and parent Catalog Group.
- All fields in the
CATGROUP
table, except IBM internal use field and theCATGROUP.LASTUPDATE
column. - All fields in the
CATGRPDESC
table. - No field required.
catalogId
,catgroupIdParent
.
CatalogGroupAccessBean
CatalogGroupDescriptionAccessBean
StoreCatalogGroupAccessBean
CatalogGroupRelationAccessBean
AddCatalogGroup
,AddCatalogGroupDescCmd
.
CatGroupStoreRelAddCmd
,CatGroupRelAddCmd
.
catgroupId
(if adding Catalog Group Description).
Additional Parameters: (catalogId
+catgroupIdParent
).
Optional Parameters: field1, field2, markForDelete, display, name, published, keyword,fImage
,descLangId
,lDesc
,sDesc
,tImage
, URL.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogGroupAddCmdImpl".static java.lang.String
COPYRIGHT
The internal copyright field.-
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
-
-
Constructor Summary
Constructors Constructor and Description CatalogGroupAddCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getCatalogId()
Get the catalog Id for the catalog group in the catalog, parent catalog group, child catalog group relationshipjava.lang.Long
getCatgroupId()
Get the catalog group Idjava.lang.Long
getCatgroupIdParent()
Get the parent catalog group Id for the new catalog group in the catalog, parent catalog group, child catalog group relationshipjava.lang.Integer
getDescLanguage()
Get language id for the catalog group descriptionjava.lang.String
getDisplay()
Get the display of the catalog group descriptionjava.lang.String
getField1()
Get field 1 of the catalog groupjava.lang.String
getField2()
Get field 2 of the catalog groupjava.lang.String
getFullimage()
Get path of the full image of the catalog group descriptionjava.lang.String
getIdentifier()
Get the catalog group identifierjava.lang.String
getKeyword()
Get the keyword for the catalog group descriptionjava.sql.Timestamp
getLastupdate()
Get the last update time of the catalog groupjava.lang.String
getLongdescription()
Get long description of the catalog group descriptionjava.lang.Integer
getMarkfordelete()
Get the mark for delete value of the catalog groupjava.lang.String
getName()
Get language dependent name of the catalog group descriptionjava.lang.String
getNote()
Get the footnote for the catalog group descriptionjava.lang.String
getOID()
Get the object identifier of the catalog groupjava.lang.Integer
getPublished()
Get published value of the catalog group description 0 = not published 1 = publishedjava.lang.String
getShortdescription()
Get the short description of the catalog group descriptionjava.lang.String
getThumbnail()
Get the path to thumbnail image for the catalog group descriptionjava.lang.String
getURL()
Get the redirect URLvoid
performExecute()
The main program forCatalogGroupAdd
command.void
reset()
This method reset all the variables used inCatalogGroupAdd
commandvoid
setCatalogId(java.lang.Long anCatalogId)
Set the catalog Id for the catalog group in the catalog, parent catalog group, child catalog group relationshipvoid
setCatgroupId(java.lang.Long anCatgroupId)
Set the catalog group Idvoid
setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
Set parent catalog group Id for the catalog group in the catalog, parent catalog group, child catalog group relationshipvoid
setDescLanguage(java.lang.Integer anDescLanguage)
Set the language id of the catalog group descriptionvoid
setDisplay(java.lang.String astrDisplay)
Set the display for the catalog group descriptionvoid
setField1(java.lang.String astrField1)
Set field 1 of the catalog groupvoid
setField2(java.lang.String astrField2)
Set field2 of the catalog groupvoid
setFullimage(java.lang.String astrFullimage)
Set the path of the full image for catalog group descriptionvoid
setIdentifier(java.lang.String astrIdentifier)
Set the identifier of the catalog groupvoid
setKeyword(java.lang.String astrKeyword)
Set the keyword of the catalog groupvoid
setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the date and time when the Catalog Group was updatedvoid
setLongdescription(java.lang.String astrLongdescription)
Set the long description of catalog group descriptionvoid
setMarkfordelete(java.lang.Integer anMarkfordelete)
Set the mark for delete flag for the catalog group 0, null = not marked for delete 1 = marked for deletevoid
setMemberId(java.lang.Long anMemberId)
Set the owner id of the catalog groupvoid
setName(java.lang.String astrName)
Set the language dependent name of catalog group descriptionvoid
setNote(java.lang.String astrNote)
Set the footnote of the catalog group descriptionvoid
setOID(java.lang.String astrOID)
Set the object id of the catalog groupvoid
setPublished(java.lang.Integer anPublished)
Set the published flag of catalog group descriptionvoid
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters forCatalogGroupAdd
commandvoid
setSequenceForCatgrprel(java.lang.Double adSequenceForCatgrprel)
Set the sequence number for the catalog group to catalog group relationship between the new catalog group and the parent catalog groupvoid
setShortdescription(java.lang.String astrShortdescription)
Set the short description of catalog group descriptionvoid
setThumbnail(java.lang.String astrThumbnail)
Set path to the thumbnail image of the catalog group descriptionvoid
setURL(java.lang.String astrURL)
Set a redirect URLvoid
validateParameters()
This method validates the parameters forCatalogGroupAdd
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, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
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.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
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, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, 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
The internal copyright field.- See Also:
- Constant Field Values
-
CLASSNAME
public static final java.lang.String CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogGroupAddCmdImpl".- See Also:
- Constant Field Values
-
-
Method Detail
-
getCatalogId
public java.lang.Long getCatalogId()
Get the catalog Id for the catalog group in the catalog, parent catalog group, child catalog group relationship- Returns:
- java.lang.Long
-
getCatgroupId
public java.lang.Long getCatgroupId()
Get the catalog group Id- Specified by:
getCatgroupId
in interfaceCatalogGroupAddCmd
- Returns:
- java.lang.Long
-
getCatgroupIdParent
public java.lang.Long getCatgroupIdParent()
Get the parent catalog group Id for the new catalog group in the catalog, parent catalog group, child catalog group relationship- Returns:
- java.lang.Long
-
getIdentifier
public java.lang.String getIdentifier()
Get the catalog group identifier- Specified by:
getIdentifier
in interfaceCatalogGroupAddCmd
- Returns:
- java.lang.String
-
getDescLanguage
public java.lang.Integer getDescLanguage()
Get language id for the catalog group description- Returns:
- java.lang.Integer
-
getDisplay
public java.lang.String getDisplay()
Get the display of the catalog group description- Returns:
- java.lang.String
-
getField1
public java.lang.String getField1()
Get field 1 of the catalog group- Returns:
- java.lang.String
-
getField2
public java.lang.String getField2()
Get field 2 of the catalog group- Returns:
- java.lang.String
-
getFullimage
public java.lang.String getFullimage()
Get path of the full image of the catalog group description- Returns:
- java.lang.String
-
getKeyword
public java.lang.String getKeyword()
Get the keyword for the catalog group description- Returns:
- java.lang.String
-
getLastupdate
public java.sql.Timestamp getLastupdate()
Get the last update time of the catalog group- Returns:
- java.sql.Timestamp
-
getLongdescription
public java.lang.String getLongdescription()
Get long description of the catalog group description- Returns:
- java.lang.String
-
getMarkfordelete
public java.lang.Integer getMarkfordelete()
Get the mark for delete value of the catalog group- Returns:
- java.lang.Integer
-
getName
public java.lang.String getName()
Get language dependent name of the catalog group description- Returns:
- java.lang.String
-
getOID
public java.lang.String getOID()
Get the object identifier of the catalog group- Returns:
- java.lang.String
-
getPublished
public java.lang.Integer getPublished()
Get published value of the catalog group description 0 = not published 1 = published- Returns:
- java.lang.Integer
-
getShortdescription
public java.lang.String getShortdescription()
Get the short description of the catalog group description- Returns:
- java.lang.String
-
getThumbnail
public java.lang.String getThumbnail()
Get the path to thumbnail image for the catalog group description- Returns:
- java.lang.String
-
getNote
public java.lang.String getNote()
Get the footnote for the catalog group description- Returns:
- The catalog group footnote
-
getURL
public java.lang.String getURL()
Get the redirect URL- Returns:
- java.lang.String
-
performExecute
public void performExecute() throws ECException
The main program forCatalogGroupAdd
command. This method calls theAddCatalogGroupCmd
,AddCatalogGroupDescCmd
, andCatGroupRelAddCmd
task commands. Then the catalog group ID and catalog group parent ID are set in the responsePropertise.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
reset
public void reset()
This method reset all the variables used inCatalogGroupAdd
command- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
setCatalogId
public void setCatalogId(java.lang.Long anCatalogId)
Set the catalog Id for the catalog group in the catalog, parent catalog group, child catalog group relationship- Specified by:
setCatalogId
in interfaceCatalogGroupAddCmd
- Parameters:
anCatalogId
- java.lang.Long
-
setCatgroupId
public void setCatgroupId(java.lang.Long anCatgroupId)
Set the catalog group Id- Specified by:
setCatgroupId
in interfaceCatalogGroupAddCmd
- Parameters:
anCatgroupId
- java.lang.Long
-
setIdentifier
public void setIdentifier(java.lang.String astrIdentifier)
Set the identifier of the catalog group- Specified by:
setIdentifier
in interfaceCatalogGroupAddCmd
- Parameters:
astrIdentifier
- java.lang.String
-
setCatgroupIdParent
public void setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
Set parent catalog group Id for the catalog group in the catalog, parent catalog group, child catalog group relationship- Specified by:
setCatgroupIdParent
in interfaceCatalogGroupAddCmd
- Parameters:
anCatgroupIdParent
- java.lang.Long
-
setDescLanguage
public void setDescLanguage(java.lang.Integer anDescLanguage)
Set the language id of the catalog group description- Specified by:
setDescLanguage
in interfaceCatalogGroupAddCmd
- Parameters:
anDescLanguage
- java.lang.Integer
-
setDisplay
public void setDisplay(java.lang.String astrDisplay)
Set the display for the catalog group description- Specified by:
setDisplay
in interfaceCatalogGroupAddCmd
- Parameters:
astrDisplay
- java.lang.String
-
setField1
public void setField1(java.lang.String astrField1)
Set field 1 of the catalog group- Specified by:
setField1
in interfaceCatalogGroupAddCmd
- Parameters:
astrField1
- java.lang.String
-
setField2
public void setField2(java.lang.String astrField2)
Set field2 of the catalog group- Specified by:
setField2
in interfaceCatalogGroupAddCmd
- Parameters:
astrField2
- java.lang.String
-
setFullimage
public void setFullimage(java.lang.String astrFullimage)
Set the path of the full image for catalog group description- Specified by:
setFullimage
in interfaceCatalogGroupAddCmd
- Parameters:
astrFullimage
- java.lang.String
-
setKeyword
public void setKeyword(java.lang.String astrKeyword)
Set the keyword of the catalog group- Specified by:
setKeyword
in interfaceCatalogGroupAddCmd
- Parameters:
astrKeyword
- java.lang.String
-
setLastupdate
public void setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the date and time when the Catalog Group was updated- Specified by:
setLastupdate
in interfaceCatalogGroupAddCmd
- Parameters:
atmLastupdate
- java.sql.Timestamp
-
setLongdescription
public void setLongdescription(java.lang.String astrLongdescription)
Set the long description of catalog group description- Specified by:
setLongdescription
in interfaceCatalogGroupAddCmd
- Parameters:
astrLongdescription
- java.lang.String
-
setMarkfordelete
public void setMarkfordelete(java.lang.Integer anMarkfordelete)
Set the mark for delete flag for the catalog group 0, null = not marked for delete 1 = marked for delete- Specified by:
setMarkfordelete
in interfaceCatalogGroupAddCmd
- Parameters:
anMarkfordelete
- java.lang.Integer
-
setMemberId
public void setMemberId(java.lang.Long anMemberId)
Set the owner id of the catalog group- Specified by:
setMemberId
in interfaceCatalogGroupAddCmd
- Parameters:
anMemberId
- java.lang.Long
-
setName
public void setName(java.lang.String astrName)
Set the language dependent name of catalog group description- Specified by:
setName
in interfaceCatalogGroupAddCmd
- Parameters:
astrName
- java.lang.String
-
setOID
public void setOID(java.lang.String astrOID)
Set the object id of the catalog group- Specified by:
setOID
in interfaceCatalogGroupAddCmd
- Parameters:
astrOID
- java.lang.String
-
setPublished
public void setPublished(java.lang.Integer anPublished)
Set the published flag of catalog group description- Specified by:
setPublished
in interfaceCatalogGroupAddCmd
- Parameters:
anPublished
- java.lang.Integer
-
setSequenceForCatgrprel
public void setSequenceForCatgrprel(java.lang.Double adSequenceForCatgrprel)
Set the sequence number for the catalog group to catalog group relationship between the new catalog group and the parent catalog group- Specified by:
setSequenceForCatgrprel
in interfaceCatalogGroupAddCmd
- Parameters:
adSequenceForCatgrprel
- java.lang.Double
-
setRequestProperties
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
This method obtains the input parameters forCatalogGroupAdd
command- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classControllerCommandImpl
- Parameters:
reqParms
- This is an object that represents the request properties.- Throws:
ECApplicationException
-
setShortdescription
public void setShortdescription(java.lang.String astrShortdescription)
Set the short description of catalog group description- Specified by:
setShortdescription
in interfaceCatalogGroupAddCmd
- Parameters:
astrShortdescription
- java.lang.String
-
setThumbnail
public void setThumbnail(java.lang.String astrThumbnail)
Set path to the thumbnail image of the catalog group description- Specified by:
setThumbnail
in interfaceCatalogGroupAddCmd
- Parameters:
astrThumbnail
- java.lang.String
-
setNote
public void setNote(java.lang.String astrNote)
Set the footnote of the catalog group description- Specified by:
setNote
in interfaceCatalogGroupAddCmd
- Parameters:
astrNote
- Footnote of the catalog group
-
setURL
public void setURL(java.lang.String astrURL)
Set a redirect URL- Specified by:
setURL
in interfaceCatalogGroupAddCmd
- Parameters:
astrURL
- java.lang.String
-
validateParameters
public void validateParameters() throws ECException
This method validates the parameters forCatalogGroupAdd
command- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
-
-