org.olat.core.util.vfs.callbacks
Interface VFSSecurityCallback

All Known Implementing Classes:
CollaborationTools.CollabSecCallback, FolderNodeCallback, FullAccessCallback, FullAccessWithQuotaCallback, ReadOnlyCallback, SharedFolderSecurityCallback

public interface VFSSecurityCallback

Initial Date: Feb 17, 2004

Author:
Mike Stock Comment: Implementations of this interface serve the VFS to decide wether read/write/list/delete is allowed for the current item. The callbacks a re inherited by children in case they do not have a callback on their own.

Method Summary
 boolean canCopy()
           
 boolean canDelete()
           
 boolean canDeleteRevisionsPermanently()
           
 boolean canList()
           
 boolean canRead()
           
 boolean canWrite()
           
 Quota getQuota()
           
 SubscriptionContext getSubscriptionContext()
           
 void setQuota(Quota quota)
          Set the Quota for this container.
 

Method Detail

canRead

boolean canRead()
Returns:
True if reading is allowed.

canWrite

boolean canWrite()
Returns:
True if writing is allowed.

canDelete

boolean canDelete()
Returns:
True if deleting is allowed.

canList

boolean canList()
Returns:
True if listing is allowed.

canCopy

boolean canCopy()
Returns:
True if copying is allowed.

canDeleteRevisionsPermanently

boolean canDeleteRevisionsPermanently()
Returns:
True if deleting revisions from delete files is allowed

getQuota

Quota getQuota()
Returns:
Return the Quota for this container.

setQuota

void setQuota(Quota quota)
Set the Quota for this container.

Parameters:
quota -

getSubscriptionContext

SubscriptionContext getSubscriptionContext()
Returns:
the subscriptionContext. If null, then no subscription must be offered.