1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XBackend.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_configuration_backend_XBackend_idl__
31 #define __com_sun_star_configuration_backend_XBackend_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_configuration_backend_XUpdateHandler_idl__
38 #include
<com
/sun
/star
/configuration
/backend
/XUpdateHandler.idl
>
41 #ifndef __com_sun_star_configuration_backend_XLayer_idl__
42 #include
<com
/sun
/star
/configuration
/backend
/XLayer.idl
>
45 #ifndef __com_sun_star_configuration_backend_XSchema_idl__
46 #include
<com
/sun
/star
/configuration
/backend
/XSchema.idl
>
49 #ifndef __com_sun_star_configuration_backend_BackendAccessException_idl__
50 #include
<com
/sun
/star
/configuration
/backend
/BackendAccessException.idl
>
53 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
54 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
57 #ifndef __com_sun_star_lang_NoSupportException_idl__
58 #include
<com
/sun
/star
/lang
/NoSupportException.idl
>
61 //=============================================================================
63 module com
{ module sun
{ module star
{ module configuration
{ module backend
{
65 //=============================================================================
68 Handles access to layered data stored in a repository.
70 <p> Data can be retrieved on behalf of one or more entities.</p>
72 <p> There is an implied owner entity associated to the object
73 when it is created. This entity should be used for normal data access.
74 For administrative operations data of other entities can be accessed.
77 @see com::sun::star::configuration::backend::XBackendEntities
78 @see com::sun::star::configuration::backend::XSchemaSupplier
82 published
interface XBackend
: ::com
::sun
::star
::uno
::XInterface
84 //-------------------------------------------------------------------------
87 retrieves the layers associated to the owner
88 entity for a component.
91 component whose data will be accessed
94 a list of objects allowing access to the
95 component data for each layer associated to
98 @throws com::sun::star::lang::IllegalArgumentException
99 if the component identifier is invalid
101 @throws com::sun::star::configuration::backend::BackendAccessException
102 if an error occurs while accessing the data.
104 @see com::sun::star::configuration::backend::XBackendEntities::getOwnerEntity()
106 sequence
<XLayer
> listOwnLayers
([in] string aComponent
)
107 raises
(BackendAccessException
,
108 com
::sun
::star
::lang
::IllegalArgumentException
) ;
110 //-------------------------------------------------------------------------
113 creates an update handler for the owner entity
114 layer for a component.
117 component whose data will be updated
120 an object allowing manipulation of the
121 component data for the current entity
123 @throws com::sun::star::lang::IllegalArgumentException
124 if the component identifier is invalid
126 @throws com::sun::star::lang::NoSupportException
127 if updates are not supported for this backend
129 @throws com::sun::star::configuration::backend::BackendAccessException
130 if an error occurs while accessing the data.
132 @see com::sun::star::configuration::backend::XBackendEntities::getOwnerEntity()
134 XUpdateHandler getOwnUpdateHandler
([in] string aComponent
)
135 raises
(BackendAccessException
,
136 com
::sun
::star
::lang
::NoSupportException
,
137 com
::sun
::star
::lang
::IllegalArgumentException
) ;
139 //-------------------------------------------------------------------------
142 retrieves the layers associated to an entity for a component.
145 component whose data will be accessed
148 entity whose data will be accessed
151 a list of objects allowing access to the
152 component data for each layer associated
155 @throws com::sun::star::lang::IllegalArgumentException
156 if the component identifier is invalid
157 or if the entity doesn't exist.
159 @throws com::sun::star::configuration::backend::BackendAccessException
160 if an error occurs while accessing the data.
162 @see com::sun::star::configuration::backend::XBackendEntities::supportsEntity()
164 sequence
<XLayer
> listLayers
([in] string aComponent
,
166 raises
(BackendAccessException
,
167 com
::sun
::star
::lang
::IllegalArgumentException
) ;
169 //-------------------------------------------------------------------------
172 creates an update handler on an entity's layer for a component.
175 component whose data will be updated
178 entity whose data will be updated
181 an object allowing manipulation of the
182 component data for the entity
184 @throws com::sun::star::lang::IllegalArgumentException
185 if the component identifier is invalid
186 or if the entity doesn't exist.
188 @throws com::sun::star::lang::NoSupportException
189 if updates are not supported for this backend
191 @throws com::sun::star::configuration::backend::BackendAccessException
192 if an error occurs while accessing the data.
194 @see com::sun::star::configuration::backend::XBackendEntities::supportsEntity()
196 XUpdateHandler getUpdateHandler
([in] string aComponent
,
198 raises
(BackendAccessException
,
199 com
::sun
::star
::lang
::NoSupportException
,
200 com
::sun
::star
::lang
::IllegalArgumentException
) ;
202 //-------------------------------------------------------------------------
205 //=============================================================================