Interface AccessControlListBuilder


  • @Deprecated
    @NotThreadSafe
    public interface AccessControlListBuilder
    Deprecated.
    AccessControlLists belong to deprecated API version 1. Use API version 2 with policies instead.
    A mutable builder for a AccessControlList with a fluent API.
    • Method Detail

      • set

        AccessControlListBuilder set​(AclEntry entry)
        Deprecated.
        Sets the given entry to this builder. A previous entry with the same authorization subject is replaced.
        Parameters:
        entry - the entry to be set.
        Returns:
        this builder to allow method chaining.
        Throws:
        NullPointerException - if entry is null.
      • setAll

        AccessControlListBuilder setAll​(Iterable<AclEntry> entries)
        Deprecated.
        Sets the given entries to this builder. All previous entries with the same authorization subject are replaced.
        Parameters:
        entries - the entries to be set.
        Returns:
        this builder to allow method chaining.
        Throws:
        NullPointerException - if entries is null.
      • remove

        AccessControlListBuilder remove​(org.eclipse.ditto.model.base.auth.AuthorizationSubject authorizationSubject)
        Deprecated.
        Removes the entry from this builder which has the given authorization subject.
        Parameters:
        authorizationSubject - the authorization subject of the entry to be removed.
        Returns:
        this builder to allow method chaining.
        Throws:
        NullPointerException - if authorizationSubject is null.
      • removeAll

        AccessControlListBuilder removeAll​(Iterable<AclEntry> entries)
        Deprecated.
        Removes all entries from this builder which have the same authorization subject like the given entries.
        Parameters:
        entries - the entries to be removed.
        Returns:
        this builder to allow method chaining.
        Throws:
        NullPointerException - if entries is null.
      • build

        AccessControlList build()
        Deprecated.
        Returns a new immutable AccessControlList which contains all the entries which were set to this builder beforehand.
        Returns:
        a new AccessControlList.