org.jboss.portal.core.impl.model
Class CustomizationManagerService

java.lang.Object
  extended by ServiceMBeanSupport
      extended by org.jboss.portal.jems.as.system.AbstractJBossService
          extended by org.jboss.portal.core.impl.model.CustomizationManagerService
All Implemented Interfaces:
CustomizationManager

public class CustomizationManagerService
extends AbstractJBossService
implements CustomizationManager

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
CustomizationManagerService()
           
 
Method Summary
protected  void createService()
           
 void destroyDashboard(java.lang.String userId)
          Destroys the dashboard of a specified user.
protected  void destroyService()
           
 Portal getDashboard(User user)
          Returns the dashboard of a specific user.
 java.lang.String getDashboardContextId()
           
 Instance getInstance(Window window)
          Returns a top level named portlet instance.
 Instance getInstance(Window window, User user)
          Returns a contextualized portlet instance for the specified user id.
 InstanceContainer getInstanceContainer()
           
 PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()
           
 PortalObjectContainer getPortalObjectContainer()
           
 RoleModule getRoleModule()
           
 UserModule getUserModule()
           
 boolean isDashboard(PortalObject object, User user)
          Return true if the portal object is in a dashboard context for the current authenticated user.
 void setDashboardContextId(java.lang.String dashboardContextId)
           
 void setInstanceContainer(InstanceContainer instanceContainer)
           
 void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)
           
 void setPortalObjectContainer(PortalObjectContainer portalObjectContainer)
           
 void setRoleModule(RoleModule roleModule)
           
 void setUserModule(UserModule userModule)
           
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomizationManagerService

public CustomizationManagerService()
Method Detail

getPortalObjectContainer

public PortalObjectContainer getPortalObjectContainer()

setPortalObjectContainer

public void setPortalObjectContainer(PortalObjectContainer portalObjectContainer)

getDashboardContextId

public java.lang.String getDashboardContextId()

setDashboardContextId

public void setDashboardContextId(java.lang.String dashboardContextId)

getInstanceContainer

public InstanceContainer getInstanceContainer()

setInstanceContainer

public void setInstanceContainer(InstanceContainer instanceContainer)

getPortalAuthorizationManagerFactory

public PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()

setPortalAuthorizationManagerFactory

public void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)

getUserModule

public UserModule getUserModule()

setUserModule

public void setUserModule(UserModule userModule)

getRoleModule

public RoleModule getRoleModule()

setRoleModule

public void setRoleModule(RoleModule roleModule)

createService

protected void createService()
                      throws java.lang.Exception
Throws:
java.lang.Exception

destroyService

protected void destroyService()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public Instance getInstance(Window window)
                     throws java.lang.IllegalArgumentException
Description copied from interface: CustomizationManager
Returns a top level named portlet instance.

Specified by:
getInstance in interface CustomizationManager
Parameters:
window - the window of the portlet instance
Returns:
the target instance or null if it cannot be found
Throws:
java.lang.IllegalArgumentException - if the window is null

getInstance

public Instance getInstance(Window window,
                            User user)
                     throws java.lang.IllegalArgumentException
Description copied from interface: CustomizationManager
Returns a contextualized portlet instance for the specified user id. If the window is in the context of a dashboard then the portlet instance is further customized for that specific window.

Specified by:
getInstance in interface CustomizationManager
Parameters:
window - the window of the portlet instance
user - the user that can be null
Returns:
the target instance or null if it cannot be found
Throws:
java.lang.IllegalArgumentException - if the window is null

isDashboard

public boolean isDashboard(PortalObject object,
                           User user)
Return true if the portal object is in a dashboard context for the current authenticated user.

Specified by:
isDashboard in interface CustomizationManager
Parameters:
object -
Returns:

getDashboard

public Portal getDashboard(User user)
                    throws java.lang.IllegalArgumentException
Description copied from interface: CustomizationManager
Returns the dashboard of a specific user.

Specified by:
getDashboard in interface CustomizationManager
Returns:
Throws:
java.lang.IllegalArgumentException

destroyDashboard

public void destroyDashboard(java.lang.String userId)
Description copied from interface: CustomizationManager
Destroys the dashboard of a specified user.

Specified by:
destroyDashboard in interface CustomizationManager