@AllParametersAndReturnValuesAreNonnullByDefault
Package org.eclipse.ditto.model.policies
Contains the Policy framework around the cornerstone of this package:
Policy
.
A Policy consists of PolicyEntry
s.
One PolicyEntry
is identified by a Label
and
contains Subjects
and Resources
. The first
is a list of Subject
's that define for whom this entry will apply and the later
defines the single Resource
's together with the granted or revoked permissions
for the given subjects.
Object creation
PoliciesModelFactory
is the main entry point for obtaining objects of this
package's interfaces to work with.-
Interface Summary Interface Description EffectedPermissions HoldsPermissions
forPermissionEffect
s (grant/revoke).Label Represents aPolicyEntry
's Label.Permissions This Set is dedicated to hold permissions only.Policy A Policy containsPolicyEntry
s containing information about whichSubjects
are granted/revoked whichPermissions
on whichResources
.PolicyBuilder A mutable builder for aPolicy
with a fluent API.PolicyBuilder.LabelScoped Sub-Interface extending PolicyBuilder by awareness of theLabel
to use.PolicyEntry PolicyException Aggregates allDittoRuntimeException
s which are related to aPolicy
.PolicyRevision Represents the current revision of a Policy.Resource ResourceKey Represents aResource
's Key.Resources A collection ofResource
s contained in a singlePolicyEntry
.Subject Represents a single Subject in theSubjects
of aPolicyEntry
.SubjectAnnouncement Represents announcement settings of aSubject
.SubjectExpiry Represents aSubject
expiry timestamp indicating the instant when a Subject is automatically removed from a Policy entry.SubjectId Represents aSubject
's ID.SubjectIssuer Represents aSubject
issuer who has issued the subject.Subjects A collection ofSubject
s contained in a singlePolicyEntry
.SubjectType Represents aSubject
type used in a subject for documenting what type it is. -
Class Summary Class Description EffectedPermissions.JsonFields An enumeration of the knownJsonField
s of a EffectedPermissions.PoliciesModelFactory Factory that newPolicy
objects and other objects related to policies.PoliciesResourceType Contains currently "known" policy resource types and convenience methods for creatingResourceKey
s.Policy.JsonFields An enumeration of the knownJsonField
s of a Policy.PolicyConstants Constants to support working withPolicy
.PolicyEntry.JsonFields An enumeration of the knownJsonField
s of a PolicyEntry.PolicyEntryInvalidException.Builder A mutable builder with a fluent API for aPolicyEntryInvalidException
.PolicyId Java representation of a policy ID.PolicyIdInvalidException.Builder A mutable builder with a fluent API for aPolicyIdInvalidException
.PolicyTooLargeException.Builder A mutable builder with a fluent API for aPolicyTooLargeException
.Resource.JsonFields An enumeration of the knownJsonField
s of a Resource.Subject.JsonFields An enumeration of the knownJsonField
s of a Subject.SubjectAnnouncement.JsonFields Fields of the JSON representation of aSubjectAnnouncement
object.SubjectAnnouncementInvalidException.Builder A mutable builder with a fluent API for aSubjectAnnouncementInvalidException
.SubjectExpiryInvalidException.Builder A mutable builder with a fluent API for aSubjectExpiryInvalidException
.SubjectIdInvalidException.Builder A mutable builder with a fluent API for aSubjectIdInvalidException
. -
Enum Summary Enum Description PermissionEffect An enumeration of the availablePolicy
permission effects.PolicyLifecycle An enumeration of a Policy's lifecycle. -
Exception Summary Exception Description PolicyEntryInvalidException This exception indicates that an Policy entry is invalid for some reason.PolicyIdInvalidException Thrown if the Policy's ID is not valid (for example if it does not comply to the Policy ID REGEX).PolicyTooLargeException This exception indicates the content of a Policy is too large to be processed by a backend.SubjectAnnouncementInvalidException Thrown if a Subject announcement config is not valid (e.g.SubjectExpiryInvalidException Thrown if a Subjectexpiry
timestamp is not valid (e.g.SubjectIdInvalidException Thrown if a Subject ID is not valid (it requires at least one "":"" in it).