org.apache.jackrabbit.webdav.bind
Interface BindableResource

All Known Implementing Classes:
DavResourceImpl, DeltaVResourceImpl, VersionControlledResourceImpl, VersionHistoryResourceImpl, VersionResourceImpl

public interface BindableResource


Method Summary
 void bind(DavResource collection, DavResource newBinding)
          Will add a new binding to the given collection referencing this resource.
 Set<ParentElement> getParentElements()
          Will retrieve a collection of parent elements of the bindable resource representing the parent set.
 void rebind(DavResource collection, DavResource newBinding)
          Will rebind the resource to the given collection.
 

Method Detail

bind

void bind(DavResource collection,
          DavResource newBinding)
          throws DavException
Will add a new binding to the given collection referencing this resource.

Parameters:
collection - the collection to create the new binding in.
newBinding - the new binding
Throws:
DavException

rebind

void rebind(DavResource collection,
            DavResource newBinding)
            throws DavException
Will rebind the resource to the given collection. By definition, this is an atomic move operation.

Parameters:
collection - the collection to create the new binding in.
newBinding - the new binding
Throws:
DavException

getParentElements

Set<ParentElement> getParentElements()
Will retrieve a collection of parent elements of the bindable resource representing the parent set.

Returns:
newBinding the new binding


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.