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

java.lang.Object
  |
  +--org.infoglue.cms.controllers.kernel.impl.simple.BaseController
        |
        +--org.infoglue.cms.controllers.kernel.impl.simple.RolePropertiesController

public class RolePropertiesController
extends BaseController

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


Constructor Summary
RolePropertiesController()
           
 
Method Summary
 RolePropertiesVO create(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, RolePropertiesVO rolePropertiesVO)
          This method created a new RolePropertiesVO in the database.
 RoleProperties create(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, RolePropertiesVO rolePropertiesVO, org.exolab.castor.jdo.Database db)
          This method created a new RolePropertiesVO in the database.
 void delete(RolePropertiesVO rolePropertiesVO)
           
 void deleteDigitalAssetRelation(java.lang.Integer rolePropertiesId, 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 rolePropertiesId, java.lang.String attributeName, boolean escapeHTML)
          This method fetches a value from the xml that is the roleProperties Value.
 java.lang.String getAttributeValue(java.lang.String roleName, java.lang.Integer languageId, java.lang.String attributeName)
          Returns the value of a Role 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 roleProperties Value.
 java.util.List getContentTypeDefinitionVOList(java.lang.String roleName)
          This method fetches all content types available for this role.
static RolePropertiesController getController()
          Factory method
 java.util.List getDigitalAssetVOList(java.lang.Integer rolePropertiesId)
          This method should return a list of those digital assets the contentVersion has.
 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 getRelatedCategories(java.lang.String roleName, java.lang.Integer languageId, java.lang.String attribute)
          Returns all current Category relationships for th specified attribute name
 java.util.List getRelatedContents(java.lang.String roleName, java.lang.Integer languageId, java.lang.String attributeName)
          Returns the related Contents
 java.util.List getRelatedSiteNodes(java.lang.String roleName, java.lang.Integer languageId, java.lang.String attributeName)
          Returns the related SiteNodes
 java.util.List getRoleContentTypeDefinitionList(java.lang.String roleName, org.exolab.castor.jdo.Database db)
          This method fetches all role content types available for this role within a transaction.
 java.util.List getRolePropertiesList(java.lang.String roleName, java.lang.Integer languageId, org.exolab.castor.jdo.Database db)
          This method gets a list of roleProperties for a role The result is a list of propertiesblobs - each propertyblob is a list of actual properties.
 RoleProperties getRolePropertiesWithId(java.lang.Integer rolePropertiesId, org.exolab.castor.jdo.Database db)
           
 java.util.List getRolePropertiesVOList()
           
 java.util.List getRolePropertiesVOList(java.lang.String roleName, java.lang.Integer languageId)
          This method gets a list of roleProperties for a role The result is a list of propertiesblobs - each propertyblob is a list of actual properties.
 RolePropertiesVO getRolePropertiesVOWithId(java.lang.Integer rolePropertiesId)
           
 RolePropertiesVO update(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, RolePropertiesVO rolePropertiesVO)
          This method updates an extranet role properties.
 RolePropertiesVO update(RolePropertiesVO rolePropertiesVO, java.lang.String[] extranetUsers)
           
 void updateAttributeValue(java.lang.Integer rolePropertiesId, java.lang.String attributeName, java.lang.String attributeValue)
          This method fetches a value from the xml that is the roleProperties Value.
 void updateContentTypeDefinitions(java.lang.String roleName, java.lang.String[] contentTypeDefinitionIds)
          This method fetches all content types available for this role.
 
Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController
deleteEntity, deleteEntity, deleteEntity, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getVOWithId, getVOWithId, getVOWithId, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, validateEntity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolePropertiesController

public RolePropertiesController()
Method Detail

getController

public static RolePropertiesController getController()
Factory method


getRolePropertiesWithId

public RoleProperties getRolePropertiesWithId(java.lang.Integer rolePropertiesId,
                                              org.exolab.castor.jdo.Database db)
                                       throws SystemException,
                                              Bug
SystemException
Bug

getRolePropertiesVOWithId

public RolePropertiesVO getRolePropertiesVOWithId(java.lang.Integer rolePropertiesId)
                                           throws SystemException,
                                                  Bug
SystemException
Bug

getRolePropertiesVOList

public java.util.List getRolePropertiesVOList()
                                       throws SystemException,
                                              Bug
SystemException
Bug

create

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

ConstraintException
SystemException

create

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

ConstraintException
SystemException
java.lang.Exception

update

public RolePropertiesVO update(java.lang.Integer languageId,
                               java.lang.Integer contentTypeDefinitionId,
                               RolePropertiesVO rolePropertiesVO)
                        throws ConstraintException,
                               SystemException
This method updates an extranet role properties.

ConstraintException
SystemException

update

public RolePropertiesVO update(RolePropertiesVO rolePropertiesVO,
                               java.lang.String[] extranetUsers)
                        throws ConstraintException,
                               SystemException
ConstraintException
SystemException

getRolePropertiesVOList

public java.util.List getRolePropertiesVOList(java.lang.String roleName,
                                              java.lang.Integer languageId)
                                       throws ConstraintException,
                                              SystemException
This method gets a list of roleProperties for a role The result is a list of propertiesblobs - each propertyblob is a list of actual properties.

ConstraintException
SystemException

getRolePropertiesList

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

ConstraintException
SystemException
java.lang.Exception

delete

public void delete(RolePropertiesVO rolePropertiesVO)
            throws ConstraintException,
                   SystemException
ConstraintException
SystemException

getDigitalAssetVOList

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

SystemException
Bug

deleteDigitalAssetRelation

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

SystemException
Bug

getContentTypeDefinitionVOList

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

ConstraintException
SystemException

getRoleContentTypeDefinitionList

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

ConstraintException
SystemException
java.lang.Exception

updateContentTypeDefinitions

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

ConstraintException
SystemException

updateAttributeValue

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

SystemException
Bug

getAttributeValue

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

SystemException

getAttributeValue

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

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 roleProperties Value.

SystemException
Bug

getRelatedContents

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

Returns:
SystemException

getRelatedSiteNodes

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

Returns:
SystemException

getRelatedCategories

public java.util.List getRelatedCategories(java.lang.String roleName,
                                           java.lang.Integer languageId,
                                           java.lang.String attribute)
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