org.nuxeo.core.resources.model
Interface IResourceManager

All Superinterfaces:
ISiteService
All Known Implementing Classes:
ResourceManager

public interface IResourceManager
extends ISiteService

The resource manager is the entry point to the resource tree.
It is managing the resource tree root and it is a container for other site related services like the properties manager and site controller registry

Author:
Bogdan Stefanescu

Field Summary
static java.lang.String LOCAL_SCHEME
           
 
Method Summary
 ISiteControllerRegistry getControllerRegistry()
          Get the controller registry
 IPropertyManager getPropertyManager()
          Get the property manager
 java.lang.Object getResourceProperty(ISiteResource resource, java.lang.String property)
          Get a resource property giving its name
This is a shortcut to the IPropertyManager.getProperty(ISiteResource, String)
 IResourceTreeRoot getRoot()
          The root of all resources owned by this resource manager
 ISiteController getSiteController(java.lang.String schema)
          Get the controller for the given schema or NullSiteController if none was defined
 ISiteFile newFile(ISite site, java.lang.String path)
           
 ISiteFolder newFolder(ISite site, java.lang.String path)
          Create a new folder given the owner site and the folder path
 ISite newSite(java.lang.String uri)
          Create a new site resource given the site URI
 void setResourceProperty(ISiteResource resource, java.lang.String property, java.lang.Object value)
           
 
Methods inherited from interface org.nuxeo.core.resources.model.ISiteService
shutdown, startup
 

Field Detail

LOCAL_SCHEME

static final java.lang.String LOCAL_SCHEME
See Also:
Constant Field Values
Method Detail

getRoot

IResourceTreeRoot getRoot()
The root of all resources owned by this resource manager

Returns:
the resources root. Cannot be null

newSite

ISite newSite(java.lang.String uri)
Create a new site resource given the site URI

Parameters:
uri - the site URI
Returns:
the site

newFile

ISiteFile newFile(ISite site,
                  java.lang.String path)
Parameters:
site - the owner site
path - the file path
Returns:
the file

newFolder

ISiteFolder newFolder(ISite site,
                      java.lang.String path)
Create a new folder given the owner site and the folder path

Parameters:
site - the owner site
path - the folder path
Returns:
the folder

getSiteController

ISiteController getSiteController(java.lang.String schema)
Get the controller for the given schema or NullSiteController if none was defined

Parameters:
schema - the URI schema that defines the controlled site type.
Returns:
the site controller

getControllerRegistry

ISiteControllerRegistry getControllerRegistry()
Get the controller registry

Returns:
the controller registry

getPropertyManager

IPropertyManager getPropertyManager()
Get the property manager

Returns:
the property manager

getResourceProperty

java.lang.Object getResourceProperty(ISiteResource resource,
                                     java.lang.String property)
Get a resource property giving its name
This is a shortcut to the IPropertyManager.getProperty(ISiteResource, String)

Parameters:
resource - the resource
property - the property name
Returns:
the property value

setResourceProperty

void setResourceProperty(ISiteResource resource,
                         java.lang.String property,
                         java.lang.Object value)
Parameters:
resource -
property -
value -