com.arsdigita.portal
Class DefaultPortalModel

java.lang.Object
  extended bycom.arsdigita.portal.DefaultPortalModel
All Implemented Interfaces:
PortalModel

public class DefaultPortalModel
extends Object
implements PortalModel

A default implementation of PortalModel that provides a stateful backing to the Bebop portal classes.

Version:
$Id: //core-platform/dev/src/com/arsdigita/portal/DefaultPortalModel.java#9 $
Author:
Justin Ross, James Parsons
See Also:
PortalModel, Portal, Portlet

Field Summary
static String versionId
           
 
Constructor Summary
DefaultPortalModel(BigDecimal portalID)
          Create a new DefaultPortalModel based on the Portal retrievable via portalID.
DefaultPortalModel(PageState pageState, BigDecimalParameter portalIDParam)
          Create a new DefaultPortalModel based on the Portal retrievable using portalIDParam.
DefaultPortalModel(Portal portal)
          Create a new DefaultPortalModel from the provided Portal.
 
Method Summary
 Iterator getPortletRenderers()
          Returns an iterator over a set of Portlets for this PortalModel's Portal.
 String getTitle()
          Get the title of this PortalModel's Portal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DefaultPortalModel

public DefaultPortalModel(PageState pageState,
                          BigDecimalParameter portalIDParam)
Create a new DefaultPortalModel based on the Portal retrievable using portalIDParam.

Parameters:
pageState - represents the current request.
portalIDParam - the parameter holding the ID for this portal.

DefaultPortalModel

public DefaultPortalModel(BigDecimal portalID)
Create a new DefaultPortalModel based on the Portal retrievable via portalID.

Parameters:
portalID - the ID of the portal you'd like to retrieve.

DefaultPortalModel

public DefaultPortalModel(Portal portal)
Create a new DefaultPortalModel from the provided Portal.

Parameters:
portal - the portal around which to build a PortalModel.
Method Detail

getPortletRenderers

public Iterator getPortletRenderers()
Returns an iterator over a set of Portlets for this PortalModel's Portal.

Specified by:
getPortletRenderers in interface PortalModel
Returns:
an Iterator over a this Portal's Portlets.

getTitle

public String getTitle()
Get the title of this PortalModel's Portal.

Specified by:
getTitle in interface PortalModel
Returns:
the title of this Portal.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC