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

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

public class GroupPropertiesController
extends BaseController

This class is the controller for all handling of extranet groups properties.


Constructor Summary
GroupPropertiesController()
           
 
Method Summary
 GroupPropertiesVO create(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, GroupPropertiesVO groupPropertiesVO)
          This method created a new GroupPropertiesVO in the database.
 GroupProperties create(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, GroupPropertiesVO groupPropertiesVO, org.exolab.castor.jdo.Database db)
          This method created a new GroupPropertiesVO in the database.
 void delete(GroupPropertiesVO groupPropertiesVO)
           
 void deleteDigitalAssetRelation(java.lang.Integer groupPropertiesId, DigitalAsset digitalAsset, org.exolab.castor.jdo.Database db)
          This method deletes the relation to a digital asset - not the asset itself.
 java.lang.String getAttributeValue(java.lang.Integer groupPropertiesId, java.lang.String attributeName, boolean escapeHTML)
          This method fetches a value from the xml that is the groupProperties Value.
 java.lang.String getAttributeValue(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName)
          Returns the value of a Group Property
 java.lang.String getAttributeValue(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName, org.exolab.castor.jdo.Database db)
          Returns the value of a Group Property
 java.lang.String getAttributeValue(java.lang.String xml, java.lang.String attributeName, boolean escapeHTML)
          This method fetches a value from the xml that is the groupProperties Value.
 java.util.List getContentTypeDefinitionVOList(java.lang.String groupName)
          This method fetches all content types available for this group.
static GroupPropertiesController getController()
          Factory method
 java.util.List getDigitalAssetVOList(java.lang.Integer groupPropertiesId)
          This method should return a list of those digital assets the contentVersion has.
 java.util.List getGroupContentTypeDefinitionList(java.lang.String groupName, org.exolab.castor.jdo.Database db)
          This method fetches all group content types available for this group within a transaction.
 java.util.List getGroupPropertiesList(java.lang.String groupName, java.lang.Integer languageId, org.exolab.castor.jdo.Database db, boolean readOnly)
          This method gets a list of groupProperties for a group The result is a list of propertiesblobs - each propertyblob is a list of actual properties.
 GroupProperties getGroupPropertiesWithId(java.lang.Integer groupPropertiesId, org.exolab.castor.jdo.Database db)
           
 java.util.List getGroupPropertiesVOList()
           
 java.util.List getGroupPropertiesVOList(java.lang.String groupName, java.lang.Integer languageId)
          This method gets a list of groupProperties for a group The result is a list of propertiesblobs - each propertyblob is a list of actual properties.
 java.util.List getGroupPropertiesVOList(java.lang.String groupName, java.lang.Integer languageId, org.exolab.castor.jdo.Database db)
          This method gets a list of groupProperties for a group The result is a list of propertiesblobs - each propertyblob is a list of actual properties.
 GroupPropertiesVO getGroupPropertiesVOWithId(java.lang.Integer groupPropertiesId)
           
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 java.util.List getReadOnlyRelatedContents(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName, org.exolab.castor.jdo.Database db)
          Returns the related Contents
 java.util.List getReadOnlyRelatedSiteNodes(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName, org.exolab.castor.jdo.Database db)
          Returns the related SiteNodes
 java.util.List getRelatedCategories(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attribute)
          Returns all current Category relationships for th specified attribute name
 java.util.List getRelatedCategories(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attribute, org.exolab.castor.jdo.Database db)
          Returns all current Category relationships for th specified attribute name
 java.util.List getRelatedCategoriesVOList(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attribute, org.exolab.castor.jdo.Database db)
          Returns all current Category relationships for th specified attribute name
 java.util.List getRelatedContents(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName)
          Returns the related Contents
 java.util.List getRelatedContents(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName, org.exolab.castor.jdo.Database db)
          Returns the related Contents
 java.util.List getRelatedSiteNodes(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName)
          Returns the related SiteNodes
 java.util.List getRelatedSiteNodes(java.lang.String groupName, java.lang.Integer languageId, java.lang.String attributeName, org.exolab.castor.jdo.Database db)
          Returns the related SiteNodes
 GroupPropertiesVO update(GroupPropertiesVO groupPropertiesVO, java.lang.String[] extranetUsers)
           
 GroupPropertiesVO update(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, GroupPropertiesVO groupPropertiesVO)
          This method updates an extranet group properties.
 void updateAttributeValue(java.lang.Integer groupPropertiesId, java.lang.String attributeName, java.lang.String attributeValue)
          This method fetches a value from the xml that is the groupProperties Value.
 void updateContentTypeDefinitions(java.lang.String groupName, java.lang.String[] contentTypeDefinitionIds)
          This method fetches all content types available for this group.
 
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

GroupPropertiesController

public GroupPropertiesController()
Method Detail

getController

public static GroupPropertiesController getController()
Factory method


getGroupPropertiesWithId

public GroupProperties getGroupPropertiesWithId(java.lang.Integer groupPropertiesId,
                                                org.exolab.castor.jdo.Database db)
                                         throws SystemException,
                                                Bug
Throws:
SystemException
Bug

getGroupPropertiesVOWithId

public GroupPropertiesVO getGroupPropertiesVOWithId(java.lang.Integer groupPropertiesId)
                                             throws SystemException,
                                                    Bug
Throws:
SystemException
Bug

getGroupPropertiesVOList

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

create

public GroupPropertiesVO create(java.lang.Integer languageId,
                                java.lang.Integer contentTypeDefinitionId,
                                GroupPropertiesVO groupPropertiesVO)
                         throws ConstraintException,
                                SystemException
This method created a new GroupPropertiesVO in the database.

Throws:
ConstraintException
SystemException

create

public GroupProperties create(java.lang.Integer languageId,
                              java.lang.Integer contentTypeDefinitionId,
                              GroupPropertiesVO groupPropertiesVO,
                              org.exolab.castor.jdo.Database db)
                       throws ConstraintException,
                              SystemException,
                              java.lang.Exception
This method created a new GroupPropertiesVO in the database. It also updates the extranetgroup so it recognises the change.

Throws:
ConstraintException
SystemException
java.lang.Exception

update

public GroupPropertiesVO update(java.lang.Integer languageId,
                                java.lang.Integer contentTypeDefinitionId,
                                GroupPropertiesVO groupPropertiesVO)
                         throws ConstraintException,
                                SystemException
This method updates an extranet group properties.

Throws:
ConstraintException
SystemException

update

public GroupPropertiesVO update(GroupPropertiesVO groupPropertiesVO,
                                java.lang.String[] extranetUsers)
                         throws ConstraintException,
                                SystemException
Throws:
ConstraintException
SystemException

getGroupPropertiesVOList

public java.util.List getGroupPropertiesVOList(java.lang.String groupName,
                                               java.lang.Integer languageId)
                                        throws ConstraintException,
                                               SystemException
This method gets a list of groupProperties for a group The result is a list of propertiesblobs - each propertyblob is a list of actual properties.

Throws:
ConstraintException
SystemException

getGroupPropertiesVOList

public java.util.List getGroupPropertiesVOList(java.lang.String groupName,
                                               java.lang.Integer languageId,
                                               org.exolab.castor.jdo.Database db)
                                        throws ConstraintException,
                                               java.lang.Exception
This method gets a list of groupProperties for a group The result is a list of propertiesblobs - each propertyblob is a list of actual properties.

Throws:
ConstraintException
java.lang.Exception

getGroupPropertiesList

public java.util.List getGroupPropertiesList(java.lang.String groupName,
                                             java.lang.Integer languageId,
                                             org.exolab.castor.jdo.Database db,
                                             boolean readOnly)
                                      throws ConstraintException,
                                             SystemException,
                                             java.lang.Exception
This method gets a list of groupProperties for a group The result is a list of propertiesblobs - each propertyblob is a list of actual properties.

Throws:
ConstraintException
SystemException
java.lang.Exception

delete

public void delete(GroupPropertiesVO groupPropertiesVO)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

getDigitalAssetVOList

public java.util.List getDigitalAssetVOList(java.lang.Integer groupPropertiesId)
                                     throws SystemException,
                                            Bug
This method should return a list of those digital assets the contentVersion has.

Throws:
SystemException
Bug

deleteDigitalAssetRelation

public void deleteDigitalAssetRelation(java.lang.Integer groupPropertiesId,
                                       DigitalAsset digitalAsset,
                                       org.exolab.castor.jdo.Database db)
                                throws SystemException,
                                       Bug
This method deletes the relation to a digital asset - not the asset itself.

Throws:
SystemException
Bug

getContentTypeDefinitionVOList

public java.util.List getContentTypeDefinitionVOList(java.lang.String groupName)
                                              throws ConstraintException,
                                                     SystemException
This method fetches all content types available for this group.

Throws:
ConstraintException
SystemException

getGroupContentTypeDefinitionList

public java.util.List getGroupContentTypeDefinitionList(java.lang.String groupName,
                                                        org.exolab.castor.jdo.Database db)
                                                 throws ConstraintException,
                                                        SystemException,
                                                        java.lang.Exception
This method fetches all group content types available for this group within a transaction.

Throws:
ConstraintException
SystemException
java.lang.Exception

updateContentTypeDefinitions

public void updateContentTypeDefinitions(java.lang.String groupName,
                                         java.lang.String[] contentTypeDefinitionIds)
                                  throws ConstraintException,
                                         SystemException
This method fetches all content types available for this group.

Throws:
ConstraintException
SystemException

updateAttributeValue

public void updateAttributeValue(java.lang.Integer groupPropertiesId,
                                 java.lang.String attributeName,
                                 java.lang.String attributeValue)
                          throws SystemException,
                                 Bug
This method fetches a value from the xml that is the groupProperties Value. It then updates that single value and saves it back to the db.

Throws:
SystemException
Bug

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String groupName,
                                          java.lang.Integer languageId,
                                          java.lang.String attributeName)
                                   throws SystemException
Returns the value of a Group Property

Throws:
SystemException

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String groupName,
                                          java.lang.Integer languageId,
                                          java.lang.String attributeName,
                                          org.exolab.castor.jdo.Database db)
                                   throws SystemException,
                                          java.lang.Exception
Returns the value of a Group Property

Throws:
SystemException
java.lang.Exception

getAttributeValue

public java.lang.String getAttributeValue(java.lang.Integer groupPropertiesId,
                                          java.lang.String attributeName,
                                          boolean escapeHTML)
                                   throws SystemException,
                                          Bug
This method fetches a value from the xml that is the groupProperties Value.

Throws:
SystemException
Bug

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String xml,
                                          java.lang.String attributeName,
                                          boolean escapeHTML)
                                   throws SystemException,
                                          Bug
This method fetches a value from the xml that is the groupProperties Value.

Throws:
SystemException
Bug

getRelatedContents

public java.util.List getRelatedContents(java.lang.String groupName,
                                         java.lang.Integer languageId,
                                         java.lang.String attributeName)
                                  throws SystemException
Returns the related Contents

Parameters:
groupPropertiesId -
Returns:
Throws:
SystemException

getReadOnlyRelatedContents

public java.util.List getReadOnlyRelatedContents(java.lang.String groupName,
                                                 java.lang.Integer languageId,
                                                 java.lang.String attributeName,
                                                 org.exolab.castor.jdo.Database db)
                                          throws SystemException,
                                                 java.lang.Exception
Returns the related Contents

Parameters:
groupPropertiesId -
Returns:
Throws:
SystemException
java.lang.Exception

getRelatedContents

public java.util.List getRelatedContents(java.lang.String groupName,
                                         java.lang.Integer languageId,
                                         java.lang.String attributeName,
                                         org.exolab.castor.jdo.Database db)
                                  throws SystemException,
                                         java.lang.Exception
Returns the related Contents

Parameters:
groupPropertiesId -
Returns:
Throws:
SystemException
java.lang.Exception

getRelatedSiteNodes

public java.util.List getRelatedSiteNodes(java.lang.String groupName,
                                          java.lang.Integer languageId,
                                          java.lang.String attributeName)
                                   throws SystemException
Returns the related SiteNodes

Parameters:
groupPropertiesId -
Returns:
Throws:
SystemException

getRelatedSiteNodes

public java.util.List getRelatedSiteNodes(java.lang.String groupName,
                                          java.lang.Integer languageId,
                                          java.lang.String attributeName,
                                          org.exolab.castor.jdo.Database db)
                                   throws SystemException,
                                          java.lang.Exception
Returns the related SiteNodes

Parameters:
groupPropertiesId -
Returns:
Throws:
SystemException
java.lang.Exception

getReadOnlyRelatedSiteNodes

public java.util.List getReadOnlyRelatedSiteNodes(java.lang.String groupName,
                                                  java.lang.Integer languageId,
                                                  java.lang.String attributeName,
                                                  org.exolab.castor.jdo.Database db)
                                           throws SystemException,
                                                  java.lang.Exception
Returns the related SiteNodes

Parameters:
groupPropertiesId -
Returns:
Throws:
SystemException
java.lang.Exception

getRelatedCategories

public java.util.List getRelatedCategories(java.lang.String groupName,
                                           java.lang.Integer languageId,
                                           java.lang.String attribute)
Returns all current Category relationships for th specified attribute name

Parameters:
attribute -
Returns:

getRelatedCategoriesVOList

public java.util.List getRelatedCategoriesVOList(java.lang.String groupName,
                                                 java.lang.Integer languageId,
                                                 java.lang.String attribute,
                                                 org.exolab.castor.jdo.Database db)
                                          throws SystemException,
                                                 java.lang.Exception
Returns all current Category relationships for th specified attribute name

Parameters:
attribute -
Returns:
Throws:
SystemException
java.lang.Exception

getRelatedCategories

public java.util.List getRelatedCategories(java.lang.String groupName,
                                           java.lang.Integer languageId,
                                           java.lang.String attribute,
                                           org.exolab.castor.jdo.Database db)
Returns all current Category relationships for th specified attribute name

Parameters:
attribute -
Returns:

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.