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

java.lang.Object
  extended by org.infoglue.cms.controllers.kernel.impl.simple.BaseController
      extended by org.infoglue.cms.controllers.kernel.impl.simple.PublicationController

public class PublicationController
extends BaseController

PublicationController.java

Author:
Stefan Sik, Mattias Bogeblad

Field Summary
static int LEAVE_WORKING
           
static int OVERIDE_WORKING
           
 
Constructor Summary
PublicationController()
           
 
Method Summary
static PublicationVO create(PublicationVO publication)
          This method (currently used for testing) will create a Publication with associated PublicationDetails children.
 PublicationVO createAndPublish(PublicationVO publicationVO, java.util.List events, boolean overrideVersionModifyer, InfoGluePrincipal infoGluePrincipal)
          This method creates a new publication with the concerned events carried out.
 PublicationVO createAndPublish(PublicationVO publicationVO, java.util.List events, boolean overrideVersionModifyer, InfoGluePrincipal infoGluePrincipal, org.exolab.castor.jdo.Database db)
          This method creates a new publication with the concerned events carried out.
static void denyPublicationRequest(java.lang.Integer eventId, java.lang.String publisherUserName, java.lang.String comment, java.lang.String referenceUrl)
          This method denies a requested publishing.
static void denyPublicationRequest(java.util.List eventVOList, java.lang.String publisherUserName, java.lang.String comment, java.lang.String referenceUrl)
          This method denies a list of requested publishing.
static java.util.List getAllEditions(java.lang.Integer repositoryId)
          This method returns a list of earlier editions for this site.
static PublicationController getController()
           
static EditionBrowser getEditionPage(java.lang.Integer repositoryId, int startIndex)
          This method returns a list of earlier editions for this site.
 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 getOwningContentVO(java.lang.Integer id)
          This method returns the owning content to a contentVersion.
static SiteNodeVO getOwningSiteNodeVO(java.lang.Integer id)
          This method returns the owning siteNode to a siteNodeVersion.
static java.util.List getPublicationDetailVOList(java.lang.Integer publicationId)
          This method returns a list of all details a publication has.
 PublicationDetailVO getPublicationDetailVOWithId(java.lang.Integer publicationDetailId)
          This method just returns the publication detail with the given id.
static java.util.List getPublicationEvents(java.lang.Integer repositoryId)
          This method returns a list of those events that are publication events and concerns this repository
static Publication getPublicationWithId(java.lang.Integer publicationId, org.exolab.castor.jdo.Database db)
          This method just returns the publication with the given id within the given transaction.
static PublicationVO unPublish(java.lang.Integer publicationId, InfoGluePrincipal infoGluePrincipal)
          This method unpublishes all entities in an edition if they are not unpublish-events.
 
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
 

Field Detail

OVERIDE_WORKING

public static final int OVERIDE_WORKING
See Also:
Constant Field Values

LEAVE_WORKING

public static final int LEAVE_WORKING
See Also:
Constant Field Values
Constructor Detail

PublicationController

public PublicationController()
Method Detail

getController

public static PublicationController getController()

getPublicationWithId

public static Publication getPublicationWithId(java.lang.Integer publicationId,
                                               org.exolab.castor.jdo.Database db)
                                        throws SystemException
This method just returns the publication with the given id within the given transaction.

Throws:
SystemException

getPublicationDetailVOWithId

public PublicationDetailVO getPublicationDetailVOWithId(java.lang.Integer publicationDetailId)
                                                 throws SystemException
This method just returns the publication detail with the given id.

Throws:
SystemException

getPublicationEvents

public static java.util.List getPublicationEvents(java.lang.Integer repositoryId)
                                           throws SystemException,
                                                  java.lang.Exception
This method returns a list of those events that are publication events and concerns this repository

Throws:
SystemException
java.lang.Exception

getAllEditions

public static java.util.List getAllEditions(java.lang.Integer repositoryId)
                                     throws SystemException
This method returns a list of earlier editions for this site.

Throws:
SystemException

getEditionPage

public static EditionBrowser getEditionPage(java.lang.Integer repositoryId,
                                            int startIndex)
                                     throws SystemException
This method returns a list of earlier editions for this site.

Throws:
SystemException

denyPublicationRequest

public static void denyPublicationRequest(java.lang.Integer eventId,
                                          java.lang.String publisherUserName,
                                          java.lang.String comment,
                                          java.lang.String referenceUrl)
                                   throws SystemException
This method denies a requested publishing. What that means is that the entity specified in the event does not get published and that the request-event is deleted and a new one created to deliver the message back to the requester. If it is a deny of publishing we also deletes the publish-version as it no longer has any purpose.

Throws:
SystemException

denyPublicationRequest

public static void denyPublicationRequest(java.util.List eventVOList,
                                          java.lang.String publisherUserName,
                                          java.lang.String comment,
                                          java.lang.String referenceUrl)
                                   throws SystemException
This method denies a list of requested publishing. What that means is that the entities specified in the event does not get published and that the request-event is deleted and a new one created to deliver the message back to the requester. If it is a deny of publishing we also deletes the publish-version as it no longer has any purpose.

Throws:
SystemException

createAndPublish

public PublicationVO createAndPublish(PublicationVO publicationVO,
                                      java.util.List events,
                                      boolean overrideVersionModifyer,
                                      InfoGluePrincipal infoGluePrincipal)
                               throws SystemException
This method creates a new publication with the concerned events carried out.

Throws:
SystemException

createAndPublish

public PublicationVO createAndPublish(PublicationVO publicationVO,
                                      java.util.List events,
                                      boolean overrideVersionModifyer,
                                      InfoGluePrincipal infoGluePrincipal,
                                      org.exolab.castor.jdo.Database db)
                               throws SystemException,
                                      java.lang.Exception
This method creates a new publication with the concerned events carried out.

Throws:
SystemException
java.lang.Exception

create

public static PublicationVO create(PublicationVO publication)
                            throws SystemException
This method (currently used for testing) will create a Publication with associated PublicationDetails children.

Throws:
SystemException

getPublicationDetailVOList

public static java.util.List getPublicationDetailVOList(java.lang.Integer publicationId)
                                                 throws SystemException
This method returns a list of all details a publication has.

Throws:
SystemException

unPublish

public static PublicationVO unPublish(java.lang.Integer publicationId,
                                      InfoGluePrincipal infoGluePrincipal)
                               throws SystemException
This method unpublishes all entities in an edition if they are not unpublish-events.

Throws:
SystemException

getOwningContentVO

public static ContentVO getOwningContentVO(java.lang.Integer id)
                                    throws SystemException
This method returns the owning content to a contentVersion.

Throws:
SystemException

getOwningSiteNodeVO

public static SiteNodeVO getOwningSiteNodeVO(java.lang.Integer id)
                                      throws SystemException
This method returns the owning siteNode to a siteNodeVersion.

Throws:
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


Copyright © 2005 InfoGlue.org All Rights Reserved.