Class SupportedLock

    • Constructor Detail

      • SupportedLock

        public SupportedLock()
        Creates a new empty SupportedLock property.
    • Method Detail

      • addEntry

        public void addEntry​(Type type,
                             Scope scope)
        Adds a capability to this lock support.
        Parameters:
        type - Can currently only be 'write'
        scope - Can currently only be 'exclusive' or 'shared'
        Throws:
        java.lang.IllegalArgumentException - If an argument contains invalid string
      • addEntry

        public void addEntry​(LockEntry entry)
        Adds a capability to this lock support.
        Parameters:
        entry - specifying the type of lock that is supported by this entry.
        See Also:
        LockEntry
      • isSupportedLock

        public boolean isSupportedLock​(Type type,
                                       Scope scope)
        Returns true if this a lock with the given type and scope is supported.
        Parameters:
        type -
        scope -
        Returns:
        true if applying a lock with the given type and scope is basically supported.
      • getSupportedLocks

        public java.util.Iterator<LockEntry> getSupportedLocks()
        Returns an iterator over all supported locks.
        Returns:
        an iterator over all supported locks
      • getValue

        public java.util.List<LockEntry> getValue()
        Returns the list of supported lock entries.
        Returns:
        list of supported lock.
        See Also:
        DavProperty.getValue()