|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.core.resources.model.impl.ResourceManager
public class ResourceManager
The default implementation for IResourceManager
| Field Summary |
|---|
| Fields inherited from interface org.nuxeo.core.resources.model.IResourceManager |
|---|
LOCAL_SCHEME |
| Constructor Summary | |
|---|---|
ResourceManager()
|
|
| Method Summary | |
|---|---|
ISiteControllerRegistry |
getControllerRegistry()
Get the controller registry |
static IResourceManager |
getInstance()
|
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)
|
void |
shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
Shutdown the service. |
void |
startup(org.eclipse.core.runtime.IProgressMonitor monitor)
Start the service. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceManager()
| Method Detail |
|---|
public static IResourceManager getInstance()
public void startup(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
ISiteService
startup in interface ISiteServicemonitor - the progress monitor if monitoring is required or null otherwise
org.eclipse.core.runtime.CoreException - if an exception occured
public void shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
ISiteService
shutdown in interface ISiteServicemonitor - the progress monitor if monitoring is required or null otherwise
org.eclipse.core.runtime.CoreException - if an exception occuredpublic IResourceTreeRoot getRoot()
IResourceManager
getRoot in interface IResourceManagerpublic ISite newSite(java.lang.String uri)
IResourceManager
newSite in interface IResourceManageruri - the site URI
public ISiteFile newFile(ISite site,
java.lang.String path)
newFile in interface IResourceManagersite - the owner sitepath - the file path
public ISiteFolder newFolder(ISite site,
java.lang.String path)
IResourceManager
newFolder in interface IResourceManagersite - the owner sitepath - the folder path
public ISiteController getSiteController(java.lang.String schema)
IResourceManager
getSiteController in interface IResourceManagerschema - the URI schema that defines the controlled site type.
public ISiteControllerRegistry getControllerRegistry()
IResourceManager
getControllerRegistry in interface IResourceManagerpublic IPropertyManager getPropertyManager()
IResourceManager
getPropertyManager in interface IResourceManager
public java.lang.Object getResourceProperty(ISiteResource resource,
java.lang.String property)
IResourceManagerIPropertyManager.getProperty(ISiteResource, String)
getResourceProperty in interface IResourceManagerresource - the resourceproperty - the property name
public void setResourceProperty(ISiteResource resource,
java.lang.String property,
java.lang.Object value)
setResourceProperty in interface IResourceManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||