org.infoglue.cms.controllers.delivery.kernel.impl.simple
Class ExtranetController

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.BaseDeliveryController
        |
        +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.ExtranetController

public class ExtranetController
extends BaseDeliveryController

Author:
Mattias Bogeblad This class is the controller for extranet functionality. Authentication, authorization and stuff like that is what it does best!

Method Summary
 java.security.Principal getAuthenticatedPrincipal(java.lang.String userName, java.lang.String password)
          This method autenticates a user.
static ExtranetController getController()
          Factory method
 boolean getIsPrincipalAuthorized(java.security.Principal principal, java.lang.String name, java.lang.String value, NodeDeliveryController nodeDeliveryController)
          This method checks if a user has access to an entity.
 boolean getIsPrincipalAuthorizedForWriteAccess(java.security.Principal principal, java.lang.String name, java.lang.String value, NodeDeliveryController nodeDeliveryController)
          This method checks if a user has write access to an entity.
 java.util.Map getPrincipalPropertyHashValues(ExtranetPrincipal extranetPrincipal, 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(ExtranetPrincipal extranetPrincipal, 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.
 
Methods inherited from class org.infoglue.cms.controllers.delivery.kernel.impl.simple.BaseDeliveryController
beginTransaction, closeDatabase, commitTransaction, getObjectWithId, rollbackTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getController

public static ExtranetController getController()
Factory method


getAuthenticatedPrincipal

public java.security.Principal getAuthenticatedPrincipal(java.lang.String userName,
                                                         java.lang.String password)
                                                  throws java.lang.Exception
This method autenticates a user. It takes a username and checks first that it is defined as a infoglue extranet user.

java.lang.Exception

getIsPrincipalAuthorized

public boolean getIsPrincipalAuthorized(java.security.Principal principal,
                                        java.lang.String name,
                                        java.lang.String value,
                                        NodeDeliveryController nodeDeliveryController)
                                 throws java.lang.Exception
This method checks if a user has access to an entity. It takes name and id of the entity.

java.lang.Exception

getIsPrincipalAuthorizedForWriteAccess

public boolean getIsPrincipalAuthorizedForWriteAccess(java.security.Principal principal,
                                                      java.lang.String name,
                                                      java.lang.String value,
                                                      NodeDeliveryController nodeDeliveryController)
                                               throws java.lang.Exception
This method checks if a user has write access to an entity. It takes name and id of the entity.

java.lang.Exception

getPrincipalPropertyValue

public java.lang.String getPrincipalPropertyValue(ExtranetPrincipal extranetPrincipal,
                                                  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.

java.lang.Exception

getPrincipalPropertyHashValues

public java.util.Map getPrincipalPropertyHashValues(ExtranetPrincipal extranetPrincipal,
                                                    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.

java.lang.Exception


Copyright © 2003 InfoGlue.org All Rights Reserved.