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

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

public class InfoGluePrincipalControllerProxy
extends BaseController

Author:
Mattias Bogeblad This class acts as the proxy for getting a principal from the right source. The source may vary depending on security setup.

Constructor Summary
InfoGluePrincipalControllerProxy()
           
 
Method Summary
static InfoGluePrincipalControllerProxy getController()
           
 InfoGluePrincipal getInfoGluePrincipal(java.lang.String userName)
          This method returns a specific content-object
 BaseEntityVO getNewVO()
           
 java.util.Map getPrincipalPropertyHashValues(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.String propertyName, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, boolean escapeSpecialCharacters)
          Getting a property for a Principal - used for personalisation.
 java.util.Map getPrincipalPropertyHashValues(InfoGluePrincipal infoGluePrincipal, java.lang.String propertyName, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, boolean escapeSpecialCharacters)
          Getting a property for a Principal - used for personalisation.
 java.lang.String getPrincipalPropertyValue(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.String propertyName, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, boolean escapeSpecialCharacters, boolean findLargestValue)
          Getting a property for a Principal - used for personalisation.
 java.lang.String getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal, java.lang.String propertyName, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, boolean escapeSpecialCharacters, boolean findLargestValue)
          Getting a property for a Principal - used for personalisation.
 
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, 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

InfoGluePrincipalControllerProxy

public InfoGluePrincipalControllerProxy()
Method Detail

getController

public static InfoGluePrincipalControllerProxy getController()

getInfoGluePrincipal

public InfoGluePrincipal getInfoGluePrincipal(java.lang.String userName)
                                       throws ConstraintException,
                                              SystemException
This method returns a specific content-object

Throws:
ConstraintException
SystemException

getPrincipalPropertyValue

public java.lang.String getPrincipalPropertyValue(InfoGluePrincipal infoGluePrincipal,
                                                  java.lang.String propertyName,
                                                  java.lang.Integer languageId,
                                                  java.lang.Integer siteNodeId,
                                                  boolean useLanguageFallback,
                                                  boolean escapeSpecialCharacters,
                                                  boolean findLargestValue)
                                           throws java.lang.Exception
Getting a property for a Principal - used for personalisation. This method starts with getting the property on the user and if it does not exist we check out the group-properties as well.

Throws:
java.lang.Exception

getPrincipalPropertyValue

public java.lang.String getPrincipalPropertyValue(org.exolab.castor.jdo.Database db,
                                                  InfoGluePrincipal infoGluePrincipal,
                                                  java.lang.String propertyName,
                                                  java.lang.Integer languageId,
                                                  java.lang.Integer siteNodeId,
                                                  boolean useLanguageFallback,
                                                  boolean escapeSpecialCharacters,
                                                  boolean findLargestValue)
                                           throws java.lang.Exception
Getting a property for a Principal - used for personalisation. This method starts with getting the property on the user and if it does not exist we check out the group-properties as well.

Throws:
java.lang.Exception

getPrincipalPropertyHashValues

public java.util.Map getPrincipalPropertyHashValues(InfoGluePrincipal infoGluePrincipal,
                                                    java.lang.String propertyName,
                                                    java.lang.Integer languageId,
                                                    java.lang.Integer siteNodeId,
                                                    boolean useLanguageFallback,
                                                    boolean escapeSpecialCharacters)
                                             throws java.lang.Exception
Getting a property for a Principal - used for personalisation. This method starts with getting the property on the user and if it does not exist we check out the group-properties as well. The value in question is a map - name-value.

Throws:
java.lang.Exception

getPrincipalPropertyHashValues

public java.util.Map getPrincipalPropertyHashValues(org.exolab.castor.jdo.Database db,
                                                    InfoGluePrincipal infoGluePrincipal,
                                                    java.lang.String propertyName,
                                                    java.lang.Integer languageId,
                                                    java.lang.Integer siteNodeId,
                                                    boolean useLanguageFallback,
                                                    boolean escapeSpecialCharacters)
                                             throws java.lang.Exception
Getting a property for a Principal - used for personalisation. This method starts with getting the property on the user and if it does not exist we check out the group-properties as well. The value in question is a map - name-value.

Throws:
java.lang.Exception

getNewVO

public BaseEntityVO getNewVO()
Specified by:
getNewVO in class BaseController


Copyright © 2005 InfoGlue.org All Rights Reserved.