org.infoglue.cms.controllers.kernel.impl.simple
Class SiteNodeController

java.lang.Object
  extended by org.infoglue.cms.controllers.kernel.impl.simple.BaseController
      extended by org.infoglue.cms.controllers.kernel.impl.simple.SiteNodeController
Direct Known Subclasses:
SiteNodeControllerProxy

public class SiteNodeController
extends BaseController


Constructor Summary
SiteNodeController()
           
 
Method Summary
 SiteNode create(org.exolab.castor.jdo.Database db, java.lang.Integer parentSiteNodeId, java.lang.Integer siteNodeTypeDefinitionId, InfoGluePrincipal infoGluePrincipal, java.lang.Integer repositoryId, SiteNodeVO siteNodeVO)
           
 SiteNodeVO create(java.lang.Integer parentSiteNodeId, java.lang.Integer siteNodeTypeDefinitionId, InfoGluePrincipal infoGluePrincipal, java.lang.Integer repositoryId, SiteNodeVO siteNodeVO)
           
 SiteNode createNewSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer parentSiteNodeId, java.lang.Integer siteNodeTypeDefinitionId, InfoGluePrincipal infoGluePrincipal, java.lang.Integer repositoryId, SiteNodeVO siteNodeVO)
          This method creates a new SiteNode and an siteNodeVersion.
 Content createSiteNodeMetaInfoContent(org.exolab.castor.jdo.Database db, SiteNode newSiteNode, java.lang.Integer repositoryId, InfoGluePrincipal principal, java.lang.Integer pageTemplateContentId)
          This method creates a meta info content for the new sitenode.
 void delete(SiteNodeVO siteNodeVO)
          This method deletes a siteNode and also erases all the children and all versions.
 void delete(SiteNodeVO siteNodeVO, org.exolab.castor.jdo.Database db)
          This method deletes a siteNode and also erases all the children and all versions.
static SiteNodeController getController()
          Factory method
 LanguageVO getInitialLanguageVO(org.exolab.castor.jdo.Database db, java.lang.Integer contentId, java.lang.Integer repositoryId)
           
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
static SiteNodeVO getParentSiteNode(java.lang.Integer siteNodeId)
          This method returns the value-object of the parent of a specific siteNode.
static SiteNode getParentSiteNode(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
          This method returns the value-object of the parent of a specific siteNode.
 java.util.List getRepositorySiteNodes(java.lang.Integer repositoryId, org.exolab.castor.jdo.Database db)
          This method returns a list of all siteNodes in a repository.
 SiteNode getRootSiteNode(java.lang.Integer repositoryId, org.exolab.castor.jdo.Database db)
          This method fetches the root siteNode for a particular repository within a certain transaction.
 SiteNodeVO getRootSiteNodeVO(java.lang.Integer repositoryId)
          This method fetches the root siteNode for a particular repository.
 java.util.List getSiteNodeChildren(java.lang.Integer parentSiteNodeId)
          This method returns a list of the children a siteNode has.
 java.util.List getSiteNodesWithoutMetaInfoContentId(org.exolab.castor.jdo.Database db)
           
 SiteNode getSiteNodeWithId(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
           
static SiteNode getSiteNodeWithId(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db, boolean readOnly)
           
static java.util.List getSiteNodeVOList(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.
static java.util.List getSiteNodeVOList(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.
 java.util.List getSiteNodeVOListWithoutMetaInfoContentId()
           
static SiteNodeVO getSiteNodeVOWithId(java.lang.Integer siteNodeId)
          This method gets the siteNodeVO with the given id
static SiteNodeVO getSiteNodeVOWithId(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
          This method gets the siteNodeVO with the given id
 java.util.List getSiteNodeVOWithParentRecursive(java.lang.Integer siteNodeId)
          Recursive methods to get all sitenodes under the specific sitenode.
static SiteNodeVO getSmallSiteNodeVOWithId(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
          This method gets the siteNodeVO with the given id
 void moveSiteNode(SiteNodeVO siteNodeVO, java.lang.Integer newParentSiteNodeId)
          This method moves a siteNode after first making a couple of controls that the move is valid.
 void setMetaInfoContentId(java.lang.Integer siteNodeId, java.lang.Integer metaInfoContentId)
           
 void setMetaInfoContentId(java.lang.Integer siteNodeId, java.lang.Integer metaInfoContentId, org.exolab.castor.jdo.Database db)
           
 
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, getLogger, 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

SiteNodeController

public SiteNodeController()
Method Detail

getController

public static SiteNodeController getController()
Factory method


getSiteNodeVOWithId

public static SiteNodeVO getSiteNodeVOWithId(java.lang.Integer siteNodeId)
                                      throws SystemException,
                                             Bug
This method gets the siteNodeVO with the given id

Throws:
SystemException
Bug

getSiteNodeVOWithId

public static SiteNodeVO getSiteNodeVOWithId(java.lang.Integer siteNodeId,
                                             org.exolab.castor.jdo.Database db)
                                      throws SystemException,
                                             Bug
This method gets the siteNodeVO with the given id

Throws:
SystemException
Bug

getSmallSiteNodeVOWithId

public static SiteNodeVO getSmallSiteNodeVOWithId(java.lang.Integer siteNodeId,
                                                  org.exolab.castor.jdo.Database db)
                                           throws SystemException,
                                                  Bug
This method gets the siteNodeVO with the given id

Throws:
SystemException
Bug

getSiteNodeWithId

public SiteNode getSiteNodeWithId(java.lang.Integer siteNodeId,
                                  org.exolab.castor.jdo.Database db)
                           throws SystemException,
                                  Bug
Throws:
SystemException
Bug

getSiteNodeWithId

public static SiteNode getSiteNodeWithId(java.lang.Integer siteNodeId,
                                         org.exolab.castor.jdo.Database db,
                                         boolean readOnly)
                                  throws SystemException,
                                         Bug
Throws:
SystemException
Bug

delete

public void delete(SiteNodeVO siteNodeVO)
            throws ConstraintException,
                   SystemException
This method deletes a siteNode and also erases all the children and all versions.

Throws:
ConstraintException
SystemException

delete

public void delete(SiteNodeVO siteNodeVO,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException,
                   java.lang.Exception
This method deletes a siteNode and also erases all the children and all versions.

Throws:
ConstraintException
SystemException
java.lang.Exception

create

public SiteNodeVO create(java.lang.Integer parentSiteNodeId,
                         java.lang.Integer siteNodeTypeDefinitionId,
                         InfoGluePrincipal infoGluePrincipal,
                         java.lang.Integer repositoryId,
                         SiteNodeVO siteNodeVO)
                  throws ConstraintException,
                         SystemException
Throws:
ConstraintException
SystemException

create

public SiteNode create(org.exolab.castor.jdo.Database db,
                       java.lang.Integer parentSiteNodeId,
                       java.lang.Integer siteNodeTypeDefinitionId,
                       InfoGluePrincipal infoGluePrincipal,
                       java.lang.Integer repositoryId,
                       SiteNodeVO siteNodeVO)
                throws SystemException,
                       java.lang.Exception
Throws:
SystemException
java.lang.Exception

createNewSiteNode

public SiteNode createNewSiteNode(org.exolab.castor.jdo.Database db,
                                  java.lang.Integer parentSiteNodeId,
                                  java.lang.Integer siteNodeTypeDefinitionId,
                                  InfoGluePrincipal infoGluePrincipal,
                                  java.lang.Integer repositoryId,
                                  SiteNodeVO siteNodeVO)
                           throws SystemException
This method creates a new SiteNode and an siteNodeVersion. It does not commit the transaction however.

Parameters:
db -
parentSiteNodeId -
siteNodeTypeDefinitionId -
userName -
repositoryId -
siteNodeVO -
Returns:
Throws:
SystemException

getParentSiteNode

public static SiteNodeVO getParentSiteNode(java.lang.Integer siteNodeId)
                                    throws SystemException,
                                           Bug
This method returns the value-object of the parent of a specific siteNode.

Throws:
SystemException
Bug

getParentSiteNode

public static SiteNode getParentSiteNode(java.lang.Integer siteNodeId,
                                         org.exolab.castor.jdo.Database db)
                                  throws SystemException,
                                         Bug
This method returns the value-object of the parent of a specific siteNode.

Throws:
SystemException
Bug

getSiteNodeChildren

public java.util.List getSiteNodeChildren(java.lang.Integer parentSiteNodeId)
                                   throws ConstraintException,
                                          SystemException
This method returns a list of the children a siteNode has.

Throws:
ConstraintException
SystemException

getSiteNodeVOList

public static java.util.List getSiteNodeVOList(java.util.HashMap argumentHashMap)
                                        throws SystemException,
                                               Bug
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. The input is a Hashmap with a method and a List of HashMaps.

Throws:
SystemException
Bug

getSiteNodeVOList

public static java.util.List getSiteNodeVOList(java.util.HashMap argumentHashMap,
                                               org.exolab.castor.jdo.Database db)
                                        throws SystemException,
                                               Bug
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. The input is a Hashmap with a method and a List of HashMaps.

Throws:
SystemException
Bug

getRootSiteNodeVO

public SiteNodeVO getRootSiteNodeVO(java.lang.Integer repositoryId)
                             throws ConstraintException,
                                    SystemException
This method fetches the root siteNode for a particular repository.

Throws:
ConstraintException
SystemException

getRootSiteNode

public SiteNode getRootSiteNode(java.lang.Integer repositoryId,
                                org.exolab.castor.jdo.Database db)
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
This method fetches the root siteNode for a particular repository within a certain transaction.

Throws:
ConstraintException
SystemException
java.lang.Exception

moveSiteNode

public void moveSiteNode(SiteNodeVO siteNodeVO,
                         java.lang.Integer newParentSiteNodeId)
                  throws ConstraintException,
                         SystemException
This method moves a siteNode after first making a couple of controls that the move is valid.

Throws:
ConstraintException
SystemException

getNewVO

public BaseEntityVO getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.

Specified by:
getNewVO in class BaseController

getRepositorySiteNodes

public java.util.List getRepositorySiteNodes(java.lang.Integer repositoryId,
                                             org.exolab.castor.jdo.Database db)
                                      throws SystemException,
                                             java.lang.Exception
This method returns a list of all siteNodes in a repository.

Throws:
SystemException
java.lang.Exception

createSiteNodeMetaInfoContent

public Content createSiteNodeMetaInfoContent(org.exolab.castor.jdo.Database db,
                                             SiteNode newSiteNode,
                                             java.lang.Integer repositoryId,
                                             InfoGluePrincipal principal,
                                             java.lang.Integer pageTemplateContentId)
                                      throws SystemException,
                                             Bug,
                                             java.lang.Exception,
                                             ConstraintException
This method creates a meta info content for the new sitenode.

Parameters:
db -
path -
newSiteNode -
Throws:
SystemException
Bug
java.lang.Exception
ConstraintException

getInitialLanguageVO

public LanguageVO getInitialLanguageVO(org.exolab.castor.jdo.Database db,
                                       java.lang.Integer contentId,
                                       java.lang.Integer repositoryId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getSiteNodeVOWithParentRecursive

public java.util.List getSiteNodeVOWithParentRecursive(java.lang.Integer siteNodeId)
                                                throws ConstraintException,
                                                       SystemException
Recursive methods to get all sitenodes under the specific sitenode.

Throws:
ConstraintException
SystemException

setMetaInfoContentId

public void setMetaInfoContentId(java.lang.Integer siteNodeId,
                                 java.lang.Integer metaInfoContentId)
                          throws ConstraintException,
                                 SystemException
Throws:
ConstraintException
SystemException

setMetaInfoContentId

public void setMetaInfoContentId(java.lang.Integer siteNodeId,
                                 java.lang.Integer metaInfoContentId,
                                 org.exolab.castor.jdo.Database db)
                          throws ConstraintException,
                                 SystemException
Throws:
ConstraintException
SystemException

getSiteNodeVOListWithoutMetaInfoContentId

public java.util.List getSiteNodeVOListWithoutMetaInfoContentId()
                                                         throws ConstraintException,
                                                                SystemException
Throws:
ConstraintException
SystemException

getSiteNodesWithoutMetaInfoContentId

public java.util.List getSiteNodesWithoutMetaInfoContentId(org.exolab.castor.jdo.Database db)
                                                    throws ConstraintException,
                                                           SystemException,
                                                           java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.