Package org.eclipse.ditto.model.things
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 aAccessControlList
with a fluent API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AccessControlList
build()
Deprecated.Returns a new immutableAccessControlList
which contains all the entries which were set to this builder beforehand.AccessControlListBuilder
remove(org.eclipse.ditto.model.base.auth.AuthorizationSubject authorizationSubject)
Deprecated.Removes the entry from this builder which has the given authorization subject.AccessControlListBuilder
remove(AclEntry entry)
Deprecated.Removes the given entry from this builder.AccessControlListBuilder
removeAll(Iterable<AclEntry> entries)
Deprecated.Removes all entries from this builder which have the same authorization subject like the given entries.AccessControlListBuilder
set(AclEntry entry)
Deprecated.Sets the given entry to this builder.AccessControlListBuilder
setAll(Iterable<AclEntry> entries)
Deprecated.Sets the given entries to this builder.
-
-
-
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
- ifentry
isnull
.
-
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
- ifentries
isnull
.
-
remove
AccessControlListBuilder remove(AclEntry entry)
Deprecated.Removes the given entry from this builder. This is a convenience method forremove(AuthorizationSubject)
.- Parameters:
entry
- the entry to be removed.- Returns:
- this builder to allow method chaining.
- Throws:
NullPointerException
- ifentry
isnull
.
-
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
- ifauthorizationSubject
isnull
.
-
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
- ifentries
isnull
.
-
build
AccessControlList build()
Deprecated.Returns a new immutableAccessControlList
which contains all the entries which were set to this builder beforehand.- Returns:
- a new
AccessControlList
.
-
-