merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / configuration / backend / XSingleLayerStratum.idl
blob96ac572e82dbe00fd7bf319bccebaf9257ddbc6d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_configuration_backend_XSingleLayerStratum_idl__
28 #define __com_sun_star_configuration_backend_XSingleLayerStratum_idl__
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include <com/sun/star/uno/XInterface.idl>
32 #endif
34 #ifndef __com_sun_star_configuration_backend_XLayer_idl__
35 #include <com/sun/star/configuration/backend/XLayer.idl>
36 #endif
38 #ifndef __com_sun_star_configuration_backend_XUpdatableLayer_idl__
39 #include <com/sun/star/configuration/backend/XUpdatableLayer.idl>
40 #endif
42 #ifndef __com_sun_star_configuration_backend_BackendAccessException_idl__
43 #include <com/sun/star/configuration/backend/BackendAccessException.idl>
44 #endif
46 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
47 #include <com/sun/star/lang/IllegalArgumentException.idl>
48 #endif
50 #ifndef __com_sun_star_lang_NoSupportException_idl__
51 #include <com/sun/star/lang/NoSupportException.idl>
52 #endif
54 //=============================================================================
56 module com { module sun { module star { module configuration { module backend {
58 //=============================================================================
60 /**
61 Handles access to a stratum consisting of a single layer
62 in a configuration data repository
64 <p> The interface provides timestamp-checking capabilities
65 for efficient caching.
66 </p>
68 @see com::sun::star::util::XTimeStamped
69 @see com::sun::star::configuration::backend::XSchemaSupplier
70 @see com::sun::star::configuration::backend::XMultiLayerStratum
72 @since OOo 1.1.2
74 published interface XSingleLayerStratum : ::com::sun::star::uno::XInterface
76 //-------------------------------------------------------------------------
78 /**
79 retrieves the layer data for a component, if newer than indicated.
81 <p> A timestamp can be provided, which is used to indicate
82 a point in time. The layer should be returned only if is modified
83 since that time.
84 </p>
86 @param aComponent
87 The name of the component to access.
89 @param aTimestamp
90 a timestamp for the layer.
92 <p> An empty timestamp indicates, that the layer should be
93 retrieved irrespective of its modification time.
94 </p>
95 <p> The format and meaning of a timestamp depends on
96 the implementation. Timestamps can be obtained using
97 <member scope="com::sun::star::util">XTimeStamped::getTimestamp()</member>.
98 </p>
100 @returns
101 a <type>Layer</type> object providing access to the layer data,
102 <NULL/> if the layer is newer than indicated by the timestamp.
104 @throws com::sun::star::lang::IllegalArgumentException
105 if the component identifier is invalid or
106 if the timestamp is invalid.
108 @throws com::sun::star::configuration::backend::BackendAccessException
109 if an error occurs while accessing the data.
111 @see com::sun::star::util::XTimeStamped
113 XLayer getLayer([in] string aComponent,
114 [in] string aTimestamp)
115 raises (BackendAccessException,
116 com::sun::star::lang::IllegalArgumentException) ;
118 //-------------------------------------------------------------------------
121 retrieves a writable representation of the layer for a component.
123 @param aComponent
124 The name of the component to access.
126 @return
127 an <type>UpdatableLayer</type> object providing
128 write access to the layer
130 @throws com::sun::star::lang::IllegalArgumentException
131 if the component identifier is invalid.
133 @throws com::sun::star::lang::NoSupportException
134 if the implementation does not support updates.
136 @throws com::sun::star::configuration::backend::BackendAccessException
137 if an error occurs while accessing the data.
139 XUpdatableLayer getUpdatableLayer([in] string aComponent)
140 raises (BackendAccessException,
141 com::sun::star::lang::NoSupportException,
142 com::sun::star::lang::IllegalArgumentException) ;
144 //-------------------------------------------------------------------------
147 //=============================================================================
149 } ; } ; } ; } ; } ;
151 #endif