org.efaps.ui.webdav
Class TeamCenterWebDAVImpl

java.lang.Object
  extended by org.efaps.ui.webdav.TeamCenterWebDAVImpl
All Implemented Interfaces:
WebDAVInterface

public class TeamCenterWebDAVImpl
extends java.lang.Object
implements WebDAVInterface

Version:
$Id: TeamCenterWebDAVImpl.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
tmo

Constructor Summary
TeamCenterWebDAVImpl()
           
 
Method Summary
 boolean checkinSource(SourceResource _source, java.io.InputStream _inputStream)
           
 boolean checkoutSource(SourceResource _source, java.io.OutputStream _outputStream)
           
 boolean copyCollection(CollectionResource _collection, CollectionResource _newParent, java.lang.String _newName)
          A collection is copied to a new collection with a new name.
 boolean copySource(SourceResource _source, CollectionResource _newParent, java.lang.String _name)
          A source resource is copied to a new collection with a new name.
 boolean createCollection(CollectionResource _collection, java.lang.String _name)
           
 boolean createSource(CollectionResource _collection, java.lang.String _name)
           
 boolean deleteCollection(CollectionResource _collection)
           
 boolean deleteSource(SourceResource _source)
           
 CollectionResource getCollection(CollectionResource _collection, java.lang.String _name)
           
 SourceResource getSource(CollectionResource _collection, java.lang.String _name)
           
 java.util.List<AbstractResource> getSubs(CollectionResource _collection)
           
 boolean moveCollection(CollectionResource _collection, CollectionResource _newParent, java.lang.String _newName)
          A collection is moved to a new collection with a new name.
 boolean moveSource(SourceResource _source, CollectionResource _newParent, java.lang.String _name)
          A source resource is moved to a new collection with a new name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamCenterWebDAVImpl

public TeamCenterWebDAVImpl()
Method Detail

getSubs

public java.util.List<AbstractResource> getSubs(CollectionResource _collection)
Specified by:
getSubs in interface WebDAVInterface

getCollection

public CollectionResource getCollection(CollectionResource _collection,
                                        java.lang.String _name)
Specified by:
getCollection in interface WebDAVInterface
Parameters:
_collection - collection resource representing the folder (if null, means root folder)
_name - name of the searched collection resource
Returns:
found collection resource for given instance or null if not found.

createCollection

public boolean createCollection(CollectionResource _collection,
                                java.lang.String _name)
Specified by:
createCollection in interface WebDAVInterface

moveCollection

public boolean moveCollection(CollectionResource _collection,
                              CollectionResource _newParent,
                              java.lang.String _newName)
A collection is moved to a new collection with a new name. Attention! The new location (new parent) could be the same parent as currently specified!

Specified by:
moveCollection in interface WebDAVInterface
Parameters:
_collection - collection to move
_newParent - new parent collection
_newName - new name of the collection to move in the new parent collection
Returns:
true if the move of the collection is allowed, otherwise false

copyCollection

public boolean copyCollection(CollectionResource _collection,
                              CollectionResource _newParent,
                              java.lang.String _newName)
A collection is copied to a new collection with a new name. Attention! The new location (new parent) could be the same parent as currently specified!

Specified by:
copyCollection in interface WebDAVInterface
Parameters:
_collection - collection to copy
_newParent - new parent collection
_newName - new name of the collection to copy in the new parent collection
Returns:
true if the copy of the collection is allowed, otherwise false

deleteCollection

public boolean deleteCollection(CollectionResource _collection)
Specified by:
deleteCollection in interface WebDAVInterface

getSource

public SourceResource getSource(CollectionResource _collection,
                                java.lang.String _name)
Specified by:
getSource in interface WebDAVInterface
Parameters:
_collection - collection resource representing the folder (if null, means root folder)
_name - name of the searched source resource
Returns:
found source resource for given instance or null if not found.

createSource

public boolean createSource(CollectionResource _collection,
                            java.lang.String _name)
Specified by:
createSource in interface WebDAVInterface

moveSource

public boolean moveSource(SourceResource _source,
                          CollectionResource _newParent,
                          java.lang.String _name)
A source resource is moved to a new collection with a new name. Attention! The new location (new parent) could be the same parent as currently specified!

Specified by:
moveSource in interface WebDAVInterface
Parameters:
_source - source to move
_newParent - new parent collection
_newName - new name of the collection to move in the new parent collection
Returns:
true if the move of the collection is allowed, otherwise false

copySource

public boolean copySource(SourceResource _source,
                          CollectionResource _newParent,
                          java.lang.String _name)
A source resource is copied to a new collection with a new name. Attention! The new location (new parent) could be the same parent as currently specified!

Specified by:
copySource in interface WebDAVInterface
Parameters:
_source - source to copy
_newParent - new parent collection
_newName - new name of the collection to copy in the new parent collection
Returns:
true if the copy of the collection is allowed, otherwise false

deleteSource

public boolean deleteSource(SourceResource _source)
Specified by:
deleteSource in interface WebDAVInterface

checkinSource

public boolean checkinSource(SourceResource _source,
                             java.io.InputStream _inputStream)
Specified by:
checkinSource in interface WebDAVInterface

checkoutSource

public boolean checkoutSource(SourceResource _source,
                              java.io.OutputStream _outputStream)
Specified by:
checkoutSource in interface WebDAVInterface


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.