org.efaps.ui.webdav.resource
Class CollectionResource

java.lang.Object
  extended by org.efaps.ui.webdav.resource.AbstractResource
      extended by org.efaps.ui.webdav.resource.CollectionResource

public class CollectionResource
extends AbstractResource

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

Constructor Summary
CollectionResource(WebDAVInterface _webDAVImpl, WebDAVInterface _subWebDAVImpl, java.lang.String _name, org.efaps.db.Instance _instance, java.util.Date _created, java.util.Date _modified, java.lang.String _description)
           
 
Method Summary
 boolean copy(CollectionResource _collection, java.lang.String _newName)
          Copies this collection resource to a new location.
 boolean createCollection(java.lang.String _name)
           
 boolean createSource(java.lang.String _name)
           
 boolean delete()
          Deletes this collection resource.
 AbstractResource get(java.lang.String _name)
          Returns for given name the sub collection or sub source resource.
 CollectionResource getCollection(java.lang.String _name)
          As parent collection this collection is set.
 SourceResource getSource(java.lang.String _name)
          As parent collection this collection is set.
 java.util.List<AbstractResource> getSubs()
          For this collection all found sub collections and sources are returned.
 boolean move(CollectionResource _collection, java.lang.String _newName)
          Moves this collection resource to a new location.
 
Methods inherited from class org.efaps.ui.webdav.resource.AbstractResource
getCreated, getDescription, getInstance, getModified, getName, getParent, getWebDAVImpl, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionResource

public CollectionResource(WebDAVInterface _webDAVImpl,
                          WebDAVInterface _subWebDAVImpl,
                          java.lang.String _name,
                          org.efaps.db.Instance _instance,
                          java.util.Date _created,
                          java.util.Date _modified,
                          java.lang.String _description)
Method Detail

delete

public boolean delete()
Deletes this collection resource.

Specified by:
delete in class AbstractResource
Returns:
true if deleted, otherwise false

move

public boolean move(CollectionResource _collection,
                    java.lang.String _newName)
Moves this collection resource to a new location.

Specified by:
move in class AbstractResource
Parameters:
_collection - new parent collection to move
_newName - new name of the collection in the parent collection
Returns:
true if moved, otherwise false

copy

public boolean copy(CollectionResource _collection,
                    java.lang.String _newName)
Copies this collection resource to a new location.

Specified by:
copy in class AbstractResource
Parameters:
_collection - new parent collection to copy on
_newName - new name of the collection in the parent collection
Returns:
true if copied, otherwise false

getSubs

public java.util.List<AbstractResource> getSubs()
For this collection all found sub collections and sources are returned. As parent collection this collection is set.

Returns:
sub collections and sources for this collection

get

public AbstractResource get(java.lang.String _name)
Returns for given name the sub collection or sub source resource. As parent collection this collection is set.

Parameters:
_name - name of the resource to get
See Also:
getCollection(java.lang.String), getSource(java.lang.String)

getCollection

public CollectionResource getCollection(java.lang.String _name)
As parent collection this collection is set.


createCollection

public boolean createCollection(java.lang.String _name)
Returns:
true if created, otherwise false

getSource

public SourceResource getSource(java.lang.String _name)
As parent collection this collection is set.


createSource

public boolean createSource(java.lang.String _name)


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