@Test public void testBaseResource() throws Exception { ScimUser resource = getScimUser(); debugJson(resource); resource = attributeUtil.setAttributesForDisplay(resource); debugJson(resource); Assertions.assertThat(resource.getId()).isNotNull(); Assertions.assertThat(resource.getPassword()).isNull(); EnterpriseExtension extension = resource.getExtension(EnterpriseExtension.class); Assertions.assertThat(extension.getCostCenter()).isNotNull(); ExampleObjectExtension exampleObjectExtension = resource.getExtension(ExampleObjectExtension.class); Assertions.assertThat(exampleObjectExtension.getValueAlways()).isNotNull(); Assertions.assertThat(exampleObjectExtension.getValueDefault()).isNotNull(); Assertions.assertThat(exampleObjectExtension.getValueRequest()).isNull(); Assertions.assertThat(exampleObjectExtension.getValueNever()).isNull(); }
public <T extends ScimResource> T setAttributesForDisplay(T resource) throws IllegalArgumentException, IllegalAccessException, AttributeDoesNotExistException, IOException { return setAttributesForDisplayInternal(resource, Returned.REQUEST, Returned.NEVER); }
AttributeUtil { public <T extends ScimResource> T setAttributesForDisplay(T resource) throws IllegalArgumentException, IllegalAccessException, AttributeDoesNotExistException, IOException { return setAttributesForDisplayInternal(resource, Returned.REQUEST, Returned.NEVER); } }
AttributeUtil { public <T extends ScimResource> T setAttributesForDisplay(T resource) throws IllegalArgumentException, IllegalAccessException, AttributeDoesNotExistException, IOException { return setAttributesForDisplayInternal(resource, Returned.REQUEST, Returned.NEVER); }  }
AttributeUtil { public <T extends ScimResource> T setAttributesForDisplay(T resource) throws IllegalArgumentException, IllegalAccessException, AttributeDoesNotExistException, IOException { return setAttributesForDisplayInternal(resource, Returned.REQUEST, Returned.NEVER); }  @PostConstruct void init(); T keepAlwaysAttributesForDisplay(T resource); T setAttributesForDisplay(T resource); T setAttributesForDisplay(T resource, Set<AttributeReference> attributes); T setExcludedAttributesForDisplay(T resource, Set<AttributeReference> excludedAttributes); Set<AttributeReference> getAttributeReferences(String s); }
AttributeUtil { public <T extends ScimResource> T setAttributesForDisplay(T resource) throws IllegalArgumentException, IllegalAccessException, AttributeDoesNotExistException, IOException { return setAttributesForDisplayInternal(resource, Returned.REQUEST, Returned.NEVER); }  @PostConstruct void init(); T keepAlwaysAttributesForDisplay(T resource); T setAttributesForDisplay(T resource); T setAttributesForDisplay(T resource, Set<AttributeReference> attributes); T setExcludedAttributesForDisplay(T resource, Set<AttributeReference> excludedAttributes); Set<AttributeReference> getAttributeReferences(String s);  }