Package io.jans.scim.service.scim2
Class ExtensionService
java.lang.Object
io.jans.scim.service.scim2.ExtensionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertValues(ExtensionField field, String[] strValues) Builds a list of objects based on the supplied String values passed and the extension field passed.extensionOfAttribute(Class<? extends BaseScimResource> cls, String attribute) getAttributeValue(ExtensionField field, Object val, boolean ldapBackend) Transforms the value passed in case it is of type DATE.getAttributeValues(ExtensionField field, Collection valuesHolder, boolean ldapBackend) getFieldOfExtendedAttribute(Class<? extends BaseScimResource> cls, String attribute) getResourceExtensions(Class<? extends BaseScimResource> cls) getUrnsOfExtensions(Class<? extends BaseScimResource> cls) void
-
Constructor Details
-
ExtensionService
public ExtensionService()
-
-
Method Details
-
getResourceExtensions
-
getUrnsOfExtensions
-
getAttributeValue
Transforms the value passed in case it is of type DATE. Depending on the paramldapBackend, the value will be a generalized time string, otherwise an ISO-like date with no offset or time zone- Parameters:
field- The extension field associated to the value passedval- The value of the fieldldapBackend- Whether the backend DB is LDAP or not- Returns:
- Value transformed (kept as is if unrelated to DATEs)
-
getAttributeValues
public List<Object> getAttributeValues(ExtensionField field, Collection valuesHolder, boolean ldapBackend) -
convertValues
Builds a list of objects based on the supplied String values passed and the extension field passed. The strings are converted according to the type asociated to the field: for STRING the value is left as is; for DATE the value is converted to a String following the ISO date format; for NUMERIC an Integer/Double is created from the value supplied.- Parameters:
ldapBackend- Whether the underlying database is an ldap directoryfield- An ExtensionFieldstrValues- A non-empty String array with the values associated to the field passed. These values are coming from LDAP- Returns:
- List of opaque values
-
extensionOfAttribute
-
getFieldOfExtendedAttribute
public ExtensionField getFieldOfExtendedAttribute(Class<? extends BaseScimResource> cls, String attribute) -
updateMarkedAttributes
-