|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebdavTreeModelController<T,M extends Modifiable>
Interface that allows to modify hierarchical resources via WebDAV
This interface is designed to be implemented by clients. |
Field Summary | |
---|---|
static boolean |
FLAG_COLLECTION
flag into the creation context to indicate that the new item is a collection |
static boolean |
FLAG_FILE
flag into the creation context to indicate that the new item is a file |
Method Summary | |
---|---|
WebdavCreationContext<T> |
createCreationContext(java.lang.String name,
boolean isCollection,
java.io.InputStream is,
T parent)
Returns a new creation context to create a new item inside a parent collection. |
TreeModelController<T,M> |
getTreeModelController()
Creates a new CommittableTreeModelController used to execute
modification operations on the tree. |
boolean |
update(M item,
java.io.InputStream is)
This method updates the modifiable item with the content of the input stream. |
Methods inherited from interface com.ibm.portal.resolver.webdav.tree.WebdavTreeModel |
---|
createDataSource, getItem, getLocalized, getName, getTreeModel, isCollection |
Methods inherited from interface com.ibm.portal.Committable |
---|
commit, dispose |
Field Detail |
---|
static final boolean FLAG_COLLECTION
static final boolean FLAG_FILE
Method Detail |
---|
WebdavCreationContext<T> createCreationContext(java.lang.String name, boolean isCollection, java.io.InputStream is, T parent) throws java.io.IOException
isCollection
parameter the new
item can contain subitems or not.
name
- name of the new collection or item, not null
. The
name will not contain the path separator '/' and will not be
URL encoded.isCollection
- true
if the new item is a collection, else
false
is
- in case a non-collection is created this stream contains the
content of the newly created item and will not be
null
. In case a collection is created, this
stream may be null
or contains the optional
request body of the MKCOL request.parent
- the parent collection, not null
. This information
can be used as a hint for the target insert location. In any
case the new node will be explicitly inserted as the child of
the parent collection after it has been created.
null
java.io.IOException
TreeModelController<T,M> getTreeModelController()
CommittableTreeModelController
used to execute
modification operations on the tree. If no modifications are allowed,
this method may return null
null
boolean update(M item, java.io.InputStream is) throws java.io.IOException
true
, else it returns false
. After a successful update the new
content of the item must be available via the
WebdavTreeModel.createDataSource(T)
APIs.
item
- item to update, not null
is
- the (new) content of the item, not null
true
if the operation was successful, else
false
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |