LibreOffice
LibreOffice 24.2 SDK API Reference
|
Handles access to a stratum consisting of a single layer in a configuration data repository. More...
import"XSingleLayerStratum.idl";
Public Member Functions | |
XLayer | getLayer ([in] string aComponent, [in] string aTimestamp) raises (BackendAccessException, com::sun::star::lang::IllegalArgumentException) |
retrieves the layer data for a component, if newer than indicated. More... | |
XUpdatableLayer | getUpdatableLayer ([in] string aComponent) raises (BackendAccessException, com::sun::star::lang::NoSupportException, com::sun::star::lang::IllegalArgumentException) |
retrieves a writable representation of the layer for a component. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Handles access to a stratum consisting of a single layer in a configuration data repository.
The interface provides timestamp-checking capabilities for efficient caching.
XLayer getLayer | ( | [in] string | aComponent, |
[in] string | aTimestamp | ||
) | |||
raises | ( | BackendAccessException, | |
com::sun::star::lang::IllegalArgumentException | |||
) |
retrieves the layer data for a component, if newer than indicated.
A timestamp can be provided, which is used to indicate a point in time. The layer should be returned only if is modified since that time.
aComponent | The name of the component to access. |
aTimestamp | a timestamp for the layer. |
An empty timestamp indicates, that the layer should be retrieved irrespective of its modification time.
The format and meaning of a timestamp depends on the implementation. Timestamps can be obtained using com::sun::star::util::XTimeStamped::getTimestamp().
NULL
if the layer is newer than indicated by the timestamp.com::sun::star::lang::IllegalArgumentException | if the component identifier is invalid or if the timestamp is invalid. |
com::sun::star::configuration::backend::BackendAccessException | if an error occurs while accessing the data. |
XUpdatableLayer getUpdatableLayer | ( | [in] string | aComponent | ) | |
raises | ( | BackendAccessException, | |||
com::sun::star::lang::NoSupportException, | |||||
com::sun::star::lang::IllegalArgumentException | |||||
) |
retrieves a writable representation of the layer for a component.
aComponent | The name of the component to access. |
com::sun::star::lang::IllegalArgumentException | if the component identifier is invalid. |
com::sun::star::lang::NoSupportException | if the implementation does not support updates. |
com::sun::star::configuration::backend::BackendAccessException | if an error occurs while accessing the data. |