站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

Context - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.model.portal
Interface Context

All Superinterfaces:
PortalObject
All Known Implementing Classes:
ContextImpl

public interface Context
extends PortalObject

Contains nodes of type portal.


Field Summary
 
Fields inherited from interface org.jboss.portal.core.model.portal.PortalObject
TYPE_CONTEXT, TYPE_PAGE, TYPE_PORTAL, TYPE_WINDOW
 
Method Summary
 Portal createPortal(java.lang.String name)
          Create a new portal.
 Portal getDefaultPortal()
          Get the default portal of the context based on some criteria.
 Portal getPortal(java.lang.String name)
          Return an existing portal.
 
Methods inherited from interface org.jboss.portal.core.model.portal.PortalObject
destroyChild, getChild, getChildren, getContainer, getDeclaredProperty, getDeclaredPropertyMap, getId, getListener, getName, getParent, getProperty, getType, resolve, setDeclaredProperty, setListener
 

Method Detail

getPortal

public Portal getPortal(java.lang.String name)
Return an existing portal.


createPortal

public Portal createPortal(java.lang.String name)
                    throws DuplicatePortalObjectException
Create a new portal.

Throws:
DuplicatePortalObjectException

getDefaultPortal

public Portal getDefaultPortal()
Get the default portal of the context based on some criteria. For instance a shared context get the portal with the "default" name, for a private portal it gets the only portal owned by the user.