org.jboss.portal.core.impl.model.portal
Class ContextImpl
java.lang.Object
org.jboss.portal.core.impl.model.portal.PortalObjectImpl
org.jboss.portal.core.impl.model.portal.ContextImpl
- All Implemented Interfaces:
- Context, PortalContainer, PortalObject
public class ContextImpl
- extends PortalObjectImpl
- implements Context
- Version:
- $Revision: 7292 $
- Author:
- Julien Viet
Methods inherited from class org.jboss.portal.core.impl.model.portal.PortalObjectImpl |
addChild, copy, destroy, destroyChild, equals, getChild, getChildren, getChildren, getDeclaredProperties, getDeclaredProperty, getDeclaredPropertyMap, getDefaultChild, getId, getKey, getListener, getMask, getMask, getName, getObjectNode, getParent, getProperties, getProperty, hashCode, setDeclaredProperty, setDeclaredPropertyMap, setKey, setListener, setObjectNode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.portal.core.model.portal.PortalObject |
copy, destroyChild, getChild, getChildren, getChildren, getDeclaredProperties, getDeclaredProperty, getId, getListener, getName, getParent, getProperties, getProperty, setDeclaredProperty, setListener |
ContextImpl
public ContextImpl()
ContextImpl
public ContextImpl(boolean hibernate)
getPortal
public Portal getPortal(java.lang.String name)
- Description copied from interface:
PortalContainer
- Return an existing portal or null if such a child does not exist or does not have
the right type.
- Specified by:
getPortal
in interface PortalContainer
- Parameters:
name
- the portal name
- Returns:
- the specified portal
createPortal
public Portal createPortal(java.lang.String name)
throws DuplicatePortalObjectException
- Description copied from interface:
PortalContainer
- Create a new portal.
- Specified by:
createPortal
in interface PortalContainer
- Parameters:
name
- the portal name
- Returns:
- the newly created portal
- Throws:
DuplicatePortalObjectException
- if a child with the specified name already exists
getDefaultPortal
public Portal getDefaultPortal()
- Description copied from interface:
PortalContainer
- Returns the default portal.
- Specified by:
getDefaultPortal
in interface PortalContainer
- Returns:
- the default portal of that container
getType
public int getType()
- Description copied from interface:
PortalObject
- Returns the type of the object which is a value that discriminates the object type.
- Specified by:
getType
in interface PortalObject
- Specified by:
getType
in class PortalObjectImpl
- Returns:
- the object type.
cloneObject
protected PortalObjectImpl cloneObject()
- Specified by:
cloneObject
in class PortalObjectImpl