webdavcontent.hxx (06594b87) webdavcontent.hxx (9c0c1533)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 69 unchanged lines hidden (view full) ---

78 };
79
80 std::auto_ptr< DAVResourceAccess > m_xResAccess;
81 std::auto_ptr< CachableContentProperties >
82 m_xCachedProps; // locally cached props
83 rtl::OUString m_aEscapedTitle;
84 ResourceType m_eResourceType;
85 ContentProvider* m_pProvider; // No need for a ref, base class holds object
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 69 unchanged lines hidden (view full) ---

78 };
79
80 std::auto_ptr< DAVResourceAccess > m_xResAccess;
81 std::auto_ptr< CachableContentProperties >
82 m_xCachedProps; // locally cached props
83 rtl::OUString m_aEscapedTitle;
84 ResourceType m_eResourceType;
85 ContentProvider* m_pProvider; // No need for a ref, base class holds object
86 // True if the DEV resource is a 'unmapped URL' as it is named in RFC4918
86 bool m_bTransient;
87 bool m_bCollection;
88 bool m_bDidGetOrHead;
89 std::vector< rtl::OUString > m_aFailedPropNames;
90
91private:
92 virtual com::sun::star::uno::Sequence< com::sun::star::beans::Property >
93 getProperties( const com::sun::star::uno::Reference<

--- 38 unchanged lines hidden (view full) ---

132 throw ( ::com::sun::star::uno::Exception );
133
134 const ResourceType &
135 getResourceType( const ::com::sun::star::uno::Reference<
136 ::com::sun::star::ucb::XCommandEnvironment >& xEnv,
137 const std::auto_ptr< DAVResourceAccess > & rResAccess )
138 throw ( ::com::sun::star::uno::Exception );
139
87 bool m_bTransient;
88 bool m_bCollection;
89 bool m_bDidGetOrHead;
90 std::vector< rtl::OUString > m_aFailedPropNames;
91
92private:
93 virtual com::sun::star::uno::Sequence< com::sun::star::beans::Property >
94 getProperties( const com::sun::star::uno::Reference<

--- 38 unchanged lines hidden (view full) ---

133 throw ( ::com::sun::star::uno::Exception );
134
135 const ResourceType &
136 getResourceType( const ::com::sun::star::uno::Reference<
137 ::com::sun::star::ucb::XCommandEnvironment >& xEnv,
138 const std::auto_ptr< DAVResourceAccess > & rResAccess )
139 throw ( ::com::sun::star::uno::Exception );
140
140 // Command "open"
141 /// Command "open"
141 com::sun::star::uno::Any open(
142 const com::sun::star::ucb::OpenCommandArgument2 & rArg,
143 const com::sun::star::uno::Reference<
144 com::sun::star::ucb::XCommandEnvironment > & xEnv )
145 throw( ::com::sun::star::uno::Exception );
146
142 com::sun::star::uno::Any open(
143 const com::sun::star::ucb::OpenCommandArgument2 & rArg,
144 const com::sun::star::uno::Reference<
145 com::sun::star::ucb::XCommandEnvironment > & xEnv )
146 throw( ::com::sun::star::uno::Exception );
147
147 // Command "post"
148 /// Command "post"
148 void post( const com::sun::star::ucb::PostCommandArgument2 & rArg,
149 const com::sun::star::uno::Reference<
150 com::sun::star::ucb::XCommandEnvironment > & xEnv )
151 throw( ::com::sun::star::uno::Exception );
152
149 void post( const com::sun::star::ucb::PostCommandArgument2 & rArg,
150 const com::sun::star::uno::Reference<
151 com::sun::star::ucb::XCommandEnvironment > & xEnv )
152 throw( ::com::sun::star::uno::Exception );
153
153 // Command "insert"
154 /// Command "insert"
154 void insert( const ::com::sun::star::uno::Reference<
155 ::com::sun::star::io::XInputStream > & xInputStream,
156 sal_Bool bReplaceExisting,
157 const com::sun::star::uno::Reference<
158 com::sun::star::ucb::XCommandEnvironment >& Environment )
159 throw( ::com::sun::star::uno::Exception );
160
155 void insert( const ::com::sun::star::uno::Reference<
156 ::com::sun::star::io::XInputStream > & xInputStream,
157 sal_Bool bReplaceExisting,
158 const com::sun::star::uno::Reference<
159 com::sun::star::ucb::XCommandEnvironment >& Environment )
160 throw( ::com::sun::star::uno::Exception );
161
161 // Command "transfer"
162 /// Command "transfer"
162 void transfer( const ::com::sun::star::ucb::TransferInfo & rArgs,
163 const com::sun::star::uno::Reference<
164 com::sun::star::ucb::XCommandEnvironment >& Environment )
165 throw( ::com::sun::star::uno::Exception );
166
163 void transfer( const ::com::sun::star::ucb::TransferInfo & rArgs,
164 const com::sun::star::uno::Reference<
165 com::sun::star::ucb::XCommandEnvironment >& Environment )
166 throw( ::com::sun::star::uno::Exception );
167
167 // Command "delete"
168 /// Command "delete"
168 void destroy( sal_Bool bDeletePhysical )
169 throw( ::com::sun::star::uno::Exception );
170
169 void destroy( sal_Bool bDeletePhysical )
170 throw( ::com::sun::star::uno::Exception );
171
171 // Command "lock"
172 /// Command "lock"
172 void lock( const com::sun::star::uno::Reference<
173 com::sun::star::ucb::XCommandEnvironment >& Environment )
174 throw( ::com::sun::star::uno::Exception );
175
173 void lock( const com::sun::star::uno::Reference<
174 com::sun::star::ucb::XCommandEnvironment >& Environment )
175 throw( ::com::sun::star::uno::Exception );
176
176 // Command "unlock"
177 /// Command "unlock"
177 void unlock( const com::sun::star::uno::Reference<
178 com::sun::star::ucb::XCommandEnvironment >& Environment )
179 throw( ::com::sun::star::uno::Exception );
180
181 ::com::sun::star::uno::Any MapDAVException( const DAVException & e,
182 sal_Bool bWrite );
183 void cancelCommandExecution(
184 const DAVException & e,
185 const ::com::sun::star::uno::Reference<
186 com::sun::star::ucb::XCommandEnvironment > & xEnv,
187 sal_Bool bWrite = sal_False )
188 throw( ::com::sun::star::uno::Exception );
189
190 static bool shouldAccessNetworkAfterException( const DAVException & e );
191
192 bool supportsExclusiveWriteLock(
193 const com::sun::star::uno::Reference<
194 com::sun::star::ucb::XCommandEnvironment >& Environment );
195
178 void unlock( const com::sun::star::uno::Reference<
179 com::sun::star::ucb::XCommandEnvironment >& Environment )
180 throw( ::com::sun::star::uno::Exception );
181
182 ::com::sun::star::uno::Any MapDAVException( const DAVException & e,
183 sal_Bool bWrite );
184 void cancelCommandExecution(
185 const DAVException & e,
186 const ::com::sun::star::uno::Reference<
187 com::sun::star::ucb::XCommandEnvironment > & xEnv,
188 sal_Bool bWrite = sal_False )
189 throw( ::com::sun::star::uno::Exception );
190
191 static bool shouldAccessNetworkAfterException( const DAVException & e );
192
193 bool supportsExclusiveWriteLock(
194 const com::sun::star::uno::Reference<
195 com::sun::star::ucb::XCommandEnvironment >& Environment );
196
196 // XPropertyContainer replacement
197 /// XPropertyContainer replacement
197 void addProperty( const com::sun::star::ucb::PropertyCommandArgument &aCmdArg,
198 const com::sun::star::uno::Reference<
199 com::sun::star::ucb::XCommandEnvironment >& Environment )
200 throw( com::sun::star::beans::PropertyExistException,
201 com::sun::star::beans::IllegalTypeException,
202 com::sun::star::lang::IllegalArgumentException,
203 com::sun::star::uno::RuntimeException );
204

--- 16 unchanged lines hidden (view full) ---

221 ContentProvider* pProvider,
222 const ::com::sun::star::uno::Reference<
223 ::com::sun::star::ucb::XContentIdentifier >& Identifier,
224 rtl::Reference< DAVSessionFactory > const & rSessionFactory,
225 sal_Bool isCollection )
226 throw ( ::com::sun::star::ucb::ContentCreationException );
227 virtual ~Content();
228
198 void addProperty( const com::sun::star::ucb::PropertyCommandArgument &aCmdArg,
199 const com::sun::star::uno::Reference<
200 com::sun::star::ucb::XCommandEnvironment >& Environment )
201 throw( com::sun::star::beans::PropertyExistException,
202 com::sun::star::beans::IllegalTypeException,
203 com::sun::star::lang::IllegalArgumentException,
204 com::sun::star::uno::RuntimeException );
205

--- 16 unchanged lines hidden (view full) ---

222 ContentProvider* pProvider,
223 const ::com::sun::star::uno::Reference<
224 ::com::sun::star::ucb::XContentIdentifier >& Identifier,
225 rtl::Reference< DAVSessionFactory > const & rSessionFactory,
226 sal_Bool isCollection )
227 throw ( ::com::sun::star::ucb::ContentCreationException );
228 virtual ~Content();
229
229 // XInterface
230 /// XInterface
230 XINTERFACE_DECL()
231
231 XINTERFACE_DECL()
232
232 // XTypeProvider
233 /// XTypeProvider
233 XTYPEPROVIDER_DECL()
234
234 XTYPEPROVIDER_DECL()
235
235 // XServiceInfo
236 /// XServiceInfo
236 virtual ::rtl::OUString SAL_CALL
237 getImplementationName()
238 throw( ::com::sun::star::uno::RuntimeException );
239
240 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
241 getSupportedServiceNames()
242 throw( ::com::sun::star::uno::RuntimeException );
243
237 virtual ::rtl::OUString SAL_CALL
238 getImplementationName()
239 throw( ::com::sun::star::uno::RuntimeException );
240
241 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
242 getSupportedServiceNames()
243 throw( ::com::sun::star::uno::RuntimeException );
244
244 // XContent
245 /// XContent
245 virtual rtl::OUString SAL_CALL
246 getContentType()
247 throw( com::sun::star::uno::RuntimeException );
248
246 virtual rtl::OUString SAL_CALL
247 getContentType()
248 throw( com::sun::star::uno::RuntimeException );
249
249 // XCommandProcessor
250 /// XCommandProcessor
250 virtual com::sun::star::uno::Any SAL_CALL
251 execute( const com::sun::star::ucb::Command& aCommand,
252 sal_Int32 CommandId,
253 const com::sun::star::uno::Reference<
254 com::sun::star::ucb::XCommandEnvironment >& Environment )
255 throw( com::sun::star::uno::Exception,
256 com::sun::star::ucb::CommandAbortedException,
257 com::sun::star::uno::RuntimeException );
258 virtual void SAL_CALL
259 abort( sal_Int32 CommandId )
260 throw( com::sun::star::uno::RuntimeException );
261
251 virtual com::sun::star::uno::Any SAL_CALL
252 execute( const com::sun::star::ucb::Command& aCommand,
253 sal_Int32 CommandId,
254 const com::sun::star::uno::Reference<
255 com::sun::star::ucb::XCommandEnvironment >& Environment )
256 throw( com::sun::star::uno::Exception,
257 com::sun::star::ucb::CommandAbortedException,
258 com::sun::star::uno::RuntimeException );
259 virtual void SAL_CALL
260 abort( sal_Int32 CommandId )
261 throw( com::sun::star::uno::RuntimeException );
262
262 // XPropertyContainer
263 /// XPropertyContainer
263 virtual void SAL_CALL
264 addProperty( const rtl::OUString& Name,
265 sal_Int16 Attributes,
266 const com::sun::star::uno::Any& DefaultValue )
267 throw( com::sun::star::beans::PropertyExistException,
268 com::sun::star::beans::IllegalTypeException,
269 com::sun::star::lang::IllegalArgumentException,
270 com::sun::star::uno::RuntimeException );

--- 19 unchanged lines hidden (view full) ---

290 throw( com::sun::star::uno::RuntimeException );
291
292 //////////////////////////////////////////////////////////////////////
293 // Non-interface methods.
294 //////////////////////////////////////////////////////////////////////
295
296 DAVResourceAccess & getResourceAccess() { return *m_xResAccess; }
297
264 virtual void SAL_CALL
265 addProperty( const rtl::OUString& Name,
266 sal_Int16 Attributes,
267 const com::sun::star::uno::Any& DefaultValue )
268 throw( com::sun::star::beans::PropertyExistException,
269 com::sun::star::beans::IllegalTypeException,
270 com::sun::star::lang::IllegalArgumentException,
271 com::sun::star::uno::RuntimeException );

--- 19 unchanged lines hidden (view full) ---

291 throw( com::sun::star::uno::RuntimeException );
292
293 //////////////////////////////////////////////////////////////////////
294 // Non-interface methods.
295 //////////////////////////////////////////////////////////////////////
296
297 DAVResourceAccess & getResourceAccess() { return *m_xResAccess; }
298
298 // Called from resultset data supplier.
299 /** Called from resultset data supplier. */
299 static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
300 getPropertyValues( const ::com::sun::star::uno::Reference<
301 ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
302 const ::com::sun::star::uno::Sequence<
303 ::com::sun::star::beans::Property >& rProperties,
304 const ContentProperties& rData,
305 const rtl::Reference<
306 ::ucbhelper::ContentProviderImplHelper >& rProvider,
307 const ::rtl::OUString& rContentId );
300 static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
301 getPropertyValues( const ::com::sun::star::uno::Reference<
302 ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
303 const ::com::sun::star::uno::Sequence<
304 ::com::sun::star::beans::Property >& rProperties,
305 const ContentProperties& rData,
306 const rtl::Reference<
307 ::ucbhelper::ContentProviderImplHelper >& rProvider,
308 const ::rtl::OUString& rContentId );
309
310 /** returns the owner of current resource lock */
311 rtl::OUString getLockOwner( const uno::Reference< ucb::XCommandEnvironment >& Environment );
308};
309
310}
311
312#endif
312};
313
314}
315
316#endif