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

java.lang.Object
  extended by org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
      extended by 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, DeliveryContext deliveryContext)
          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, DeliveryContext deliveryContext)
          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, createQuery, executeQuery, executeQuery, getAllVOObjects, getAllVOObjects, getLogger, getObjectWithId, getVOWithId, rollbackTransaction, toVOList
 
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(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.

Throws:
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.

Throws:
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,
                                             DeliveryContext deliveryContext)
                                      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.

Throws:
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,
                                                      DeliveryContext deliveryContext)
                                               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.

Throws:
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.