org.nuxeo.core.resources.model
Interface ISiteFolder

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IContainer, ISiteResource
All Known Subinterfaces:
ISite
All Known Implementing Classes:
Site, SiteFolder

public interface ISiteFolder
extends ISiteResource, IContainer

Marker interface for all site resource that may contains other resources The path of a contained resource is container.getPath() + '/' + resource.getName() and the URI is container.getURI() + '/' + resource.getName()

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from interface org.nuxeo.core.resources.model.ISiteResource
FILE, FOLDER, SITE
 
Fields inherited from interface org.nuxeo.core.resources.model.IContainer
EMPTY_CHILDREN
 
Method Summary
 ISiteFile getFile(java.lang.String path)
          Get a file resource (of type FILE) for the given relative path (relative to the container) This is a handle operation thus it is allways returning a not null handle even if the resource is not existing
 ISiteFolder getFolder(java.lang.String path)
          Get a file resource (of type FILE) for the given relative path (relative to the container) This is a handle operation thus it is allways returning a not null handle even if the resource is not existing
 
Methods inherited from interface org.nuxeo.core.resources.model.ISiteResource
accept, create, delete, edit, exists, getContents, getMetadata, getName, getParent, getPath, getSite, getType, getURI, modify
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.nuxeo.core.resources.model.IContainer
children, findChild
 

Method Detail

getFile

ISiteFile getFile(java.lang.String path)
Get a file resource (of type FILE) for the given relative path (relative to the container) This is a handle operation thus it is allways returning a not null handle even if the resource is not existing

Parameters:
path - the path for the file to return
Returns:
the file at the given path. Cannot never null even if the file is not existing

getFolder

ISiteFolder getFolder(java.lang.String path)
Get a file resource (of type FILE) for the given relative path (relative to the container) This is a handle operation thus it is allways returning a not null handle even if the resource is not existing

Parameters:
path - the path for the folder to return
Returns:
the folder at the given path. Cannot never null even if the folder is not existing