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

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

public class SiteNodeVersionController
extends BaseController


Constructor Summary
SiteNodeVersionController()
           
 
Method Summary
static SiteNodeVersion create(java.lang.Integer siteNodeId, InfoGluePrincipal infoGluePrincipal, SiteNodeVersionVO siteNodeVersionVO)
          This method creates a new siteNodeVersion for the siteNode sent in.
static SiteNodeVersion create(java.lang.Integer siteNodeId, InfoGluePrincipal infoGluePrincipal, SiteNodeVersionVO siteNodeVersionVO, org.exolab.castor.jdo.Database db)
          This method creates a new siteNodeVersion for the siteNode sent in.
static SiteNodeVersion createInitialSiteNodeVersion(org.exolab.castor.jdo.Database db, SiteNode siteNode, InfoGluePrincipal infoGluePrincipal)
          This method creates an initial siteNodeVersion for the siteNode sent in and within the transaction sent in.
 void delete(SiteNodeVersion siteNodeVersion, org.exolab.castor.jdo.Database db)
          This method removes the siteNodeVersion and also all associated bindings.
static void delete(SiteNodeVersionVO siteNodeVersionVO)
           
static void deleteVersionsForSiteNode(SiteNode siteNode, org.exolab.castor.jdo.Database db)
          This methods deletes all versions for the siteNode sent in
static void deleteVersionsForSiteNodeWithId(java.lang.Integer siteNodeId)
           
static SiteNodeVersionController getController()
          Factory method
 SiteNodeVersion getLatestActiveSiteNodeVersion(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
           
 SiteNodeVersion getLatestActiveSiteNodeVersionIfInState(SiteNode siteNode, java.lang.Integer stateId, org.exolab.castor.jdo.Database db)
          This method returns the latest sitenodeVersion there is for the given siteNode.
 SiteNodeVersionVO getLatestActiveSiteNodeVersionVO(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
           
 SiteNodeVersionVO getLatestActiveSiteNodeVersionVO(java.lang.Integer siteNodeId)
           
static SiteNodeVersion getLatestPublishedSiteNodeVersion(java.lang.Integer siteNodeId)
           
static SiteNodeVersion getLatestPublishedSiteNodeVersion(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
           
 SiteNodeVersion getLatestSiteNodeVersion(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId, boolean readOnly)
          This is a method used to get the latest site node version of a sitenode within a given transaction.
 SiteNodeVersionVO getLatestSiteNodeVersionVO(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
           
 SiteNodeVersionVO getLatestSiteNodeVersionVO(java.lang.Integer siteNodeId)
           
 java.util.List getMetaInfoContentVersionVOList(java.lang.Integer siteNodeVersionId, InfoGluePrincipal infoGluePrincipal)
          This method gets the meta info for the siteNodeVersion.
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 SiteNodeVersion getPreviousActiveSiteNodeVersion(java.lang.Integer siteNodeId, java.lang.Integer siteNodeVersionId, org.exolab.castor.jdo.Database db)
          This method returns the version previous to the one sent in.
 SiteNodeVersionVO getPreviousActiveSiteNodeVersionVO(java.lang.Integer siteNodeId, java.lang.Integer siteNodeVersionId, org.exolab.castor.jdo.Database db)
          This method returns the version previous to the one sent in.
static SiteNodeVersionVO getPreviousSiteNodeVersionVO(java.lang.Integer siteNodeId, java.lang.Integer siteNodeVersionId)
          This method returns the version previous to the one sent in.
 java.util.List getPublishedActiveSiteNodeVersionVOList(java.lang.Integer siteNodeId)
          This method gets the meta info for the siteNodeVersion.
 java.util.List getPublishedActiveSiteNodeVersionVOList(java.lang.Integer siteNodeId, org.exolab.castor.jdo.Database db)
           
 java.util.List getPublishedSiteNodeVersionVOWithParentRecursive(java.lang.Integer siteNodeId)
          Recursive methods to get all siteNodeVersions of a given state under the specified parent siteNode including the given siteNode.
static java.util.Collection getServiceBindningList(java.lang.Integer siteNodeVersionId, org.exolab.castor.jdo.Database db)
          This method returns a list with AvailableServiceBidningVO-objects which are available for the siteNodeTypeDefinition sent in
static java.util.List getServiceBindningVOList(java.lang.Integer siteNodeVersionId)
          This method returns a list with AvailableServiceBidningVO-objects which are available for the siteNodeTypeDefinition sent in
static java.util.List getServiceBindningVOList(java.lang.Integer siteNodeVersionId, org.exolab.castor.jdo.Database db)
          This method returns a list with AvailableServiceBidningVO-objects which are available for the siteNodeTypeDefinition sent in
 void getSiteNodeAndAffectedItemsRecursive(java.lang.Integer siteNodeId, java.lang.Integer stateId, java.util.List siteNodeVersionVOList, java.util.List contenteVersionVOList, boolean includeMetaInfo)
          Recursive methods to get all contentVersions of a given state under the specified parent content.
 SiteNodeVersion getSiteNodeVersionWithId(java.lang.Integer siteNodeVersionId, org.exolab.castor.jdo.Database db)
           
static SiteNodeVersion getSiteNodeVersionWithIdAsReadOnly(java.lang.Integer siteNodeVersionId, org.exolab.castor.jdo.Database db)
           
 java.util.List getSiteNodeVersionVOList()
           
 SiteNodeVersionVO getSiteNodeVersionVOWithId(java.lang.Integer siteNodeVersionId)
           
 java.util.List getSiteNodeVersionVOWithParentRecursive(java.lang.Integer siteNodeId, java.lang.Integer stateId)
          Recursive methods to get all siteNodeVersions of a given state under the specified parent siteNode including the given siteNode.
 SiteNodeVersionVO update(SiteNodeVersionVO siteNodeVersionVO)
          Updates the SiteNodeVersion.
 SiteNodeVersionVO update(SiteNodeVersionVO siteNodeVersionVO, org.exolab.castor.jdo.Database db)
          Updates the SiteNodeVersion within a transaction.
 SiteNodeVersionVO updateStateId(java.lang.Integer siteNodeVersionId, java.lang.Integer stateId, java.lang.String versionComment, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId)
           
 SiteNodeVersionVO updateStateId(java.lang.Integer siteNodeVersionId, java.lang.Integer stateId, java.lang.String versionComment, InfoGluePrincipal infoGluePrincipal, java.lang.Integer siteNodeId, 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, 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

SiteNodeVersionController

public SiteNodeVersionController()
Method Detail

getController

public static SiteNodeVersionController getController()
Factory method


getSiteNodeVersionVOWithId

public SiteNodeVersionVO getSiteNodeVersionVOWithId(java.lang.Integer siteNodeVersionId)
                                             throws SystemException,
                                                    Bug
Throws:
SystemException
Bug

getSiteNodeVersionWithId

public SiteNodeVersion getSiteNodeVersionWithId(java.lang.Integer siteNodeVersionId,
                                                org.exolab.castor.jdo.Database db)
                                         throws SystemException,
                                                Bug
Throws:
SystemException
Bug

getSiteNodeVersionWithIdAsReadOnly

public static SiteNodeVersion getSiteNodeVersionWithIdAsReadOnly(java.lang.Integer siteNodeVersionId,
                                                                 org.exolab.castor.jdo.Database db)
                                                          throws SystemException,
                                                                 Bug
Throws:
SystemException
Bug

getSiteNodeVersionVOList

public java.util.List getSiteNodeVersionVOList()
                                        throws SystemException,
                                               Bug
Throws:
SystemException
Bug

delete

public static void delete(SiteNodeVersionVO siteNodeVersionVO)
                   throws ConstraintException,
                          SystemException
Throws:
ConstraintException
SystemException

delete

public void delete(SiteNodeVersion siteNodeVersion,
                   org.exolab.castor.jdo.Database db)
            throws ConstraintException,
                   SystemException
This method removes the siteNodeVersion and also all associated bindings.

Parameters:
siteNodeVersion -
db -
Throws:
ConstraintException
SystemException

createInitialSiteNodeVersion

public static SiteNodeVersion createInitialSiteNodeVersion(org.exolab.castor.jdo.Database db,
                                                           SiteNode siteNode,
                                                           InfoGluePrincipal infoGluePrincipal)
                                                    throws SystemException,
                                                           Bug
This method creates an initial siteNodeVersion for the siteNode sent in and within the transaction sent in.

Throws:
SystemException
Bug

create

public static SiteNodeVersion create(java.lang.Integer siteNodeId,
                                     InfoGluePrincipal infoGluePrincipal,
                                     SiteNodeVersionVO siteNodeVersionVO)
                              throws SystemException,
                                     Bug
This method creates a new siteNodeVersion for the siteNode sent in.

Throws:
SystemException
Bug

create

public static SiteNodeVersion create(java.lang.Integer siteNodeId,
                                     InfoGluePrincipal infoGluePrincipal,
                                     SiteNodeVersionVO siteNodeVersionVO,
                                     org.exolab.castor.jdo.Database db)
                              throws SystemException,
                                     Bug,
                                     java.lang.Exception
This method creates a new siteNodeVersion for the siteNode sent in.

Throws:
SystemException
Bug
java.lang.Exception

getLatestActiveSiteNodeVersionVO

public SiteNodeVersionVO getLatestActiveSiteNodeVersionVO(java.lang.Integer siteNodeId)
                                                   throws SystemException,
                                                          Bug
Throws:
SystemException
Bug

getLatestActiveSiteNodeVersion

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

getLatestActiveSiteNodeVersionVO

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

getLatestSiteNodeVersionVO

public SiteNodeVersionVO getLatestSiteNodeVersionVO(java.lang.Integer siteNodeId)
                                             throws SystemException,
                                                    Bug
Throws:
SystemException
Bug

getLatestSiteNodeVersionVO

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

getLatestSiteNodeVersion

public SiteNodeVersion getLatestSiteNodeVersion(org.exolab.castor.jdo.Database db,
                                                java.lang.Integer siteNodeId,
                                                boolean readOnly)
                                         throws SystemException,
                                                Bug
This is a method used to get the latest site node version of a sitenode within a given transaction.

Throws:
SystemException
Bug

updateStateId

public SiteNodeVersionVO updateStateId(java.lang.Integer siteNodeVersionId,
                                       java.lang.Integer stateId,
                                       java.lang.String versionComment,
                                       InfoGluePrincipal infoGluePrincipal,
                                       java.lang.Integer siteNodeId)
                                throws ConstraintException,
                                       SystemException
Throws:
ConstraintException
SystemException

updateStateId

public SiteNodeVersionVO updateStateId(java.lang.Integer siteNodeVersionId,
                                       java.lang.Integer stateId,
                                       java.lang.String versionComment,
                                       InfoGluePrincipal infoGluePrincipal,
                                       java.lang.Integer siteNodeId,
                                       org.exolab.castor.jdo.Database db)
                                throws ConstraintException,
                                       SystemException,
                                       java.lang.Exception
Throws:
ConstraintException
SystemException
java.lang.Exception

deleteVersionsForSiteNodeWithId

public static void deleteVersionsForSiteNodeWithId(java.lang.Integer siteNodeId)
                                            throws ConstraintException,
                                                   SystemException,
                                                   Bug
Throws:
ConstraintException
SystemException
Bug

deleteVersionsForSiteNode

public static void deleteVersionsForSiteNode(SiteNode siteNode,
                                             org.exolab.castor.jdo.Database db)
                                      throws ConstraintException,
                                             SystemException,
                                             Bug,
                                             java.lang.Exception
This methods deletes all versions for the siteNode sent in

Throws:
ConstraintException
SystemException
Bug
java.lang.Exception

getServiceBindningVOList

public static java.util.List getServiceBindningVOList(java.lang.Integer siteNodeVersionId)
                                               throws ConstraintException,
                                                      SystemException
This method returns a list with AvailableServiceBidningVO-objects which are available for the siteNodeTypeDefinition sent in

Throws:
ConstraintException
SystemException

getServiceBindningVOList

public static java.util.List getServiceBindningVOList(java.lang.Integer siteNodeVersionId,
                                                      org.exolab.castor.jdo.Database db)
                                               throws ConstraintException,
                                                      SystemException
This method returns a list with AvailableServiceBidningVO-objects which are available for the siteNodeTypeDefinition sent in

Throws:
ConstraintException
SystemException

getServiceBindningList

public static java.util.Collection getServiceBindningList(java.lang.Integer siteNodeVersionId,
                                                          org.exolab.castor.jdo.Database db)
                                                   throws ConstraintException,
                                                          SystemException
This method returns a list with AvailableServiceBidningVO-objects which are available for the siteNodeTypeDefinition sent in

Throws:
ConstraintException
SystemException

getLatestPublishedSiteNodeVersion

public static SiteNodeVersion getLatestPublishedSiteNodeVersion(java.lang.Integer siteNodeId)
                                                         throws SystemException,
                                                                Bug,
                                                                java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getLatestPublishedSiteNodeVersion

public static SiteNodeVersion getLatestPublishedSiteNodeVersion(java.lang.Integer siteNodeId,
                                                                org.exolab.castor.jdo.Database db)
                                                         throws SystemException,
                                                                Bug,
                                                                java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

getPreviousSiteNodeVersionVO

public static SiteNodeVersionVO getPreviousSiteNodeVersionVO(java.lang.Integer siteNodeId,
                                                             java.lang.Integer siteNodeVersionId)
                                                      throws SystemException,
                                                             Bug
This method returns the version previous to the one sent in.

Throws:
SystemException
Bug

getPreviousActiveSiteNodeVersionVO

public SiteNodeVersionVO getPreviousActiveSiteNodeVersionVO(java.lang.Integer siteNodeId,
                                                            java.lang.Integer siteNodeVersionId,
                                                            org.exolab.castor.jdo.Database db)
                                                     throws SystemException,
                                                            Bug,
                                                            java.lang.Exception
This method returns the version previous to the one sent in.

Throws:
SystemException
Bug
java.lang.Exception

getPreviousActiveSiteNodeVersion

public SiteNodeVersion getPreviousActiveSiteNodeVersion(java.lang.Integer siteNodeId,
                                                        java.lang.Integer siteNodeVersionId,
                                                        org.exolab.castor.jdo.Database db)
                                                 throws SystemException,
                                                        Bug,
                                                        java.lang.Exception
This method returns the version previous to the one sent in.

Throws:
SystemException
Bug
java.lang.Exception

getSiteNodeVersionVOWithParentRecursive

public java.util.List getSiteNodeVersionVOWithParentRecursive(java.lang.Integer siteNodeId,
                                                              java.lang.Integer stateId)
                                                       throws ConstraintException,
                                                              SystemException
Recursive methods to get all siteNodeVersions of a given state under the specified parent siteNode including the given siteNode.

Throws:
ConstraintException
SystemException

getPublishedSiteNodeVersionVOWithParentRecursive

public java.util.List getPublishedSiteNodeVersionVOWithParentRecursive(java.lang.Integer siteNodeId)
                                                                throws ConstraintException,
                                                                       SystemException
Recursive methods to get all siteNodeVersions of a given state under the specified parent siteNode including the given siteNode.

Throws:
ConstraintException
SystemException

getSiteNodeAndAffectedItemsRecursive

public void getSiteNodeAndAffectedItemsRecursive(java.lang.Integer siteNodeId,
                                                 java.lang.Integer stateId,
                                                 java.util.List siteNodeVersionVOList,
                                                 java.util.List contenteVersionVOList,
                                                 boolean includeMetaInfo)
                                          throws ConstraintException,
                                                 SystemException
Recursive methods to get all contentVersions of a given state under the specified parent content.

Throws:
ConstraintException
SystemException

getLatestActiveSiteNodeVersionIfInState

public SiteNodeVersion getLatestActiveSiteNodeVersionIfInState(SiteNode siteNode,
                                                               java.lang.Integer stateId,
                                                               org.exolab.castor.jdo.Database db)
                                                        throws SystemException,
                                                               java.lang.Exception
This method returns the latest sitenodeVersion there is for the given siteNode.

Throws:
SystemException
java.lang.Exception

getMetaInfoContentVersionVOList

public java.util.List getMetaInfoContentVersionVOList(java.lang.Integer siteNodeVersionId,
                                                      InfoGluePrincipal infoGluePrincipal)
                                               throws ConstraintException,
                                                      SystemException,
                                                      java.lang.Exception
This method gets the meta info for the siteNodeVersion.

Parameters:
db -
Throws:
ConstraintException
SystemException
java.lang.Exception

update

public SiteNodeVersionVO update(SiteNodeVersionVO siteNodeVersionVO)
                         throws ConstraintException,
                                SystemException
Updates the SiteNodeVersion.

Throws:
ConstraintException
SystemException

update

public SiteNodeVersionVO update(SiteNodeVersionVO siteNodeVersionVO,
                                org.exolab.castor.jdo.Database db)
                         throws ConstraintException,
                                SystemException,
                                java.lang.Exception
Updates the SiteNodeVersion within a transaction.

Throws:
ConstraintException
SystemException
java.lang.Exception

getPublishedActiveSiteNodeVersionVOList

public java.util.List getPublishedActiveSiteNodeVersionVOList(java.lang.Integer siteNodeId)
                                                       throws SystemException,
                                                              Bug,
                                                              java.lang.Exception
This method gets the meta info for the siteNodeVersion.

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

getPublishedActiveSiteNodeVersionVOList

public java.util.List getPublishedActiveSiteNodeVersionVOList(java.lang.Integer siteNodeId,
                                                              org.exolab.castor.jdo.Database db)
                                                       throws SystemException,
                                                              Bug,
                                                              java.lang.Exception
Throws:
SystemException
Bug
java.lang.Exception

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


Copyright © 2005 InfoGlue.org All Rights Reserved.