|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.efaps.ui.webdav.WebDAVImpl
public class WebDAVImpl
The class is used as gateway to all WebDAV integrations. Each implementation
of a WebDAV integration is cached as #RootCollectionResource
object in #cache.
| Constructor Summary | |
|---|---|
WebDAVImpl()
|
|
| Method Summary | |
|---|---|
boolean |
checkinSource(SourceResource _source,
java.io.InputStream _inputStream)
Because no files exists within the WebDAV integration itself, a checkin to a source is not working. |
boolean |
checkoutSource(SourceResource _source,
java.io.OutputStream _outputStream)
Because no files exists within the WebDAV integration itself, a checkout of a source is not working. |
boolean |
copyCollection(CollectionResource _collection,
CollectionResource _newParent,
java.lang.String _newName)
A copy of a WebDAV integration is never allowed. |
boolean |
copySource(SourceResource _source,
CollectionResource _newParent,
java.lang.String _newName)
Because no files exists within the WebDAV integration itself, a copy of a source is not working. |
boolean |
createCollection(CollectionResource _collection,
java.lang.String _name)
New WebDAV integrations are never allowed to create within the WebDAV integration itself. |
boolean |
createSource(CollectionResource _collection,
java.lang.String _name)
New files are not allowed to create within the WebDAV integration itself. |
boolean |
deleteCollection(CollectionResource _collection)
WebDAV integrations are not allowed to delete within the WebDAV integration itself. |
boolean |
deleteSource(SourceResource _source)
Because no files exists within the WebDAV integration itself, a delete of a source is not working. |
CollectionResource |
getCollection(CollectionResource _col,
java.lang.String _name)
First, it is tested, if all WebDAV integrations are loaded into the cache. |
SourceResource |
getSource(CollectionResource _collection,
java.lang.String _name)
Because no files exists within the WebDAV integration itself, a source could not be found. |
java.util.List<AbstractResource> |
getSubs(CollectionResource _col)
First, it is tested, if all WebDAV integrations are loaded into the cache. |
boolean |
moveCollection(CollectionResource _collection,
CollectionResource _newParent,
java.lang.String _newName)
A rename / move of a WebDAV integration is never allowed. |
boolean |
moveSource(SourceResource _source,
CollectionResource _newParent,
java.lang.String _newName)
Because no files exists within the WebDAV integration itself, a move of a source is not working. |
int |
priority()
Return the priority (order number) in which this cache reload implementation must be reloaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebDAVImpl()
| Method Detail |
|---|
public int priority()
Integer.MAX_VALUEpublic java.util.List<AbstractResource> getSubs(CollectionResource _col)
#reloadCache is used to initialise the cache. Then
all cached WebDAV integration are returned as list.
getSubs in interface WebDAVInterface_col - collection resource for which the sub collections are
searched, here ignored (because this WebDAV integration is the
root!)
#cache,
#reloadCache,
#RootCollectionResourceCache.getResources
public CollectionResource getCollection(CollectionResource _col,
java.lang.String _name)
#reloadCache is used to initialise the cache. Then
the cache is used to found the root collection resource with the given
name.
getCollection in interface WebDAVInterface_col - collection resource for which the collections is
searched, here ignored (because this WebDAV integration is
the root!)_name - name of the searched collection resource
#cache,
#reloadCache
public boolean createCollection(CollectionResource _collection,
java.lang.String _name)
createCollection in interface WebDAVInterface
public boolean moveCollection(CollectionResource _collection,
CollectionResource _newParent,
java.lang.String _newName)
moveCollection in interface WebDAVInterface_collection - collection to move_newParent - new parent collection_newName - new name of the collection to move in the new parent
collection
public boolean copyCollection(CollectionResource _collection,
CollectionResource _newParent,
java.lang.String _newName)
copyCollection in interface WebDAVInterface_collection - collection to copy_newParent - new parent collection_newName - new name of the collection to copy in the new parent
collection
public boolean deleteCollection(CollectionResource _collection)
deleteCollection in interface WebDAVInterface
public SourceResource getSource(CollectionResource _collection,
java.lang.String _name)
getSource in interface WebDAVInterface_collection - collection resource representing the folder (if null,
means root folder)_name - name of the searched source resource
null
public boolean createSource(CollectionResource _collection,
java.lang.String _name)
createSource in interface WebDAVInterface
public boolean moveSource(SourceResource _source,
CollectionResource _newParent,
java.lang.String _newName)
moveSource in interface WebDAVInterface_source - source to move_newParent - new parent collection
public boolean copySource(SourceResource _source,
CollectionResource _newParent,
java.lang.String _newName)
copySource in interface WebDAVInterface_source - source to copy_newParent - new parent collection
public boolean deleteSource(SourceResource _source)
deleteSource in interface WebDAVInterface
public boolean checkinSource(SourceResource _source,
java.io.InputStream _inputStream)
checkinSource in interface WebDAVInterface
public boolean checkoutSource(SourceResource _source,
java.io.OutputStream _outputStream)
checkoutSource in interface WebDAVInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||