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

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

public class RepositoryController
extends BaseController


Constructor Summary
RepositoryController()
           
 
Method Summary
 RepositoryVO create(RepositoryVO vo)
           
 void delete(java.lang.Integer repositoryId, org.exolab.castor.jdo.Database db)
          This method deletes the Repository sent in from the system.
 void delete(RepositoryVO repositoryVO, java.lang.String userName, boolean forceDelete, InfoGluePrincipal infoGluePrincipal)
          This method removes a Repository from the system and also cleans out all depending repositoryLanguages.
 void delete(RepositoryVO repositoryVO, java.lang.String userName, InfoGluePrincipal infoGluePrincipal)
          This method removes a Repository from the system and also cleans out all depending repositoryLanguages.
 java.util.List getAuthorizedRepositoryVOList(InfoGluePrincipal infoGluePrincipal, boolean isBindingDialog)
          This method can be used by actions and use-case-controllers that only need to have simple access to the functionality.
static RepositoryController getController()
          Factory method
 RepositoryVO getFirstRepositoryVO()
          Return the first of all repositories.
 boolean getIsAccessApproved(java.lang.Integer repositoryId, InfoGluePrincipal infoGluePrincipal, boolean isBindingDialog)
          This method returns true if the user should have access to the repository sent in.
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 Repository getRepositoryWithId(java.lang.Integer id, org.exolab.castor.jdo.Database db)
           
 Repository getRepositoryWithName(java.lang.String name, org.exolab.castor.jdo.Database db)
          Returns the Repository with the given name fetched within a given transaction.
 java.util.List getRepositoryVOList()
          This method can be used by actions and use-case-controllers that only need to have simple access to the functionality.
 RepositoryVO getRepositoryVOWithId(java.lang.Integer repositoryId)
           
 RepositoryVO getRepositoryVOWithName(java.lang.String name)
          Returns the RepositoryVO with the given name.
 RepositoryVO update(RepositoryVO vo)
           
 RepositoryVO update(RepositoryVO repositoryVO, java.lang.String[] languageValues)
           
 
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, 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

RepositoryController

public RepositoryController()
Method Detail

getController

public static RepositoryController getController()
Factory method


create

public RepositoryVO create(RepositoryVO vo)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

delete

public void delete(RepositoryVO repositoryVO,
                   java.lang.String userName,
                   InfoGluePrincipal infoGluePrincipal)
            throws ConstraintException,
                   SystemException
This method removes a Repository from the system and also cleans out all depending repositoryLanguages.

Throws:
ConstraintException
SystemException

delete

public void delete(RepositoryVO repositoryVO,
                   java.lang.String userName,
                   boolean forceDelete,
                   InfoGluePrincipal infoGluePrincipal)
            throws ConstraintException,
                   SystemException
This method removes a Repository from the system and also cleans out all depending repositoryLanguages.

Throws:
ConstraintException
SystemException

update

public RepositoryVO update(RepositoryVO vo)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

update

public RepositoryVO update(RepositoryVO repositoryVO,
                           java.lang.String[] languageValues)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

getRepositoryWithId

public Repository getRepositoryWithId(java.lang.Integer id,
                                      org.exolab.castor.jdo.Database db)
                               throws SystemException,
                                      Bug
Throws:
SystemException
Bug

getRepositoryVOWithId

public RepositoryVO getRepositoryVOWithId(java.lang.Integer repositoryId)
                                   throws ConstraintException,
                                          SystemException,
                                          Bug
Throws:
ConstraintException
SystemException
Bug

getRepositoryVOWithName

public RepositoryVO getRepositoryVOWithName(java.lang.String name)
                                     throws SystemException,
                                            Bug
Returns the RepositoryVO with the given name.

Parameters:
name -
Returns:
Throws:
SystemException
Bug

getRepositoryWithName

public Repository getRepositoryWithName(java.lang.String name,
                                        org.exolab.castor.jdo.Database db)
                                 throws SystemException,
                                        Bug
Returns the Repository with the given name fetched within a given transaction.

Parameters:
name -
db -
Returns:
Throws:
SystemException
Bug

getRepositoryVOList

public java.util.List getRepositoryVOList()
                                   throws ConstraintException,
                                          SystemException,
                                          Bug
This method can be used by actions and use-case-controllers that only need to have simple access to the functionality. They don't get the transaction-safety but probably just wants to show the info.

Throws:
ConstraintException
SystemException
Bug

getAuthorizedRepositoryVOList

public java.util.List getAuthorizedRepositoryVOList(InfoGluePrincipal infoGluePrincipal,
                                                    boolean isBindingDialog)
                                             throws ConstraintException,
                                                    SystemException,
                                                    Bug
This method can be used by actions and use-case-controllers that only need to have simple access to the functionality. They don't get the transaction-safety but probably just wants to show the info.

Throws:
ConstraintException
SystemException
Bug

getFirstRepositoryVO

public RepositoryVO getFirstRepositoryVO()
                                  throws SystemException,
                                         Bug
Return the first of all repositories.

Throws:
SystemException
Bug

delete

public void delete(java.lang.Integer repositoryId,
                   org.exolab.castor.jdo.Database db)
            throws SystemException,
                   Bug
This method deletes the Repository sent in from the system.

Throws:
SystemException
Bug

getIsAccessApproved

public boolean getIsAccessApproved(java.lang.Integer repositoryId,
                                   InfoGluePrincipal infoGluePrincipal,
                                   boolean isBindingDialog)
                            throws SystemException
This method returns true if the user should have access to the repository sent in.

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.