org.infoglue.deliver.controllers.kernel.impl.simple
Class ExtranetController

java.lang.Object
  |
  +--org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
        |
        +--org.infoglue.deliver.controllers.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(org.exolab.castor.jdo.Database db, java.util.Map request)
          This method autenticates a user.
 java.security.Principal getAuthenticatedPrincipal(java.util.Map request)
          This method autenticates a user.
static ExtranetController getController()
          Factory method
 java.lang.String getPrincipalAssetUrl(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.String assetKey, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback)
          Getting a digitalAsset for a Principal - used for personalisation.
 java.lang.String getPrincipalThumbnailAssetUrl(org.exolab.castor.jdo.Database db, InfoGluePrincipal infoGluePrincipal, java.lang.String assetKey, java.lang.Integer languageId, java.lang.Integer siteNodeId, boolean useLanguageFallback, int width, int height)
          Getting a digitalAsset for a Principal - used for personalisation.
 
Methods inherited from class org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
beginTransaction, closeDatabase, closeTransaction, commitTransaction, getAllVOObjects, getAllVOObjects, rollbackTransaction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getController

public static ExtranetController getController()
Factory method


getAuthenticatedPrincipal

public java.security.Principal getAuthenticatedPrincipal(org.exolab.castor.jdo.Database db,
                                                         java.util.Map request)
                                                  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

getAuthenticatedPrincipal

public java.security.Principal getAuthenticatedPrincipal(java.util.Map request)
                                                  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

getPrincipalAssetUrl

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

java.lang.Exception

getPrincipalThumbnailAssetUrl

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

java.lang.Exception