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

java.lang.Object
  extended by org.gatein.mop.core.api.workspace.WorkspaceObjectImpl
      extended by org.gatein.mop.core.api.workspace.SiteImpl
All Implemented Interfaces:
CustomizationContext, Site, WorkspaceCustomizationContext, WorkspaceObject
Direct Known Subclasses:
GroupSite, PortalSite, SharedSite, UserSite

public abstract class SiteImpl
extends WorkspaceObjectImpl
implements Site, WorkspaceCustomizationContext

Version:
$Revision$
Author:
Julien Viet

Field Summary
 
Fields inherited from interface org.gatein.mop.api.workspace.WorkspaceCustomizationContext
TYPE
 
Constructor Summary
SiteImpl()
           
 
Method Summary
 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()
           
 String getContextId()
           
 String getContextType()
           
 Customization<?> getCustomization(String name)
           
abstract  CustomizationContainer getCustomizations()
           
abstract  ObjectType<? extends Site> getObjectType()
           
abstract  PageImpl getRoot()
           
abstract  NavigationImpl getRootNavigation()
           
 Page getRootPage()
           
abstract  SiteContainer getSites()
           
 WorkspaceImpl getWorkspace()
           
 
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.Site
getName, getObjectId
 
Methods inherited from interface org.gatein.mop.api.workspace.WorkspaceObject
getAttributes
 

Constructor Detail

SiteImpl

public SiteImpl()
Method Detail

getRoot

public abstract PageImpl getRoot()

getRootNavigation

public abstract NavigationImpl getRootNavigation()
Specified by:
getRootNavigation in interface Site

getSites

public abstract SiteContainer getSites()

destroy

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

getCustomizations

public abstract CustomizationContainer getCustomizations()

getObjectType

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

getWorkspace

public WorkspaceImpl getWorkspace()
Specified by:
getWorkspace in interface Site

getRootPage

public Page getRootPage()
Specified by:
getRootPage in interface Site

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


Copyright © 2009 eXo Platform SAS. All Rights Reserved.