org.apache.jetspeed.services.persistence
Class PersistenceManager

java.lang.Object
  extended byorg.apache.jetspeed.services.persistence.PersistenceManager

public abstract class PersistenceManager
extends java.lang.Object

Static accessor to the Portal Persistence Service for storing and retrieving portlet instances.

Version:
$Id: PersistenceManager.java,v 1.3 2004/02/23 03:33:52 jford Exp $
Author:
Scott Weaver

Constructor Summary
PersistenceManager()
           
 
Method Summary
static PortletInstance getInstance(Portlet portlet, Profile profile)
          Retrieves a portlet instance from persistent storage for the given portlet.
static PortletInstance getInstance(Portlet portlet, org.apache.turbine.util.RunData data)
          Retrieves a portlet instance from persistent storage for the given portlet.
static java.util.List getInstances(Profile profile)
          Retrieves a List of portlet instances for the given profile.
static java.util.List getInstances(org.apache.turbine.util.RunData data)
          Retrieves a List of portlet instances for the current profile.
protected static PortalPersistenceService getService()
           
static void store(PortletInstance pPortlet)
          Store a portlet instance to permenant storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceManager

public PersistenceManager()
Method Detail

getInstances

public static java.util.List getInstances(Profile profile)
                                   throws PortletException
Retrieves a List of portlet instances for the given profile.

Parameters:
profile - Retrieve instances from this profile.
Returns:
List The list of all instances in current profile.
Throws:
PortletException

getInstances

public static java.util.List getInstances(org.apache.turbine.util.RunData data)
                                   throws PortletException
Retrieves a List of portlet instances for the current profile.

Parameters:
data - Request rundata.
Returns:
List The list of all instances in current profile.
Throws:
PortletException

getInstance

public static PortletInstance getInstance(Portlet portlet,
                                          Profile profile)
Retrieves a portlet instance from persistent storage for the given portlet.

Parameters:
portlet - The portlet to retrieve an instance for
Returns:
PortletInstance The instance for the given portlet.

getInstance

public static PortletInstance getInstance(Portlet portlet,
                                          org.apache.turbine.util.RunData data)
Retrieves a portlet instance from persistent storage for the given portlet.

Parameters:
portlet - The portlet to retrieve an instance for
data - Request rundata.
Returns:
PortletInstance The instance for the given portlet.

store

public static void store(PortletInstance pPortlet)
                  throws PortalPersistenceException
Store a portlet instance to permenant storage.

Throws:
PortalPersistenceException - if there were problems storing the PSMLDocument to persistent storage.

getService

protected static PortalPersistenceService getService()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.