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

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

public class AvailableServiceBindingController
extends BaseController

This controller handles all available service bindings persistence and logic

Author:
mattias

Constructor Summary
AvailableServiceBindingController()
           
 
Method Summary
 AvailableServiceBindingVO create(AvailableServiceBindingVO vo)
           
 void delete(AvailableServiceBindingVO availableServiceBindingVO)
          This method deletes an available service binding but only as long as there are no siteNodes which has serviceBindings referencing it.
 java.util.List getAssignedAvailableServiceBindings(java.lang.Integer siteNodeTypeDefinitionId)
          This method returns a List of all assigned AvailableServiceBindings available for a certain Repository.
 AvailableServiceBinding getAvailableServiceBindingWithId(java.lang.Integer availableServiceBindingId, org.exolab.castor.jdo.Database db)
           
 AvailableServiceBinding getAvailableServiceBindingWithName(java.lang.String name, org.exolab.castor.jdo.Database db, boolean readOnly)
          Returns the AvailableServiceBinding with the given name fetched within a given transaction.
 java.util.List getAvailableServiceBindingVOList()
           
 AvailableServiceBindingVO getAvailableServiceBindingVOWithId(java.lang.Integer availableServiceBindingId)
           
 AvailableServiceBindingVO getAvailableServiceBindingVOWithName(java.lang.String name)
          This method fetches an available service binding with the given name.
 AvailableServiceBindingVO getAvailableServiceBindingVOWithName(java.lang.String name, org.exolab.castor.jdo.Database db)
          This method fetches an available service binding with the given name.
static AvailableServiceBindingController getController()
           
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 AvailableServiceBinding getReadOnlyAvailableServiceBindingWithId(java.lang.Integer availableServiceBindingId, org.exolab.castor.jdo.Database db)
           
 java.util.List getServiceDefinitionVOList(org.exolab.castor.jdo.Database db, java.lang.Integer availableServiceBindingId)
          This method returns a list of ServiceDefinitionVO-objects which are available for the availableServiceBinding sent in.
 java.util.List getServiceDefinitionVOList(java.lang.Integer availableServiceBindingId)
          This method returns a list of ServiceDefinitionVO-objects which are available for the availableServiceBinding sent in.
 AvailableServiceBindingVO update(AvailableServiceBindingVO availableServiceBindingVO)
           
 AvailableServiceBindingVO update(AvailableServiceBindingVO availableServiceBindingVO, java.lang.String[] values)
           
 AvailableServiceBinding update(java.lang.Integer availableServiceBindingId, java.lang.String[] values, 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, 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

AvailableServiceBindingController

public AvailableServiceBindingController()
Method Detail

getController

public static AvailableServiceBindingController getController()

getAvailableServiceBindingVOWithId

public AvailableServiceBindingVO getAvailableServiceBindingVOWithId(java.lang.Integer availableServiceBindingId)
                                                             throws SystemException,
                                                                    Bug
Throws:
SystemException
Bug

create

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

delete

public void delete(AvailableServiceBindingVO availableServiceBindingVO)
            throws ConstraintException,
                   SystemException
This method deletes an available service binding but only as long as there are no siteNodes which has serviceBindings referencing it.

Throws:
ConstraintException
SystemException

getAvailableServiceBindingWithId

public AvailableServiceBinding getAvailableServiceBindingWithId(java.lang.Integer availableServiceBindingId,
                                                                org.exolab.castor.jdo.Database db)
                                                         throws SystemException,
                                                                Bug
Throws:
SystemException
Bug

getReadOnlyAvailableServiceBindingWithId

public AvailableServiceBinding getReadOnlyAvailableServiceBindingWithId(java.lang.Integer availableServiceBindingId,
                                                                        org.exolab.castor.jdo.Database db)
                                                                 throws SystemException,
                                                                        Bug
Throws:
SystemException
Bug

getAvailableServiceBindingVOList

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

getAvailableServiceBindingVOWithName

public AvailableServiceBindingVO getAvailableServiceBindingVOWithName(java.lang.String name)
                                                               throws SystemException,
                                                                      Bug
This method fetches an available service binding with the given name.

Throws:
SystemException
Bug

getAvailableServiceBindingVOWithName

public AvailableServiceBindingVO getAvailableServiceBindingVOWithName(java.lang.String name,
                                                                      org.exolab.castor.jdo.Database db)
                                                               throws SystemException,
                                                                      Bug
This method fetches an available service binding with the given name.

Throws:
SystemException
Bug

getAvailableServiceBindingWithName

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

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

getAssignedAvailableServiceBindings

public java.util.List getAssignedAvailableServiceBindings(java.lang.Integer siteNodeTypeDefinitionId)
                                                   throws ConstraintException,
                                                          SystemException
This method returns a List of all assigned AvailableServiceBindings available for a certain Repository.

Throws:
ConstraintException
SystemException

update

public AvailableServiceBindingVO update(AvailableServiceBindingVO availableServiceBindingVO)
                                 throws ConstraintException,
                                        SystemException
Throws:
ConstraintException
SystemException

update

public AvailableServiceBindingVO update(AvailableServiceBindingVO availableServiceBindingVO,
                                        java.lang.String[] values)
                                 throws ConstraintException,
                                        SystemException
Throws:
ConstraintException
SystemException

update

public AvailableServiceBinding update(java.lang.Integer availableServiceBindingId,
                                      java.lang.String[] values,
                                      org.exolab.castor.jdo.Database db)
                               throws ConstraintException,
                                      SystemException
Throws:
ConstraintException
SystemException

getServiceDefinitionVOList

public java.util.List getServiceDefinitionVOList(java.lang.Integer availableServiceBindingId)
                                          throws ConstraintException,
                                                 SystemException
This method returns a list of ServiceDefinitionVO-objects which are available for the availableServiceBinding sent in.

Throws:
ConstraintException
SystemException

getServiceDefinitionVOList

public java.util.List getServiceDefinitionVOList(org.exolab.castor.jdo.Database db,
                                                 java.lang.Integer availableServiceBindingId)
                                          throws ConstraintException,
                                                 SystemException
This method returns a list of ServiceDefinitionVO-objects which are available for the availableServiceBinding sent in.

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


Copyright © 2005 InfoGlue.org All Rights Reserved.