public class CategoryHelper
extends java.lang.Object
Constructor and Description |
---|
CategoryHelper() |
Modifier and Type | Method and Description |
---|---|
void | addCategory(CommandContext cmdContext)
Adds a category.
|
void | deleteCategory(java.lang.Long nCatalogId, java.lang.Long nCatgroupId, CommandContext cmdContext)
Deletes a category.
|
boolean | getAllowDuplicatedName()
Get the allow duplicate name flag.
|
java.lang.Long | getCatalogId()
Get the catalog ID.
|
java.lang.Long | getCatgroupId()
Get the catalog group ID.
|
java.lang.Long | getCatgroupIdParent()
Get the parent catalog group ID.
|
CommandContext | getCommandContext()
Get the command context.
|
java.lang.String | getKeyword() |
void | reset()
Resets all instance variables to null.
|
void | setAllowDuplicatedName(boolean aboolAllowDuplicatedName)
Set the allow duplicate name.
|
void | setCatalogId(java.lang.Long anCatalogId)
Set the catalog ID.
|
void | setCatgroupId(java.lang.Long anCatgroupId)
Set the catalog group ID.
|
void | setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
Set the parent catalog group ID.
|
void | setDescLanguage(java.lang.Integer anDescLanguage)
Set the language id of the catalog group description.
|
void | setDisplay(java.lang.String astrDisplay)
Set the display for the catalog group description.
|
void | setField1(java.lang.String astrField1)
Set the field1 of the catalog group.
|
void | setField2(java.lang.String astrField2)
Set the field2 of the catalog group.
|
void | setForContract(boolean bContract)
Setter to indicate if the category is to be used in a contract.
|
void | setFullimage(java.lang.String astrFullimage)
Set the path of the full image of catalog group description.
|
void | setIdentifier(java.lang.String astrIdentifier)
Set the identifier of the catalog group.
|
void | setKeyword(java.lang.String istrKeyword)
Set the keyword of the catalog group description.
|
void | setLongdescription(java.lang.String astrLongdescription)
Set the long description of the catalog group description.
|
void | setMarkfordelete(java.lang.Integer anMarkfordelete)
Set the markfordelete of the catalog group.
|
void | setName(java.lang.String astrName)
Set the language dependent name of catalog group description.
|
void | setPublished(java.lang.Integer anPublished)
Set the published flag of catalog group description.
|
void | setSequence(java.lang.Double adSequence)
Sets the sequence.
|
void | setShortdescription(java.lang.String astrShortdescription)
Set the short description of catalog group description.
|
void | setThumbnail(java.lang.String astrThumbnail)
Set the path to the thumbnail image of the catalog group description.
|
void | setUpdateParentCategory(boolean bUpdate)
Set the 'UpdateParentCategory' flag.
|
void | updateCategory(CommandContext cmdContext)
Update a category.
|
public void addCategory(CommandContext cmdContext) throws ECException, javax.ejb.CreateException, javax.ejb.FinderException, javax.ejb.RemoveException, javax.naming.NamingException, java.rmi.RemoteException, CatalogToolException
public void deleteCategory(java.lang.Long nCatalogId, java.lang.Long nCatgroupId, CommandContext cmdContext) throws ECException, javax.ejb.CreateException, javax.ejb.FinderException, javax.ejb.RemoveException, javax.naming.NamingException, java.rmi.RemoteException, CatalogToolException
public java.lang.Long getCatalogId()
public java.lang.Long getCatgroupId()
public java.lang.Long getCatgroupIdParent()
public CommandContext getCommandContext()
public boolean getAllowDuplicatedName()
public void reset()
public void setAllowDuplicatedName(boolean aboolAllowDuplicatedName)
public void setCatalogId(java.lang.Long anCatalogId)
public void setCatgroupId(java.lang.Long anCatgroupId)
public void setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
public void setDescLanguage(java.lang.Integer anDescLanguage) throws ECException
public void setDisplay(java.lang.String astrDisplay)
public void setField1(java.lang.String astrField1)
public void setField2(java.lang.String astrField2)
public void setForContract(boolean bContract)
public void setFullimage(java.lang.String astrFullimage)
public void setIdentifier(java.lang.String astrIdentifier)
public void setLongdescription(java.lang.String astrLongdescription)
public void setMarkfordelete(java.lang.Integer anMarkfordelete)
public void setName(java.lang.String astrName)
public void setPublished(java.lang.Integer anPublished)
public void setSequence(java.lang.Double adSequence)
public void setShortdescription(java.lang.String astrShortdescription)
public void setThumbnail(java.lang.String astrThumbnail)
public void setUpdateParentCategory(boolean bUpdate)
public void updateCategory(CommandContext cmdContext) throws ECException, javax.ejb.CreateException, javax.ejb.FinderException, javax.ejb.RemoveException, javax.naming.NamingException, java.rmi.RemoteException, CatalogToolException
public java.lang.String getKeyword()
public void setKeyword(java.lang.String istrKeyword)