Package | Description |
---|---|
org.opencms.db |
Low-level database connection and access functionality.
|
org.opencms.file |
This important package provides the methods to access the OpenCms VFS repository with the permissions
of an authenticated user.
|
org.opencms.file.types |
The implementations of the core resource types for the VFS are located here.
|
Modifier and Type | Class and Description |
---|---|
class |
CmsVfsOnlineResourceAlreadyExistsException
Signals that an attempt to create a resource was not successfull
since at the given location another online resource with a different
structure id has been found.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CmsResource> |
CmsDriverManager.changeResourcesInFolderWithProperty(CmsDbContext dbc,
CmsResource resource,
java.lang.String propertyDefinition,
java.lang.String oldValue,
java.lang.String newValue,
boolean recursive)
Returns a list with all sub resources of a given folder that have set the given property,
matching the current property's value with the given old value and replacing it by a given new value.
|
java.util.List<CmsResource> |
CmsSecurityManager.changeResourcesInFolderWithProperty(CmsRequestContext context,
CmsResource resource,
java.lang.String propertyDefinition,
java.lang.String oldValue,
java.lang.String newValue,
boolean recursive)
Returns a list with all sub resources of a given folder that have set the given property,
matching the current property's value with the given old value and replacing it by a given new value.
|
void |
CmsSecurityManager.checkOfflineProject(CmsDbContext dbc)
Checks if the project in the given database context is not the "Online" project,
and throws an Exception if this is the case.
|
CmsResource |
CmsSecurityManager.createResource(CmsRequestContext context,
java.lang.String resourcePath,
CmsResource resource,
byte[] content,
java.util.List<CmsProperty> properties)
Creates a new resource with the provided content and properties.
|
void |
CmsDbContext.report(I_CmsReport report,
CmsMessageContainer message,
java.lang.Throwable throwable)
Reports an error to the given report (if available) and to the OpenCms log file.
|
void |
CmsDbContext.throwException(CmsMessageContainer message,
java.lang.Throwable throwable)
Returns an exception of the same type as
throwable , if throwable is an OpenCms Exception
with the message as a CmsMessageContainer and the throwable as a cause. |
Modifier and Type | Class and Description |
---|---|
class |
CmsVfsResourceAlreadyExistsException
Signals that a VFS resource unexpectedly exists.
|
class |
CmsVfsResourceNotFoundException
Signals that an attempt to read a resource in the VFS denoted by a specified
pathname has failed.
|
Modifier and Type | Method and Description |
---|---|
CmsFile |
CmsResourceTypeImage.writeFile(CmsObject cms,
CmsSecurityManager securityManager,
CmsFile resource) |