public class CmsResourceWrapperSystemFolder extends A_CmsResourceWrapper
m_isWrappedResource| 构造器和说明 |
|---|
CmsResourceWrapperSystemFolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<CmsResource> |
addResourcesToFolder(CmsObject cms,
java.lang.String resourcename,
CmsResourceFilter filter)
Here it is possible to add additional (virtual) child resources to those already existing
in the VFS.
|
boolean |
isWrappedResource(CmsObject cms,
CmsResource res)
Is called to check if the given resource is handled by this wrapper.
|
CmsResource |
readResource(CmsObject cms,
java.lang.String resourcename,
CmsResourceFilter filter)
Reads a resource from the VFS, using the specified resource filter.
|
configure, copyResource, createResource, deleteResource, getLock, lockResource, moveResource, readFile, restoreLink, rewriteLink, unlockResource, wrapResource, writeFilepublic java.util.List<CmsResource> addResourcesToFolder(CmsObject cms, java.lang.String resourcename, CmsResourceFilter filter) throws CmsException
I_CmsResourceWrapperaddResourcesToFolder 在接口中 I_CmsResourceWrapperaddResourcesToFolder 在类中 A_CmsResourceWrappercms - the current users OpenCms contextresourcename - the full path of the resource where to add the child resources forfilter - the resource filter to useCmsResourcesCmsException - if something goes wrongA_CmsResourceWrapper.addResourcesToFolder(CmsObject, String, CmsResourceFilter)public boolean isWrappedResource(CmsObject cms, CmsResource res)
I_CmsResourceWrappercms - the initialized CmsObjectres - the resource to checkI_CmsResourceWrapper.isWrappedResource(CmsObject, CmsResource)public CmsResource readResource(CmsObject cms, java.lang.String resourcename, CmsResourceFilter filter) throws CmsException
I_CmsResourceWrapperFirst should be a check if the resourcename is handled by this resource wrapper.
It is possible that the path in the resourcename is a virtual path and so has to be translated into a valid path existing in the VFS to read the resource.
readResource 在接口中 I_CmsResourceWrapperreadResource 在类中 A_CmsResourceWrappercms - the current users OpenCms contextresourcename - The name of the resource to read (full path)filter - the resource filter to use while readingCmsException - if the resource could not be read for any reasonA_CmsResourceWrapper.readResource(org.opencms.file.CmsObject, java.lang.String, org.opencms.file.CmsResourceFilter)