nl.uva.vlet.vrs
Interface VEditable

All Known Implementing Classes:
LinkNode, MyVLe, ResourceNode, VDir, VFile, VFSNode

public interface VEditable

This interface Provides some high level 'editable' methods, method which change the state of the object since not all VNodes are 'editable' or 'changeable'.


Method Summary
 boolean delete()
          Delete specified resource.
 boolean isDeletable()
          returns true is the caller has the permissions to delete this resource The default implementation for a VFSNode is to check whether it is writable
 boolean isEditable()
          returns true is the caller has the permissions to edit this resource.
 boolean setAttribute(VAttribute attr)
          Set single attribute.
 boolean setAttributes(VAttribute[] attrs)
          Sets a list of attributes
 

Method Detail

setAttributes

boolean setAttributes(VAttribute[] attrs)
                      throws VlException
Sets a list of attributes

Throws:
VlException

setAttribute

boolean setAttribute(VAttribute attr)
                     throws VlException
Set single attribute. Return true if attribute was set.

Throws:
VlException

isDeletable

boolean isDeletable()
                    throws VlException
returns true is the caller has the permissions to delete this resource The default implementation for a VFSNode is to check whether it is writable

Throws:
VlException

isEditable

boolean isEditable()
                   throws VlException
returns true is the caller has the permissions to edit this resource. This means the setAttribute(s) method(s) are allowed. The default implementation for a VFSNode is to check whether it is writable

Throws:
VlException

delete

boolean delete()
               throws VlException
Delete specified resource.

Throws:
VlException