public class GenericScimResourceConverter<RESOURCE extends com.bettercloud.scim2.common.ScimResource>
extends java.lang.Object
| Constructor and Description |
|---|
GenericScimResourceConverter() |
| Modifier and Type | Method and Description |
|---|---|
com.bettercloud.scim2.common.GenericScimResource |
convert(RESOURCE resource)
Convert a resource to a GenericScimResource.
|
com.bettercloud.scim2.common.GenericScimResource |
convert(RESOURCE resource,
java.util.function.BiConsumer<RESOURCE,java.net.URI> prepareResource)
Convert a resource after preparing it with the supplied BiConsumer.
|
java.util.List<com.bettercloud.scim2.common.GenericScimResource> |
convert(java.lang.String attributes,
java.lang.String excludedAttributes,
java.util.List<RESOURCE> resourceList)
Convert a list of resources and the trim the results based on the attributes string.
|
java.util.List<com.bettercloud.scim2.common.GenericScimResource> |
convert(java.lang.String attributes,
java.lang.String excludedAttributes,
java.util.List<RESOURCE> resourceList,
java.util.function.BiConsumer<RESOURCE,java.net.URI> prepareResource)
Convert a list of resources after preparing them with the supplied BiConsumer and then trim the results based on the attributes string.
|
com.bettercloud.scim2.common.GenericScimResource |
convert(java.lang.String attributes,
java.lang.String excludedAttributes,
RESOURCE resource)
Convert a resource and the trim the results based on the attributes string.
|
com.bettercloud.scim2.common.GenericScimResource |
convert(java.lang.String attributes,
java.lang.String excludedAttributes,
RESOURCE resource,
java.util.function.BiConsumer<RESOURCE,java.net.URI> prepareResource)
Convert a resource after preparing it with the supplied BiConsumer and the trim the results based on the attributes string.
|
public com.bettercloud.scim2.common.GenericScimResource convert(RESOURCE resource) throws com.bettercloud.scim2.common.exceptions.BadRequestException
resource - The resource to be converted.com.bettercloud.scim2.common.exceptions.BadRequestException - This will never be thrown.public com.bettercloud.scim2.common.GenericScimResource convert(RESOURCE resource, java.util.function.BiConsumer<RESOURCE,java.net.URI> prepareResource) throws com.bettercloud.scim2.common.exceptions.BadRequestException
resource - The resource to be converted.prepareResource - A BiConsumer that will do prepare the resource. Usually used to set the references of ComplexRefcom.bettercloud.scim2.common.exceptions.BadRequestException - This will never be thrown.public com.bettercloud.scim2.common.GenericScimResource convert(java.lang.String attributes,
java.lang.String excludedAttributes,
RESOURCE resource)
throws com.bettercloud.scim2.common.exceptions.BadRequestException
attributes - Attributes filter. ex type,schemaBlobexcludedAttributes - Exclude attributes filter. ex type,schemaBlob This is not used if the attributes filter is defined.resource - The resource to be converted.com.bettercloud.scim2.common.exceptions.BadRequestException - This can be thrown if the attributes parameter is invalid.public com.bettercloud.scim2.common.GenericScimResource convert(java.lang.String attributes,
java.lang.String excludedAttributes,
RESOURCE resource,
java.util.function.BiConsumer<RESOURCE,java.net.URI> prepareResource)
throws com.bettercloud.scim2.common.exceptions.BadRequestException
attributes - Attributes filter. ex type,schemaBlobexcludedAttributes - Exclude attributes filter. ex type,schemaBlob This is not used if the attributes filter is defined.resource - The resource to be converted.prepareResource - A BiConsumer that will prepare the resource. Usually used to set the references of ComplexRefcom.bettercloud.scim2.common.exceptions.BadRequestException - This can be thrown if the attributes parameter is invalid.public java.util.List<com.bettercloud.scim2.common.GenericScimResource> convert(java.lang.String attributes,
java.lang.String excludedAttributes,
java.util.List<RESOURCE> resourceList)
throws com.bettercloud.scim2.common.exceptions.BadRequestException
attributes - Attributes filter. ex type,schemaBlobexcludedAttributes - Exclude attributes filter. ex type,schemaBlob This is not used if the attributes filter is defined.resourceList - The resources to be converted.com.bettercloud.scim2.common.exceptions.BadRequestException - This can be thrown if the attributes parameter is invalid.public java.util.List<com.bettercloud.scim2.common.GenericScimResource> convert(java.lang.String attributes,
java.lang.String excludedAttributes,
java.util.List<RESOURCE> resourceList,
java.util.function.BiConsumer<RESOURCE,java.net.URI> prepareResource)
throws com.bettercloud.scim2.common.exceptions.BadRequestException
attributes - Attributes filter. ex type,schemaBlobexcludedAttributes - Excluded attributes filter. ex type,schemaBlobresourceList - The resources to be converted.prepareResource - A BiConsumer that will prepare the resource. Usually used to set the references of ComplexRefcom.bettercloud.scim2.common.exceptions.BadRequestException - This can be thrown if the attributes parameter is invalid.