org.efaps.ui.webdav.resource
Class AbstractResource

java.lang.Object
  extended by org.efaps.ui.webdav.resource.AbstractResource
Direct Known Subclasses:
CollectionResource, SourceResource

public abstract class AbstractResource
extends java.lang.Object

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

Constructor Summary
protected AbstractResource(WebDAVInterface _webDAVImpl, java.lang.String _name, org.efaps.db.Instance _instance, java.util.Date _created, java.util.Date _modified, java.lang.String _description)
           
 
Method Summary
abstract  boolean copy(CollectionResource _collection, java.lang.String _newName)
          Copies this resource to a new location.
abstract  boolean delete()
          Deletes this resource.
 java.util.Date getCreated()
          This is the getter method for instance variable created.
 java.lang.String getDescription()
          This is the getter method for instance variable description.
 org.efaps.db.Instance getInstance()
          This is the getter method for instance variable instance.
 java.util.Date getModified()
          This is the getter method for instance variable modified.
 java.lang.String getName()
          This is the getter method for instance variable name.
 CollectionResource getParent()
          This is the getter method for instance variable parent.
 WebDAVInterface getWebDAVImpl()
          This is the getter method for instance variable webDAVImpl.
abstract  boolean move(CollectionResource _collection, java.lang.String _newName)
          Moves this resource to a new location.
protected  void setParent(CollectionResource _parent)
          This is the setter method for instance variable parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResource

protected AbstractResource(WebDAVInterface _webDAVImpl,
                           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 abstract boolean delete()
Deletes this resource.

Returns:
true if deleted, otherwise false

move

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

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

copy

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

Parameters:
_collection - new parent collection to copy
_newName - new name in the parent collection
Returns:
true if copied, otherwise false

getWebDAVImpl

public WebDAVInterface getWebDAVImpl()
This is the getter method for instance variable webDAVImpl.

Returns:
value of instance variable webDAVImpl
See Also:
webDAVImpl

getName

public java.lang.String getName()
This is the getter method for instance variable name.

Returns:
value of instance variable name
See Also:
name

getInstance

public org.efaps.db.Instance getInstance()
This is the getter method for instance variable instance.

Returns:
value of instance variable instance
See Also:
instance

getCreated

public java.util.Date getCreated()
This is the getter method for instance variable created.

Returns:
value of instance variable created
See Also:
created

getModified

public java.util.Date getModified()
This is the getter method for instance variable modified.

Returns:
value of instance variable modified
See Also:
modified

getDescription

public java.lang.String getDescription()
This is the getter method for instance variable description.

Returns:
value of instance variable description
See Also:
description

getParent

public CollectionResource getParent()
This is the getter method for instance variable parent.

Returns:
value of instance variable parent
See Also:
parent, setParent(org.efaps.ui.webdav.resource.CollectionResource)

setParent

protected void setParent(CollectionResource _parent)
This is the setter method for instance variable parent.

See Also:
parent, getParent()


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