|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
|
+--org.infoglue.cms.controllers.kernel.impl.simple.ContentCategoryController
The ContentCategoryController manages all actions related to persistence and querying for ContentCategory relationships. TODO: When we convert have Hibernate manage all of these relationships, it will pull it TODO: all back with one query and be a helluva lot faster than this basic implementation
| Method Summary | |
java.util.List |
create(java.util.List categoryList,
ContentVersion contentVersion,
java.lang.String attributeName,
org.exolab.castor.jdo.Database db)
Creates a number of ContentCategories from a list of categories and a contentVersion. |
java.util.List |
create(java.util.List categoryVOList,
ContentVersionVO contentVersionVO,
java.lang.String attributeName)
Creates a number of ContentCategories from a list of categories and a contentVersion. |
ContentCategory |
createWithDatabase(ContentCategoryVO c,
Category category,
org.exolab.castor.jdo.Database db)
|
ContentCategory |
createWithDatabase(ContentCategoryVO c,
org.exolab.castor.jdo.Database db)
|
void |
delete(java.lang.Integer id)
Deletes a ContentCategory |
void |
deleteByCategory(java.lang.Integer categoryId)
Deletes all ContentCategories for a particular Category |
void |
deleteByCategory(java.lang.Integer categoryId,
org.exolab.castor.jdo.Database db)
Deletes all ContentCategories for a particular Category using the provided Database |
void |
deleteByContentVersion(java.lang.Integer versionId)
Deletes all ContentCategories for a particular ContentVersion |
void |
deleteByContentVersion(java.lang.Integer versionId,
org.exolab.castor.jdo.Database db)
Deletes all ContentCategories for a particular ContentVersion using the provided Database |
void |
deleteByContentVersionAttribute(java.lang.String attribute,
java.lang.Integer versionId)
Deletes all content categories with a specific attribute for a specific content version within a single transaction |
void |
deleteByContentVersionAttribute(java.lang.String attribute,
java.lang.Integer versionId,
org.exolab.castor.jdo.Database db)
Deletes all content categories with a specific attribute for a specific content version using the given database |
java.util.List |
findByCategory(java.lang.Integer categoryId)
Find a List of ContentCategories for the specific attribute and Content Version. |
java.util.List |
findByContentVersion(java.lang.Integer versionId)
Find a List of ContentCategories for a Content Version. |
java.util.List |
findByContentVersionAttribute(java.lang.String attribute,
java.lang.Integer versionId)
Find a List of ContentCategories for the specific attribute and Content Version. |
ContentCategoryVO |
findById(java.lang.Integer id)
Find a ContentCategory by it's identifier. |
static ContentCategoryController |
getController()
|
BaseEntityVO |
getNewVO()
Implemented for BaseController |
ContentCategoryVO |
save(ContentCategoryVO c)
Saves a ContentCategoryVO whether it is new or not. |
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
deleteEntity, deleteEntity, deleteEntity, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getVOWithId, getVOWithId, getVOWithId, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ContentCategoryController getController()
public ContentCategoryVO findById(java.lang.Integer id)
throws SystemException
id - The id of the Category to find
SystemException - If an error happens
public java.util.List findByContentVersionAttribute(java.lang.String attribute,
java.lang.Integer versionId)
throws SystemException
attribute - The attribute name of the ContentCategory to findversionId - The Content Version id of the ContentCategory to find
SystemException - If an error happens
public java.util.List findByContentVersion(java.lang.Integer versionId)
throws SystemException
versionId - The Content Version id of the ContentCategory to find
SystemException - If an error happens
public java.util.List findByCategory(java.lang.Integer categoryId)
throws SystemException
categoryId - The Category id of the ContentCategory to find
SystemException - If an error happens
public ContentCategoryVO save(ContentCategoryVO c)
throws SystemException
c - The ContentCategoryVO to save
SystemException - If an error happens
public ContentCategory createWithDatabase(ContentCategoryVO c,
org.exolab.castor.jdo.Database db)
throws SystemException,
org.exolab.castor.jdo.PersistenceException
SystemException
org.exolab.castor.jdo.PersistenceException
public java.util.List create(java.util.List categoryVOList,
ContentVersionVO contentVersionVO,
java.lang.String attributeName)
throws SystemException
SystemException
public java.util.List create(java.util.List categoryList,
ContentVersion contentVersion,
java.lang.String attributeName,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public ContentCategory createWithDatabase(ContentCategoryVO c,
Category category,
org.exolab.castor.jdo.Database db)
throws SystemException,
org.exolab.castor.jdo.PersistenceException
SystemException
org.exolab.castor.jdo.PersistenceException
public void delete(java.lang.Integer id)
throws SystemException
id - The id of the ContentCategory to delete
SystemException - If an error happens
public void deleteByContentVersion(java.lang.Integer versionId)
throws SystemException
versionId - The id of the ContentCategory to delete
SystemException - If an error happens
public void deleteByContentVersion(java.lang.Integer versionId,
org.exolab.castor.jdo.Database db)
throws SystemException
versionId - The id of the ContentCategory to deletedb - The Database instance to use
SystemException - If an error happens
public void deleteByCategory(java.lang.Integer categoryId)
throws SystemException
categoryId - The id of the ContentCategory to delete
SystemException - If an error happens
public void deleteByCategory(java.lang.Integer categoryId,
org.exolab.castor.jdo.Database db)
throws SystemException
categoryId - The id of the Category to deletedb - The Database instance to use
SystemException - If an error happens
public void deleteByContentVersionAttribute(java.lang.String attribute,
java.lang.Integer versionId)
throws SystemException
attribute - the desired attributeversionId - the ID of the desired content version
SystemException - if a database error occurs
public void deleteByContentVersionAttribute(java.lang.String attribute,
java.lang.Integer versionId,
org.exolab.castor.jdo.Database db)
throws SystemException
attribute - the desired attributeversionId - the ID of the desired content versiondb - the database defining the transaction context for this delete
SystemException - if a database error occurspublic BaseEntityVO getNewVO()
getNewVO in class BaseController
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||