|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminProdAttrMgrIf
AdminCustomerTagMgrIf
Method Summary | |
---|---|
void |
addProdAttrDescsToTemplate(AdminProdAttrDesc[] attrDescs,
int templateId)
Add the array of ProdAttrDesc objects to the template. |
int |
deleteProdAttrDesc(int id)
Delete an AdminProdAttrDesc |
int |
deleteProdAttrTemplate(int id)
Delete an AdminProdAttrTemplate |
AdminProdAttrDesc[] |
getCustomAttrsFromXML(java.lang.String xml)
Create an array of custom attributes from the XML |
AdminProdAttrDesc |
getProdAttrDesc(int id)
Returns the AdminProdAttrDesc object for the id parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB. |
AdminProdAttrDescSearchResult |
getProdAttrDescs(AdminProdAttrDescSearch search,
int offset,
int size)
This returns an AdminProdAttrDescSearchResult object. |
AdminProdAttrDesc[] |
getProdAttrDescsForTemplate(int templateId)
This method fetches all of the AdminProdAttrDesc objects for the template referenced by the templateId parameter. |
AdminProdAttrTemplate |
getProdAttrTemplate(int id)
Returns the AdminProdAttrTemplate object for the id parameter, or Null if the
AdminProdAttrTemplate doesn't exist in the DB. |
AdminProdAttrTemplateSearchResult |
getProdAttrTemplates(AdminProdAttrTemplateSearch search,
int offset,
int size)
This returns an AdminProdAttrTemplateSearchResult object. |
int |
getProductCountPerProdAttrDesc(int attrDescId)
Returns the number of products using the product attribute descriptor |
int |
getProductCountPerTemplate(int templateId)
Returns the number of products using the custom product attribute template |
int |
getTemplateCountPerProdAttrDesc(int attrDescId)
Returns the number of templates using the product attribute descriptor |
java.lang.String |
getXMLFromCustomAttrs(AdminProdAttrDesc[] attrDescArray)
Create an XML structure for the custom attributes |
int |
insertProdAttrDesc(AdminProdAttrDesc attrDesc)
An AdminProdAttrDesc object is inserted into the database. |
int |
insertProdAttrTemplate(AdminProdAttrTemplate template)
An AdminProdAttrTemplate object is inserted into the database. |
void |
removeProdAttrDescsFromTemplate(AdminProdAttrDesc[] attrDescs,
int templateId)
Remove an array of ProdAttrDesc objects from the template |
int |
updateProdAttrDesc(AdminProdAttrDesc attrDesc)
Update an AdminProdAttrDesc object. |
int |
updateProdAttrTemplate(AdminProdAttrTemplate template)
Update an AdminProdAttrTemplate object. |
int |
updateProductsUsingProdAttrDesc(int attrDescId)
Loop through all templates containing the custom attribute. |
int |
updateProductsUsingTemplates(int[] templateIds)
For each template, loop through the products and update the custom fields. |
Method Detail |
---|
int insertProdAttrDesc(AdminProdAttrDesc attrDesc) throws KKAdminException, org.apache.torque.TorqueException
attrDesc
-
KKAdminException
org.apache.torque.TorqueException
int updateProdAttrDesc(AdminProdAttrDesc attrDesc) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
attrDesc
- An AdminProdAttrDesc object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int deleteProdAttrDesc(int id) throws KKAdminException, org.apache.torque.TorqueException
id
- The id of the deleted AdminProdAttrDesc object
KKAdminException
org.apache.torque.TorqueException
AdminProdAttrDesc getProdAttrDesc(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminProdAttrDesc doesn't exist in the DB.
id
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminProdAttrDesc[] getProdAttrDescsForTemplate(int templateId) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
templateId
parameter.
An empty array is returned if no AdminProdAttrDesc objects exist.
templateId
-
org.apache.torque.TorqueException
KKAdminException
com.workingdogs.village.DataSetException
AdminProdAttrDescSearchResult getProdAttrDescs(AdminProdAttrDescSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- offset
- the offset in the dbsize
- the number of records from the specified offset
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
int insertProdAttrTemplate(AdminProdAttrTemplate template) throws KKAdminException, org.apache.torque.TorqueException
template
-
KKAdminException
org.apache.torque.TorqueException
int updateProdAttrTemplate(AdminProdAttrTemplate template) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
template
- An AdminProdAttrTemplate object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int deleteProdAttrTemplate(int id) throws KKAdminException, org.apache.torque.TorqueException
id
- The id of the deleted AdminProdAttrTemplate object
KKAdminException
org.apache.torque.TorqueException
AdminProdAttrTemplate getProdAttrTemplate(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminProdAttrTemplate doesn't exist in the DB. If the Template contains an array of
ProdAttrDesc objects, these are also fetched from the DB.
id
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminProdAttrTemplateSearchResult getProdAttrTemplates(AdminProdAttrTemplateSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- offset
- the offset in the dbsize
- the number of records from the specified offset
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
void addProdAttrDescsToTemplate(AdminProdAttrDesc[] attrDescs, int templateId) throws org.apache.torque.TorqueException, KKAdminException
attrDescs
- templateId
-
org.apache.torque.TorqueException
KKAdminException
void removeProdAttrDescsFromTemplate(AdminProdAttrDesc[] attrDescs, int templateId) throws org.apache.torque.TorqueException, KKAdminException
attrDescs
- templateId
-
org.apache.torque.TorqueException
KKAdminException
int getTemplateCountPerProdAttrDesc(int attrDescId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
attrDescId
-
com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
int getProductCountPerProdAttrDesc(int attrDescId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
attrDescId
-
com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
int getProductCountPerTemplate(int templateId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
templateId
-
com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
java.lang.String getXMLFromCustomAttrs(AdminProdAttrDesc[] attrDescArray)
attrDescArray
- Array of custom attributes
AdminProdAttrDesc[] getCustomAttrsFromXML(java.lang.String xml)
xml
- The custom attribute data in xml format
int updateProductsUsingProdAttrDesc(int attrDescId) throws java.lang.Exception
attrDescId
-
java.lang.Exception
int updateProductsUsingTemplates(int[] templateIds) throws java.lang.Exception
templateIds
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |