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

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

public class UserPropertiesController
extends BaseController

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


Constructor Summary
UserPropertiesController()
           
 
Method Summary
 UserPropertiesVO create(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, UserPropertiesVO userPropertiesVO)
          This method created a new UserPropertiesVO in the database.
 UserProperties create(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, UserPropertiesVO userPropertiesVO, org.exolab.castor.jdo.Database db)
          This method created a new UserPropertiesVO in the database.
 void delete(UserPropertiesVO userPropertiesVO)
           
 void deleteDigitalAssetRelation(java.lang.Integer userPropertiesId, 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 userPropertiesId, java.lang.String attributeName, boolean escapeHTML)
          This method fetches a value from the xml that is the userProperties Value.
 java.util.List getContentTypeDefinitionVOList(java.lang.String userName)
          This method fetches all content types available for this user.
static UserPropertiesController getController()
          Factory method
 java.util.List getDigitalAssetVOList(java.lang.Integer userPropertiesId)
          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 getUserContentTypeDefinitionList(java.lang.String userName, org.exolab.castor.jdo.Database db)
          This method fetches all user content types available for this user within a transaction.
 java.util.List getUserPropertiesList(java.lang.String userName, java.lang.Integer languageId, org.exolab.castor.jdo.Database db)
          This method gets a list of userProperties for a user The result is a list of propertiesblobs - each propertyblob is a list of actual properties.
 UserProperties getUserPropertiesWithId(java.lang.Integer userPropertiesId, org.exolab.castor.jdo.Database db)
           
 java.util.List getUserPropertiesVOList()
           
 java.util.List getUserPropertiesVOList(java.lang.String userName, 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.
 UserPropertiesVO getUserPropertiesVOWithId(java.lang.Integer userPropertiesId)
           
 UserPropertiesVO update(java.lang.Integer languageId, java.lang.Integer contentTypeDefinitionId, UserPropertiesVO userPropertiesVO)
          This method updates an extranet role properties.
 UserPropertiesVO update(UserPropertiesVO userPropertiesVO, java.lang.String[] users)
           
 void updateAttributeValue(java.lang.Integer userPropertiesId, java.lang.String attributeName, java.lang.String attributeValue)
          This method fetches a value from the xml that is the userProperties Value.
 void updateContentTypeDefinitions(java.lang.String userName, 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

UserPropertiesController

public UserPropertiesController()
Method Detail

getController

public static UserPropertiesController getController()
Factory method


getUserPropertiesWithId

public UserProperties getUserPropertiesWithId(java.lang.Integer userPropertiesId,
                                              org.exolab.castor.jdo.Database db)
                                       throws SystemException,
                                              Bug
SystemException
Bug

getUserPropertiesVOWithId

public UserPropertiesVO getUserPropertiesVOWithId(java.lang.Integer userPropertiesId)
                                           throws SystemException,
                                                  Bug
SystemException
Bug

getUserPropertiesVOList

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

create

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

ConstraintException
SystemException

create

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

ConstraintException
SystemException
java.lang.Exception

update

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

ConstraintException
SystemException

update

public UserPropertiesVO update(UserPropertiesVO userPropertiesVO,
                               java.lang.String[] users)
                        throws ConstraintException,
                               SystemException
ConstraintException
SystemException

delete

public void delete(UserPropertiesVO userPropertiesVO)
            throws ConstraintException,
                   SystemException
ConstraintException
SystemException

deleteDigitalAssetRelation

public void deleteDigitalAssetRelation(java.lang.Integer userPropertiesId,
                                       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

getUserPropertiesVOList

public java.util.List getUserPropertiesVOList(java.lang.String userName,
                                              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

getUserPropertiesList

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

ConstraintException
SystemException
java.lang.Exception

getContentTypeDefinitionVOList

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

ConstraintException
SystemException

getUserContentTypeDefinitionList

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

ConstraintException
SystemException
java.lang.Exception

updateContentTypeDefinitions

public void updateContentTypeDefinitions(java.lang.String userName,
                                         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 userPropertiesId,
                                 java.lang.String attributeName,
                                 java.lang.String attributeValue)
                          throws SystemException,
                                 Bug
This method fetches a value from the xml that is the userProperties Value. It then updates that single value and saves it back to the db.

SystemException
Bug

getAttributeValue

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

SystemException
Bug

getDigitalAssetVOList

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

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