|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.cms.controllers.kernel.impl.simple.BaseController
org.infoglue.cms.controllers.kernel.impl.simple.ContentController
public class ContentController
| Constructor Summary | |
|---|---|
ContentController()
|
|
| Method Summary | |
|---|---|
static void |
addChildContent(ContentVO parentVO,
ContentVO childVO)
|
ContentVO |
create(CreateContentWizardInfoBean createContentWizardInfoBean)
This method finishes what the create content wizard initiated and resulted in. |
Content |
create(org.exolab.castor.jdo.Database db,
java.lang.Integer parentContentId,
java.lang.Integer contentTypeDefinitionId,
java.lang.Integer repositoryId,
ContentVO contentVO)
This method creates a new content-entity and references the entities it should know about. |
ContentVO |
create(java.lang.Integer parentContentId,
java.lang.Integer contentTypeDefinitionId,
java.lang.Integer repositoryId,
ContentVO contentVO)
This method creates a new content-entity and references the entities it should know about. |
void |
delete(ContentVO contentVO,
org.exolab.castor.jdo.Database db,
boolean skipRelationCheck,
boolean skipServiceBindings,
boolean forceDelete,
InfoGluePrincipal infogluePrincipal)
This method deletes a content and also erases all the children and all versions. |
void |
delete(ContentVO contentVO,
InfoGluePrincipal infogluePrincipal)
This method deletes a content and also erases all the children and all versions. |
void |
delete(ContentVO contentVO,
InfoGluePrincipal infogluePrincipal,
org.exolab.castor.jdo.Database db)
This method deletes a content and also erases all the children and all versions. |
java.util.List |
getAvailableLanguagesForContentWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
static java.util.List |
getBoundContents(org.exolab.castor.jdo.Database db,
java.lang.Integer serviceBindingId)
This method returns the bound contents based on a servicebinding. |
static java.util.List |
getBoundContents(java.lang.Integer serviceBindingId)
This method returns the bound contents based on a servicebinding. |
java.lang.String |
getContentAttribute(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String attributeName)
|
java.util.List |
getContentChildrenVOList(java.lang.Integer parentContentId)
This method returns a list of the children a content has. |
static ContentController |
getContentController()
Factory method |
ContentTypeDefinitionVO |
getContentTypeDefinition(java.lang.Integer contentId)
This method returns the contentTypeDefinitionVO which is associated with this content. |
Content |
getContentWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
java.util.List |
getContentVOList()
|
java.util.List |
getContentVOList(java.util.HashMap argumentHashMap)
This method is sort of a sql-query-like method where you can send in arguments in form of a list of things that should match. |
java.util.List |
getContentVOList(java.util.HashMap argumentHashMap,
org.exolab.castor.jdo.Database db)
This method is sort of a sql-query-like method where you can send in arguments in form of a list of things that should match. |
protected java.util.List |
getContentVOListByContentTypeNames(java.util.List arguments)
The input is a list of hashmaps. |
protected java.util.List |
getContentVOListByContentTypeNames(java.util.List arguments,
org.exolab.castor.jdo.Database db)
The input is a list of hashmaps. |
java.util.List |
getContentVOWithContentTypeDefinition(java.lang.String contentTypeDefinitionName)
Returns all Contents having the specified ContentTypeDefintion. |
java.util.List |
getContentVOWithContentTypeDefinition(java.lang.String contentTypeDefinitionName,
org.exolab.castor.jdo.Database db)
Returns all Contents having the specified ContentTypeDefintion. |
ContentVO |
getContentVOWithId(java.lang.Integer contentId)
|
ContentVO |
getContentVOWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
java.util.List |
getContentVOWithParentRecursive(java.lang.Integer contentId)
Recursive methods to get all contentVersions of a given state under the specified parent content. |
ContentVO |
getContentVOWithPath(java.lang.Integer repositoryId,
java.lang.String path,
boolean forceFolders,
InfoGluePrincipal creator,
org.exolab.castor.jdo.Database db)
Returns the content belonging to the specified repository and with the specified path. |
static java.util.List |
getInTransactionBoundContents(org.exolab.castor.jdo.Database db,
java.lang.Integer serviceBindingId)
|
BaseEntityVO |
getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling. |
static ContentVO |
getParentContent(java.lang.Integer contentId)
This method returns the value-object of the parent of a specific content. |
Content |
getReadOnlyContentWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
java.util.List |
getRepositoryContents(java.lang.Integer repositoryId,
org.exolab.castor.jdo.Database db)
This method returns the contents belonging to a certain repository. |
java.util.List |
getRepositoryLanguages(java.lang.Integer contentId)
This method reurns a list of available languages for this content. |
Content |
getRootContent(org.exolab.castor.jdo.Database db,
java.lang.Integer repositoryId,
java.lang.String userName,
boolean createIfNonExisting)
This method fetches the root content for a particular repository within a transaction. |
Content |
getRootContent(java.lang.Integer repositoryId,
org.exolab.castor.jdo.Database db)
This method fetches the root content for a particular repository. |
ContentVO |
getRootContentVO(java.lang.Integer repositoryId,
java.lang.String userName)
This method fetches the root content for a particular repository. |
ContentVO |
getRootContentVO(java.lang.Integer repositoryId,
java.lang.String userName,
boolean createIfNonExisting)
This method fetches the root content for a particular repository. |
ContentVO |
getSmallContentVOWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
|
void |
moveContent(ContentVO contentVO,
java.lang.Integer newParentContentId)
This method moves a content from one parent-content to another. |
void |
moveContent(ContentVO contentVO,
java.lang.Integer newParentContentId,
org.exolab.castor.jdo.Database db)
This method moves a content from one parent-content to another. |
static void |
removeChildContent(ContentVO parentVO,
ContentVO childVO)
|
ContentVO |
update(ContentVO contentVO)
|
ContentVO |
update(ContentVO contentVO,
java.lang.Integer contentTypeDefinitionId)
|
| Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController |
|---|
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentController()
| Method Detail |
|---|
public static ContentController getContentController()
public ContentVO getContentVOWithId(java.lang.Integer contentId)
throws SystemException,
Bug
SystemException
Bug
public ContentVO getContentVOWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public ContentVO getSmallContentVOWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public Content getContentWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public Content getReadOnlyContentWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentVOList()
throws SystemException,
Bug
SystemException
Bug
public ContentVO create(CreateContentWizardInfoBean createContentWizardInfoBean)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVO create(java.lang.Integer parentContentId,
java.lang.Integer contentTypeDefinitionId,
java.lang.Integer repositoryId,
ContentVO contentVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public Content create(org.exolab.castor.jdo.Database db,
java.lang.Integer parentContentId,
java.lang.Integer contentTypeDefinitionId,
java.lang.Integer repositoryId,
ContentVO contentVO)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public void delete(ContentVO contentVO,
InfoGluePrincipal infogluePrincipal)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public void delete(ContentVO contentVO,
InfoGluePrincipal infogluePrincipal,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public void delete(ContentVO contentVO,
org.exolab.castor.jdo.Database db,
boolean skipRelationCheck,
boolean skipServiceBindings,
boolean forceDelete,
InfoGluePrincipal infogluePrincipal)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public ContentVO update(ContentVO contentVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVO update(ContentVO contentVO,
java.lang.Integer contentTypeDefinitionId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.util.List getAvailableLanguagesForContentWithId(java.lang.Integer contentId,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public static ContentVO getParentContent(java.lang.Integer contentId)
throws SystemException,
Bug
SystemException
Bug
public static void addChildContent(ContentVO parentVO,
ContentVO childVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public static void removeChildContent(ContentVO parentVO,
ContentVO childVO)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public void moveContent(ContentVO contentVO,
java.lang.Integer newParentContentId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public void moveContent(ContentVO contentVO,
java.lang.Integer newParentContentId,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.util.List getContentVOWithContentTypeDefinition(java.lang.String contentTypeDefinitionName)
throws SystemException
SystemException
public java.util.List getContentVOWithContentTypeDefinition(java.lang.String contentTypeDefinitionName,
org.exolab.castor.jdo.Database db)
throws SystemException
SystemException
public java.util.List getContentVOList(java.util.HashMap argumentHashMap)
throws SystemException,
Bug
SystemException
Bug
public java.util.List getContentVOList(java.util.HashMap argumentHashMap,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
protected java.util.List getContentVOListByContentTypeNames(java.util.List arguments)
throws SystemException,
Bug
SystemException
Bug
protected java.util.List getContentVOListByContentTypeNames(java.util.List arguments,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public ContentVO getRootContentVO(java.lang.Integer repositoryId,
java.lang.String userName)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentVO getRootContentVO(java.lang.Integer repositoryId,
java.lang.String userName,
boolean createIfNonExisting)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public Content getRootContent(org.exolab.castor.jdo.Database db,
java.lang.Integer repositoryId,
java.lang.String userName,
boolean createIfNonExisting)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public Content getRootContent(java.lang.Integer repositoryId,
org.exolab.castor.jdo.Database db)
throws ConstraintException,
SystemException,
java.lang.Exception
ConstraintException
SystemException
java.lang.Exception
public java.util.List getContentChildrenVOList(java.lang.Integer parentContentId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public ContentTypeDefinitionVO getContentTypeDefinition(java.lang.Integer contentId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.util.List getRepositoryLanguages(java.lang.Integer contentId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public static java.util.List getBoundContents(java.lang.Integer serviceBindingId)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public static java.util.List getBoundContents(org.exolab.castor.jdo.Database db,
java.lang.Integer serviceBindingId)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public static java.util.List getInTransactionBoundContents(org.exolab.castor.jdo.Database db,
java.lang.Integer serviceBindingId)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public java.util.List getRepositoryContents(java.lang.Integer repositoryId,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
SystemException
java.lang.Exception
public ContentVO getContentVOWithPath(java.lang.Integer repositoryId,
java.lang.String path,
boolean forceFolders,
InfoGluePrincipal creator,
org.exolab.castor.jdo.Database db)
throws SystemException,
java.lang.Exception
repositoryId - the repository identifierpath - the path of the content starting from the root of the repositoryforceFolders - if true then non-existing folders will be created; otherwise an exception will be throwndb - the database to use
SystemException
java.lang.Exception
public java.util.List getContentVOWithParentRecursive(java.lang.Integer contentId)
throws ConstraintException,
SystemException
ConstraintException
SystemException
public java.lang.String getContentAttribute(java.lang.Integer contentId,
java.lang.Integer languageId,
java.lang.String attributeName)
throws java.lang.Exception
java.lang.Exceptionpublic BaseEntityVO getNewVO()
getNewVO in class BaseController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||