Class BaseScimResource

java.lang.Object
org.gluu.oxtrust.model.scim2.BaseScimResource
Direct Known Subclasses:
Fido2DeviceResource, FidoDeviceResource, GroupResource, ResourceType, SchemaResource, ServiceProviderConfig, UserResource

public class BaseScimResource extends Object
This class represents the root hierarchy of SCIM resources. All of them: user, group, etc. are subclasses of this class.
  • Constructor Details

    • BaseScimResource

      public BaseScimResource()
      Constructs a basic SCIM resource with all its attributes unassigned
  • Method Details

    • addCustomAttributes

      public void addCustomAttributes(String uri, Map<String,Object> map)
      Replaces the custom attributes belonging to the resource extension identified by the uri passed as parameter with the attribute/value pairs supplied in the Map. Developers are highly encouraged not to use this method but addCustomAttributes(CustomAttributes) instead which adds type-safety.

      Note that this method does not apply any sort of validation. Whether the uri and attributes are recognized or the values are consistent with data types registered in Gluu Server, is something that is performed only when the resource is passed in a service method invocation.

      Parameters:
      uri - A string with URI that identifies an extension
      map - A Map holding attribute names (Strings) and values (Objects).
    • addCustomAttributes

      public void addCustomAttributes(CustomAttributes customAttributes)
      Adds the custom attributes contained in the CustomAttributes instance passed to this method. All previously added attributes are replaced if they are linked to the same uri that customAttributes parameter is associated to.

      Note that this method does not apply any sort of validation. Whether the uri and attributes are recognized or the values are consistent with data types registered in Gluu Server, is something that is performed only when the resource is passed in a service method invocation.

      Parameters:
      customAttributes - An object that comprised of attribute/value pairs
    • getCustomAttributes

      public Map<String,Object> getCustomAttributes()
      Retrieves all custom attributes found in this resource object. The attributes are structured hierarchically in a Map where they can be looked up using the uri to which the attributes belong to.

      Developers are highly encouraged not to use this method but getCustomAttributes(String) instead which adds type-safety.

      Returns:
      A Map with all custom attributes
    • getCustomAttributes

      public CustomAttributes getCustomAttributes(String uri)
      Retrieves the custom attributes found in this resource object associated to the uri supplied.
      Parameters:
      uri - A String value representing a URI
      Returns:
      A CustomAttributes instance that allows developers to inspect attributes and values in a type-safe manner.
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getExternalId

      public String getExternalId()
    • setExternalId

      public void setExternalId(String externalId)
    • getMeta

      public Meta getMeta()
    • setMeta

      public void setMeta(Meta meta)
    • getSchemas

      public Set<String> getSchemas()
    • setSchemas

      public void setSchemas(Set<String> schemas)