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

java.lang.Object
  extended by org.gatein.mop.core.api.workspace.WorkspaceObjectImpl
      extended by org.gatein.mop.core.api.workspace.WorkspaceImpl
All Implemented Interfaces:
CustomizationContext, Workspace, WorkspaceCustomizationContext, WorkspaceObject

public abstract class WorkspaceImpl
extends WorkspaceObjectImpl
implements Workspace, WorkspaceCustomizationContext

Version:
$Revision$
Author:
Julien Viet

Field Summary
 
Fields inherited from interface org.gatein.mop.api.workspace.WorkspaceCustomizationContext
TYPE
 
Constructor Summary
WorkspaceImpl()
           
 
Method Summary
<S extends Site>
S
addSite(ObjectType<S> siteType, 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)
           
 String getContextId()
           
 String getContextType()
           
 Customization<?> getCustomization(String name)
           
abstract  CustomizationContainer getCustomizations()
           
abstract  GroupSiteContainer getGroupSites()
           
<O extends WorkspaceObject>
O
getObject(ObjectType<O> type, String id)
           
abstract  WorkspaceObject getObject(String objectId)
           
 ObjectType<? extends Workspace> getObjectType()
           
abstract  PortalSiteContainer getPortalSites()
           
 Site getSharedSite()
           
abstract  UserSiteContainer getSharedSites()
           
<S extends Site>
S
getSite(ObjectType<S> siteType, String siteName)
           
 Collection<Site> getSites()
           
<S extends Site>
Collection<S>
getSites(ObjectType<S> siteType)
           
abstract  UserSiteContainer getUserSites()
           
abstract  CustomizationContext resolveContext(String contextId)
           
 
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.WorkspaceObject
getAttributes, getObjectId
 

Constructor Detail

WorkspaceImpl

public WorkspaceImpl()
Method Detail

getObjectType

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

getPortalSites

public abstract PortalSiteContainer getPortalSites()

getGroupSites

public abstract GroupSiteContainer getGroupSites()

getUserSites

public abstract UserSiteContainer getUserSites()

getSharedSites

public abstract UserSiteContainer getSharedSites()

getCustomizations

public abstract CustomizationContainer getCustomizations()

getObject

public abstract WorkspaceObject getObject(String objectId)

resolveContext

public abstract CustomizationContext resolveContext(String contextId)

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

getSite

public <S extends Site> S getSite(ObjectType<S> siteType,
                                  String siteName)
Specified by:
getSite in interface Workspace

getSites

public Collection<Site> getSites()
Specified by:
getSites in interface Workspace

getSites

public <S extends Site> Collection<S> getSites(ObjectType<S> siteType)
Specified by:
getSites in interface Workspace

addSite

public <S extends Site> S addSite(ObjectType<S> siteType,
                                  String name)
Specified by:
addSite in interface Workspace

getObject

public <O extends WorkspaceObject> O getObject(ObjectType<O> type,
                                               String id)
Specified by:
getObject in interface Workspace

getSharedSite

public Site getSharedSite()
Specified by:
getSharedSite in interface Workspace


Copyright © 2009 eXo Platform SAS. All Rights Reserved.