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

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

public class EventController
extends BaseController

Author:
Mattias Bogeblad This class implements all operations we can do on the cmEvent-entity.

Constructor Summary
EventController()
           
 
Method Summary
static EventVO create(EventVO eventVO, java.lang.Integer repositoryId, InfoGluePrincipal infoGluePrincipal)
          Creates a new Event with the values in the eventVO sent in in a new transaction.
static EventVO create(EventVO eventVO, java.lang.Integer repositoryId, InfoGluePrincipal infoGluePrincipal, org.exolab.castor.jdo.Database db)
          Creates a new Event with the values in the eventVO sent in.
static void delete(Event event, org.exolab.castor.jdo.Database db)
          This method removes an event from the database.
static void delete(EventVO eventVO)
          This method removes an event from the database.
static Event getEventWithId(java.lang.Integer eventId, org.exolab.castor.jdo.Database db)
          Gets the event in the given transaction.
 java.util.List getEventVOList()
          Gets all events in a read only transaction.
static java.util.List getEventVOListForEntity(java.lang.String entityClass, java.lang.Integer entityId)
          Returns a list of events currently available for the certain entity.
static EventVO getEventVOWithId(java.lang.Integer eventId)
          Gets the eventVO in a readonly transaction.
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
static java.util.List getPublicationEventVOListForRepository(java.lang.Integer repositoryId)
          Returns a list of events with either publish or unpublish-state currently available for the repository stated.
static EventVO update(EventVO eventVO)
          This method updates an event.
 
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

EventController

public EventController()
Method Detail

getEventVOWithId

public static EventVO getEventVOWithId(java.lang.Integer eventId)
                                throws SystemException,
                                       Bug
Gets the eventVO in a readonly transaction.

Throws:
SystemException
Bug

getEventWithId

public static Event getEventWithId(java.lang.Integer eventId,
                                   org.exolab.castor.jdo.Database db)
                            throws SystemException,
                                   Bug
Gets the event in the given transaction.

Throws:
SystemException
Bug

getEventVOList

public java.util.List getEventVOList()
                              throws SystemException,
                                     Bug
Gets all events in a read only transaction.

Throws:
SystemException
Bug

create

public static EventVO create(EventVO eventVO,
                             java.lang.Integer repositoryId,
                             InfoGluePrincipal infoGluePrincipal,
                             org.exolab.castor.jdo.Database db)
                      throws SystemException
Creates a new Event with the values in the eventVO sent in.

Throws:
SystemException

create

public static EventVO create(EventVO eventVO,
                             java.lang.Integer repositoryId,
                             InfoGluePrincipal infoGluePrincipal)
                      throws SystemException
Creates a new Event with the values in the eventVO sent in in a new transaction.

Throws:
SystemException

delete

public static void delete(EventVO eventVO)
                   throws SystemException
This method removes an event from the database.

Throws:
SystemException

delete

public static void delete(Event event,
                          org.exolab.castor.jdo.Database db)
                   throws SystemException
This method removes an event from the database.

Throws:
SystemException

update

public static EventVO update(EventVO eventVO)
                      throws SystemException
This method updates an event.

Throws:
SystemException

getEventVOListForEntity

public static java.util.List getEventVOListForEntity(java.lang.String entityClass,
                                                     java.lang.Integer entityId)
                                              throws SystemException,
                                                     Bug
Returns a list of events currently available for the certain entity.

Throws:
SystemException
Bug

getPublicationEventVOListForRepository

public static java.util.List getPublicationEventVOListForRepository(java.lang.Integer repositoryId)
                                                             throws SystemException,
                                                                    Bug
Returns a list of events with either publish or unpublish-state currently available for the repository stated.

Throws:
SystemException
Bug

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.