org.gatein.mop.core.api.workspace
Class PageImpl

java.lang.Object
  extended by org.gatein.mop.core.api.workspace.WorkspaceObjectImpl
      extended by org.gatein.mop.core.api.workspace.PageImpl
All Implemented Interfaces:
CustomizationContext, Page, Templatized, TemplatizedObject, WorkspaceCustomizationContext, WorkspaceObject

public abstract class PageImpl
extends WorkspaceObjectImpl
implements Page, WorkspaceCustomizationContext

Version:
$Revision$
Author:
Julien Viet

Field Summary
 
Fields inherited from interface org.gatein.mop.api.workspace.WorkspaceCustomizationContext
TYPE
 
Constructor Summary
PageImpl()
           
 
Method Summary
 PageImpl addChild(String name)
           
 boolean contains(CustomizationContext that)
           
<S> Customization<S>
customize(String name, ContentType<S> contentType, String contentId, S state)
           
<S> Customization<S>
customize(String name, Customization<S> customization)
           
abstract  void destroy()
           
 Attributes getCascadingAttributes()
           
 PageImpl getChild(String name)
           
 Collection<? extends Page> getChildren()
           
abstract  PageContainer getChildrenContainer()
           
 String getContextId()
           
 String getContextType()
           
 Customization<?> getCustomization(String name)
           
abstract  CustomizationContainer getCustomizations()
           
 Collection<PageLink> getNavigations()
           
 ObjectType<? extends Page> getObjectType()
           
abstract  PageImpl getPageTemplate()
           
 PageImpl getParent()
           
abstract  PageContainer getParentContainer()
           
abstract  UIContainerImpl getRootComponent()
           
 SiteImpl getSite()
           
abstract  SiteImpl getSiteParent()
           
 Page getTemplate()
           
abstract  Collection<NavigationImpl> getTemplatizedNavigations()
           
abstract  Collection<? extends WorkspaceObject> getTemplatizedObjects()
           
<T extends TemplatizedObject>
Collection<? extends T>
getTemplatizedObjects(ObjectType<T> templatizedType)
           
abstract  Collection<PageImpl> getTemplatizedPages()
           
abstract  void setPageTemplate(PageImpl template)
           
 void setTemplate(Page template)
           
 
Methods inherited from class org.gatein.mop.core.api.workspace.WorkspaceObjectImpl
getAttributes, getName, getObjectId, getProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gatein.mop.api.workspace.Page
getName
 
Methods inherited from interface org.gatein.mop.api.workspace.WorkspaceObject
getAttributes, getObjectId
 

Constructor Detail

PageImpl

public PageImpl()
Method Detail

getPageTemplate

public abstract PageImpl getPageTemplate()

setPageTemplate

public abstract void setPageTemplate(PageImpl template)

getTemplatizedNavigations

public abstract Collection<NavigationImpl> getTemplatizedNavigations()

getTemplatizedPages

public abstract Collection<PageImpl> getTemplatizedPages()

getTemplatizedObjects

public abstract Collection<? extends WorkspaceObject> getTemplatizedObjects()

getChildrenContainer

public abstract PageContainer getChildrenContainer()

getParentContainer

public abstract PageContainer getParentContainer()

getSiteParent

public abstract SiteImpl getSiteParent()

getRootComponent

public abstract UIContainerImpl getRootComponent()
Specified by:
getRootComponent in interface Page

destroy

public abstract void destroy()
Specified by:
destroy in interface Page

getCustomizations

public abstract CustomizationContainer getCustomizations()

getContextType

public String getContextType()
Specified by:
getContextType in interface CustomizationContext

getContextId

public String getContextId()
Specified by:
getContextId in interface CustomizationContext

contains

public boolean contains(CustomizationContext that)
Specified by:
contains in interface CustomizationContext

getCustomization

public Customization<?> getCustomization(String name)
Specified by:
getCustomization in interface WorkspaceCustomizationContext

customize

public <S> Customization<S> customize(String name,
                                      ContentType<S> contentType,
                                      String contentId,
                                      S state)
Specified by:
customize in interface WorkspaceCustomizationContext

customize

public <S> Customization<S> customize(String name,
                                      Customization<S> customization)
Specified by:
customize in interface WorkspaceCustomizationContext

getTemplatizedObjects

public <T extends TemplatizedObject> Collection<? extends T> getTemplatizedObjects(ObjectType<T> templatizedType)
Specified by:
getTemplatizedObjects in interface Page

getObjectType

public ObjectType<? extends Page> getObjectType()
Specified by:
getObjectType in interface Page
Specified by:
getObjectType in interface WorkspaceObject

getCascadingAttributes

public Attributes getCascadingAttributes()
Specified by:
getCascadingAttributes in interface Page

getSite

public SiteImpl getSite()
Specified by:
getSite in interface Page

getParent

public PageImpl getParent()
Specified by:
getParent in interface Page

addChild

public PageImpl addChild(String name)
                  throws NullPointerException,
                         IllegalArgumentException
Specified by:
addChild in interface Page
Throws:
NullPointerException
IllegalArgumentException

getChildren

public Collection<? extends Page> getChildren()
Specified by:
getChildren in interface Page

getChild

public PageImpl getChild(String name)
Specified by:
getChild in interface Page

getNavigations

public Collection<PageLink> getNavigations()
Specified by:
getNavigations in interface Page

setTemplate

public void setTemplate(Page template)
Specified by:
setTemplate in interface Templatized

getTemplate

public Page getTemplate()
Specified by:
getTemplate in interface Templatized


Copyright © 2009 eXo Platform SAS. All Rights Reserved.