Package com.unboundid.scim2.server.utils
Class ScimResourceTrimmer
- java.lang.Object
-
- com.unboundid.scim2.server.utils.ResourceTrimmer
-
- com.unboundid.scim2.server.utils.ScimResourceTrimmer
-
public class ScimResourceTrimmer extends ResourceTrimmer
A resource trimmer implementing the SCIM standard for returning attributes.
-
-
Constructor Summary
Constructors Constructor Description ScimResourceTrimmer(ResourceTypeDefinition resourceType, Set<Path> requestAttributes, Set<Path> queryAttributes, boolean excluded)Create a new SCIMResourceTrimmer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldReturn(Path path)Determine if the attribute specified by the path should be returned.-
Methods inherited from class com.unboundid.scim2.server.utils.ResourceTrimmer
trimArrayNode, trimObjectNode
-
-
-
-
Constructor Detail
-
ScimResourceTrimmer
public ScimResourceTrimmer(@NotNull ResourceTypeDefinition resourceType, @NotNull Set<Path> requestAttributes, @NotNull Set<Path> queryAttributes, boolean excluded)
Create a new SCIMResourceTrimmer.- Parameters:
resourceType- The resource type definition for resources to trim.requestAttributes- The attributes in the request object ornullfor other requests.queryAttributes- The attributes from the 'attributes' or 'excludedAttributes' query parameter.excluded-trueif the queryAttributes came from the excludedAttributes query parameter.
-
-
Method Detail
-
shouldReturn
public boolean shouldReturn(@NotNull Path path)
Determine if the attribute specified by the path should be returned.- Specified by:
shouldReturnin classResourceTrimmer- Parameters:
path- The path for the attribute.- Returns:
trueto return the attribute orfalseto remove the attribute from the returned resource.
-
-