test_class.declarator: POLICY_NS = "com.test"
test_class.modifier: private static final
test_class.original_string: private static final String POLICY_NS = "com.test";
test_class.type: String
test_class.var_name: POLICY_NS
test_class.declarator: POLICY_ID = PolicyId.of(POLICY_NS, "test")
test_class.modifier: private static final
test_class.original_string: private static final PolicyId POLICY_ID = PolicyId.of(POLICY_NS, "test");
test_class.type: PolicyId
test_class.var_name: POLICY_ID
test_class.declarator: ATTRIBUTES_POINTER = JsonFactory.newPointer("/attributes")
test_class.modifier: private static final
test_class.original_string: private static final JsonPointer ATTRIBUTES_POINTER = JsonFactory.newPointer("/attributes");
test_class.type: JsonPointer
test_class.var_name: ATTRIBUTES_POINTER
test_class.declarator: FEATURES_POINTER = JsonFactory.newPointer("/features")
test_class.modifier: private static final
test_class.original_string: private static final JsonPointer FEATURES_POINTER = JsonFactory.newPointer("/features");
test_class.type: JsonPointer
test_class.var_name: FEATURES_POINTER
test_class.declarator: underTest = null
test_class.modifier: private
test_class.original_string: private PolicyBuilder underTest = null;
test_class.type: PolicyBuilder
test_class.var_name: underTest
test_class.file: model/policies/src/test/java/org/eclipse/ditto/model/policies/ImmutablePolicyBuilderTest.java
test_class.identifier: ImmutablePolicyBuilderTest
test_case.body: @Test
      public void tryToSetNullPolicyId() {
          assertThatExceptionOfType(NullPointerException.class)
                  .isThrownBy(() -> underTest.setId(null))
                  .withMessage("The Policy ID must not be null!")
                  .withNoCause();
      }
test_case.class_method_signature: ImmutablePolicyBuilderTest.tryToSetNullPolicyId()
test_case.full_signature: @Test public void tryToSetNullPolicyId()
test_case.identifier: tryToSetNullPolicyId
test_case.invocations: withNoCause withMessage isThrownBy assertThatExceptionOfType setId
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToSetNullPolicyId()
focal_class.declarator: subjects
focal_class.modifier: private final
focal_class.original_string: private final Map<Label, Map<SubjectId, Subject>> subjects;
focal_class.type: Map<Label, Map<SubjectId, Subject>>
focal_class.var_name: subjects
focal_class.declarator: grantedPermissions
focal_class.modifier: private final
focal_class.original_string: private final Map<Label, Map<ResourceKey, Permissions>> grantedPermissions;
focal_class.type: Map<Label, Map<ResourceKey, Permissions>>
focal_class.var_name: grantedPermissions
focal_class.declarator: revokedPermissions
focal_class.modifier: private final
focal_class.original_string: private final Map<Label, Map<ResourceKey, Permissions>> revokedPermissions;
focal_class.type: Map<Label, Map<ResourceKey, Permissions>>
focal_class.var_name: revokedPermissions
focal_class.declarator: id
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private PolicyId id;
focal_class.type: PolicyId
focal_class.var_name: id
focal_class.declarator: lifecycle
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private PolicyLifecycle lifecycle;
focal_class.type: PolicyLifecycle
focal_class.var_name: lifecycle
focal_class.declarator: revision
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private PolicyRevision revision;
focal_class.type: PolicyRevision
focal_class.var_name: revision
focal_class.declarator: modified
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private Instant modified;
focal_class.type: Instant
focal_class.var_name: modified
focal_class.declarator: created
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private Instant created;
focal_class.type: Instant
focal_class.var_name: created
focal_class.file: model/policies/src/main/java/org/eclipse/ditto/model/policies/ImmutablePolicyBuilder.java
focal_class.identifier: ImmutablePolicyBuilder
focal_class.interfaces: implements PolicyBuilder
focal_class.class_method_signature: ImmutablePolicyBuilder.ImmutablePolicyBuilder()
focal_class.full_signature: private  ImmutablePolicyBuilder()
focal_class.identifier: ImmutablePolicyBuilder
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ImmutablePolicyBuilder()
focal_class.class_method_signature: ImmutablePolicyBuilder.newInstance()
focal_class.full_signature: public static ImmutablePolicyBuilder newInstance()
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder newInstance()
focal_class.class_method_signature: ImmutablePolicyBuilder.of(final PolicyId id)
focal_class.full_signature: public static ImmutablePolicyBuilder of(final PolicyId id)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final PolicyId id)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder of(final PolicyId id)
focal_class.class_method_signature: ImmutablePolicyBuilder.of(final PolicyId id, final Iterable<PolicyEntry> policyEntries)
focal_class.full_signature: public static PolicyBuilder of(final PolicyId id, final Iterable<PolicyEntry> policyEntries)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final PolicyId id, final Iterable<PolicyEntry> policyEntries)
focal_class.return: PolicyBuilder
focal_class.signature: PolicyBuilder of(final PolicyId id, final Iterable<PolicyEntry> policyEntries)
focal_class.class_method_signature: ImmutablePolicyBuilder.of(final Policy existingPolicy)
focal_class.full_signature: public static PolicyBuilder of(final Policy existingPolicy)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final Policy existingPolicy)
focal_class.return: PolicyBuilder
focal_class.signature: PolicyBuilder of(final Policy existingPolicy)
focal_class.class_method_signature: ImmutablePolicyBuilder.forLabel(final Label label)
focal_class.full_signature: @Override public LabelScoped forLabel(final Label label)
focal_class.identifier: forLabel
focal_class.modifiers: @Override public
focal_class.parameters: (final Label label)
focal_class.return: LabelScoped
focal_class.signature: LabelScoped forLabel(final Label label)
focal_class.class_method_signature: ImmutablePolicyBuilder.setId(final CharSequence id)
focal_class.full_signature: @Override @Deprecated public ImmutablePolicyBuilder setId(final CharSequence id)
focal_class.identifier: setId
focal_class.modifiers: @Override @Deprecated public
focal_class.parameters: (final CharSequence id)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setId(final CharSequence id)
focal_class.class_method_signature: ImmutablePolicyBuilder.setId(final PolicyId id)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setId(final PolicyId id)
focal_class.identifier: setId
focal_class.modifiers: @Override public
focal_class.parameters: (final PolicyId id)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setId(final PolicyId id)
focal_class.class_method_signature: ImmutablePolicyBuilder.setLifecycle(@Nullable final PolicyLifecycle lifecycle)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setLifecycle(@Nullable final PolicyLifecycle lifecycle)
focal_class.identifier: setLifecycle
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final PolicyLifecycle lifecycle)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setLifecycle(@Nullable final PolicyLifecycle lifecycle)
focal_class.class_method_signature: ImmutablePolicyBuilder.setRevision(@Nullable final PolicyRevision revision)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setRevision(@Nullable final PolicyRevision revision)
focal_class.identifier: setRevision
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final PolicyRevision revision)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setRevision(@Nullable final PolicyRevision revision)
focal_class.class_method_signature: ImmutablePolicyBuilder.setModified(@Nullable final Instant modified)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setModified(@Nullable final Instant modified)
focal_class.identifier: setModified
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Instant modified)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setModified(@Nullable final Instant modified)
focal_class.class_method_signature: ImmutablePolicyBuilder.setCreated(@Nullable final Instant created)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setCreated(@Nullable final Instant created)
focal_class.identifier: setCreated
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Instant created)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setCreated(@Nullable final Instant created)
focal_class.class_method_signature: ImmutablePolicyBuilder.set(final PolicyEntry entry)
focal_class.full_signature: @Override public ImmutablePolicyBuilder set(final PolicyEntry entry)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (final PolicyEntry entry)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder set(final PolicyEntry entry)
focal_class.class_method_signature: ImmutablePolicyBuilder.setPolicyEntry(final PolicyEntry entry)
focal_class.full_signature: private void setPolicyEntry(final PolicyEntry entry)
focal_class.identifier: setPolicyEntry
focal_class.modifiers: private
focal_class.parameters: (final PolicyEntry entry)
focal_class.return: void
focal_class.signature: void setPolicyEntry(final PolicyEntry entry)
focal_class.class_method_signature: ImmutablePolicyBuilder.putAllSubjects(final PolicyEntry policyEntry)
focal_class.full_signature: private void putAllSubjects(final PolicyEntry policyEntry)
focal_class.identifier: putAllSubjects
focal_class.modifiers: private
focal_class.parameters: (final PolicyEntry policyEntry)
focal_class.return: void
focal_class.signature: void putAllSubjects(final PolicyEntry policyEntry)
focal_class.class_method_signature: ImmutablePolicyBuilder.setAll(final Iterable<PolicyEntry> entries)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setAll(final Iterable<PolicyEntry> entries)
focal_class.identifier: setAll
focal_class.modifiers: @Override public
focal_class.parameters: (final Iterable<PolicyEntry> entries)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setAll(final Iterable<PolicyEntry> entries)
focal_class.class_method_signature: ImmutablePolicyBuilder.remove(final CharSequence label)
focal_class.full_signature: @Override public ImmutablePolicyBuilder remove(final CharSequence label)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder remove(final CharSequence label)
focal_class.class_method_signature: ImmutablePolicyBuilder.removePolicyEntryFor(final Label label)
focal_class.full_signature: private void removePolicyEntryFor(final Label label)
focal_class.identifier: removePolicyEntryFor
focal_class.modifiers: private
focal_class.parameters: (final Label label)
focal_class.return: void
focal_class.signature: void removePolicyEntryFor(final Label label)
focal_class.class_method_signature: ImmutablePolicyBuilder.removeAll(final Iterable<PolicyEntry> entries)
focal_class.full_signature: @Override public ImmutablePolicyBuilder removeAll(final Iterable<PolicyEntry> entries)
focal_class.identifier: removeAll
focal_class.modifiers: @Override public
focal_class.parameters: (final Iterable<PolicyEntry> entries)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder removeAll(final Iterable<PolicyEntry> entries)
focal_class.class_method_signature: ImmutablePolicyBuilder.setSubjectsFor(final CharSequence label, final Subjects subjects)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setSubjectsFor(final CharSequence label, final Subjects subjects)
focal_class.identifier: setSubjectsFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final Subjects subjects)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setSubjectsFor(final CharSequence label, final Subjects subjects)
focal_class.class_method_signature: ImmutablePolicyBuilder.retrieveExistingSubjects(final CharSequence label)
focal_class.full_signature: private Map<SubjectId, Subject> retrieveExistingSubjects(final CharSequence label)
focal_class.identifier: retrieveExistingSubjects
focal_class.modifiers: private
focal_class.parameters: (final CharSequence label)
focal_class.return: Map<SubjectId, Subject>
focal_class.signature: Map<SubjectId, Subject> retrieveExistingSubjects(final CharSequence label)
focal_class.class_method_signature: ImmutablePolicyBuilder.setSubjectFor(final CharSequence label, final Subject subject)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setSubjectFor(final CharSequence label, final Subject subject)
focal_class.identifier: setSubjectFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final Subject subject)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setSubjectFor(final CharSequence label, final Subject subject)
focal_class.class_method_signature: ImmutablePolicyBuilder.removeSubjectFor(final CharSequence label,
              final CharSequence subjectIssuerWithId)
focal_class.full_signature: @Override public ImmutablePolicyBuilder removeSubjectFor(final CharSequence label,
              final CharSequence subjectIssuerWithId)
focal_class.identifier: removeSubjectFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label,
              final CharSequence subjectIssuerWithId)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder removeSubjectFor(final CharSequence label,
              final CharSequence subjectIssuerWithId)
focal_class.class_method_signature: ImmutablePolicyBuilder.removeSubjectFor(final CharSequence label, final Subject subject)
focal_class.full_signature: @Override public ImmutablePolicyBuilder removeSubjectFor(final CharSequence label, final Subject subject)
focal_class.identifier: removeSubjectFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final Subject subject)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder removeSubjectFor(final CharSequence label, final Subject subject)
focal_class.class_method_signature: ImmutablePolicyBuilder.setResourcesFor(final CharSequence label, final Resources resources)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setResourcesFor(final CharSequence label, final Resources resources)
focal_class.identifier: setResourcesFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final Resources resources)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setResourcesFor(final CharSequence label, final Resources resources)
focal_class.class_method_signature: ImmutablePolicyBuilder.retrieveGrantedPermissions(final CharSequence label)
focal_class.full_signature: private Map<ResourceKey, Permissions> retrieveGrantedPermissions(final CharSequence label)
focal_class.identifier: retrieveGrantedPermissions
focal_class.modifiers: private
focal_class.parameters: (final CharSequence label)
focal_class.return: Map<ResourceKey, Permissions>
focal_class.signature: Map<ResourceKey, Permissions> retrieveGrantedPermissions(final CharSequence label)
focal_class.class_method_signature: ImmutablePolicyBuilder.getPermissions(final CharSequence l,
              final Map<Label, Map<ResourceKey, Permissions>> permissionsMap)
focal_class.full_signature: private static Map<ResourceKey, Permissions> getPermissions(final CharSequence l,
              final Map<Label, Map<ResourceKey, Permissions>> permissionsMap)
focal_class.identifier: getPermissions
focal_class.modifiers: private static
focal_class.parameters: (final CharSequence l,
              final Map<Label, Map<ResourceKey, Permissions>> permissionsMap)
focal_class.return: Map<ResourceKey, Permissions>
focal_class.signature: Map<ResourceKey, Permissions> getPermissions(final CharSequence l,
              final Map<Label, Map<ResourceKey, Permissions>> permissionsMap)
focal_class.class_method_signature: ImmutablePolicyBuilder.retrieveRevokedPermissions(final CharSequence label)
focal_class.full_signature: private Map<ResourceKey, Permissions> retrieveRevokedPermissions(final CharSequence label)
focal_class.identifier: retrieveRevokedPermissions
focal_class.modifiers: private
focal_class.parameters: (final CharSequence label)
focal_class.return: Map<ResourceKey, Permissions>
focal_class.signature: Map<ResourceKey, Permissions> retrieveRevokedPermissions(final CharSequence label)
focal_class.class_method_signature: ImmutablePolicyBuilder.setResourceFor(final CharSequence label, final Resource resource)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setResourceFor(final CharSequence label, final Resource resource)
focal_class.identifier: setResourceFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final Resource resource)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setResourceFor(final CharSequence label, final Resource resource)
focal_class.class_method_signature: ImmutablePolicyBuilder.removeResourceFor(final CharSequence label, final ResourceKey resourceKey)
focal_class.full_signature: @Override public ImmutablePolicyBuilder removeResourceFor(final CharSequence label, final ResourceKey resourceKey)
focal_class.identifier: removeResourceFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final ResourceKey resourceKey)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder removeResourceFor(final CharSequence label, final ResourceKey resourceKey)
focal_class.class_method_signature: ImmutablePolicyBuilder.removeResourceFor(final CharSequence label, final Resource resource)
focal_class.full_signature: @Override public ImmutablePolicyBuilder removeResourceFor(final CharSequence label, final Resource resource)
focal_class.identifier: removeResourceFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final Resource resource)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder removeResourceFor(final CharSequence label, final Resource resource)
focal_class.class_method_signature: ImmutablePolicyBuilder.setPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final EffectedPermissions effectedPermissions)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final EffectedPermissions effectedPermissions)
focal_class.identifier: setPermissionsFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final ResourceKey resourceKey,
              final EffectedPermissions effectedPermissions)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final EffectedPermissions effectedPermissions)
focal_class.class_method_signature: ImmutablePolicyBuilder.checkResourceKey(final ResourceKey resourceKey)
focal_class.full_signature: private static void checkResourceKey(final ResourceKey resourceKey)
focal_class.identifier: checkResourceKey
focal_class.modifiers: private static
focal_class.parameters: (final ResourceKey resourceKey)
focal_class.return: void
focal_class.signature: void checkResourceKey(final ResourceKey resourceKey)
focal_class.class_method_signature: ImmutablePolicyBuilder.setGrantedPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final Permissions grantedPermissions)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setGrantedPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final Permissions grantedPermissions)
focal_class.identifier: setGrantedPermissionsFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final ResourceKey resourceKey,
              final Permissions grantedPermissions)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setGrantedPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final Permissions grantedPermissions)
focal_class.class_method_signature: ImmutablePolicyBuilder.setRevokedPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final Permissions revokedPermissions)
focal_class.full_signature: @Override public ImmutablePolicyBuilder setRevokedPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final Permissions revokedPermissions)
focal_class.identifier: setRevokedPermissionsFor
focal_class.modifiers: @Override public
focal_class.parameters: (final CharSequence label, final ResourceKey resourceKey,
              final Permissions revokedPermissions)
focal_class.return: ImmutablePolicyBuilder
focal_class.signature: ImmutablePolicyBuilder setRevokedPermissionsFor(final CharSequence label, final ResourceKey resourceKey,
              final Permissions revokedPermissions)
focal_class.class_method_signature: ImmutablePolicyBuilder.build()
focal_class.full_signature: @Override public Policy build()
focal_class.identifier: build
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Policy
focal_class.signature: Policy build()
focal_class.class_method_signature: ImmutablePolicyBuilder.getAllLabels()
focal_class.full_signature: @Nonnull private Collection<Label> getAllLabels()
focal_class.identifier: getAllLabels
focal_class.modifiers: @Nonnull private
focal_class.parameters: ()
focal_class.return: Collection<Label>
focal_class.signature: Collection<Label> getAllLabels()
focal_class.class_method_signature: ImmutablePolicyBuilder.getFinalSubjects(final CharSequence label)
focal_class.full_signature: @Nonnull private Subjects getFinalSubjects(final CharSequence label)
focal_class.identifier: getFinalSubjects
focal_class.modifiers: @Nonnull private
focal_class.parameters: (final CharSequence label)
focal_class.return: Subjects
focal_class.signature: Subjects getFinalSubjects(final CharSequence label)
focal_class.class_method_signature: ImmutablePolicyBuilder.getFinalResources(final CharSequence label)
focal_class.full_signature: @Nonnull private Resources getFinalResources(final CharSequence label)
focal_class.identifier: getFinalResources
focal_class.modifiers: @Nonnull private
focal_class.parameters: (final CharSequence label)
focal_class.return: Resources
focal_class.signature: Resources getFinalResources(final CharSequence label)
focal_method.body: @Override
      @Deprecated
      public ImmutablePolicyBuilder setId(final CharSequence id) {
          return setId(PolicyId.of(id));
      }
focal_method.class_method_signature: ImmutablePolicyBuilder.setId(final CharSequence id)
focal_method.full_signature: @Override @Deprecated public ImmutablePolicyBuilder setId(final CharSequence id)
focal_method.identifier: setId
focal_method.invocations: setId of
focal_method.modifiers: @Override @Deprecated public
focal_method.parameters: (final CharSequence id)
focal_method.return: ImmutablePolicyBuilder
focal_method.signature: ImmutablePolicyBuilder setId(final CharSequence id)