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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
        |
        +--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.
static void delete(SiteNodeVO siteNodeVO)
          This method deletes a siteNode and also erases all the children and all versions.
static 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
 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.
static 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.
static SiteNodeVO getSiteNodeVOWithId(java.lang.Integer siteNodeId)
          This method gets the siteNodeVO with the given id
static SiteNodeVO getSmallSiteNodeVOWithId(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
          This method gets the siteNodeVO with the given id
static 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.
 
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
 

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

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

SystemException
Bug

getSiteNodeWithId

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

getSiteNodeWithId

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

delete

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

ConstraintException
SystemException

delete

public static 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.

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
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
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 -
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.

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.

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.

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.

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.

SystemException
Bug

getRootSiteNodeVO

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

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.

ConstraintException
SystemException
java.lang.Exception

moveSiteNode

public static 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.

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.

SystemException
java.lang.Exception