org.efaps.ui.webdav.resource
Class SourceResource
java.lang.Object
org.efaps.ui.webdav.resource.AbstractResource
org.efaps.ui.webdav.resource.SourceResource
public class SourceResource
- extends AbstractResource
- Version:
- $Id: SourceResource.java 3447 2009-11-29 22:46:39Z tim.moxter $
- Author:
- tmo
|
Constructor Summary |
SourceResource(WebDAVInterface _webDAVImpl,
java.lang.String _name,
org.efaps.db.Instance _instance,
java.util.Date _created,
java.util.Date _modified,
java.lang.String _description,
long _length)
|
|
Method Summary |
boolean |
checkin(java.io.InputStream _inputStream)
|
boolean |
checkout(java.io.OutputStream _outputStream)
|
boolean |
copy(CollectionResource _collection,
java.lang.String _newName)
Copies this source resource to a new location. |
boolean |
delete()
Deletes this source resource. |
long |
getLength()
This is the getter method for instance variable length. |
boolean |
move(CollectionResource _collection,
java.lang.String _newName)
Moves this source resource to a new location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceResource
public SourceResource(WebDAVInterface _webDAVImpl,
java.lang.String _name,
org.efaps.db.Instance _instance,
java.util.Date _created,
java.util.Date _modified,
java.lang.String _description,
long _length)
delete
public boolean delete()
- Deletes this source 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 source resource to a new location.
- Specified by:
move in class AbstractResource
- Parameters:
_collection - new parent collection to move_newName - new name of the source in the parent collection
- Returns:
- true if moved, otherwise false
copy
public boolean copy(CollectionResource _collection,
java.lang.String _newName)
- Copies this source resource to a new location.
- Specified by:
copy in class AbstractResource
- Parameters:
_collection - new parent collection to copy on_newName - new name of the source in the parent collection
- Returns:
- true if copied, otherwise false
checkout
public boolean checkout(java.io.OutputStream _outputStream)
checkin
public boolean checkin(java.io.InputStream _inputStream)
getLength
public long getLength()
- This is the getter method for instance variable
length.
- Returns:
- value of instance variable
length - See Also:
length
Copyright © 2003-2010 The eFaps Team. All Rights Reserved.