Class ScimResourceTrimmer

    • 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 or null for other requests.
        queryAttributes - The attributes from the 'attributes' or 'excludedAttributes' query parameter.
        excluded - true if 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:
        shouldReturn in class ResourceTrimmer
        Parameters:
        path - The path for the attribute.
        Returns:
        true to return the attribute or false to remove the attribute from the returned resource.