public class DefaultAttributeFactory extends Object
| Constructor and Description |
|---|
DefaultAttributeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Attribute |
createAttribute(AttributeSchema attributeSchema,
AbstractAttribute attribute) |
protected static SimpleAttribute |
createSimpleAttribute(AttributeSchema attributeSchema,
SimpleAttribute simpleAttribute)
Once identified that constructing attribute is a simple attribute & related attribute schema is a
SCIMAttributeSchema, perform attribute construction operations specific to Simple Attribute.
|
protected static boolean |
isAttributeDataTypeValid(Object attributeValue,
SCIMDefinitions.DataType attributeDataType)
When an attribute is created with value and data type provided,
we need to validate whether they are matching.
|
public static Attribute createAttribute(AttributeSchema attributeSchema, AbstractAttribute attribute) throws CharonException, BadRequestException
CharonExceptionBadRequestExceptionprotected static SimpleAttribute createSimpleAttribute(AttributeSchema attributeSchema, SimpleAttribute simpleAttribute) throws CharonException, BadRequestException
attributeSchema - simpleAttribute - CharonExceptionBadRequestExceptionprotected static boolean isAttributeDataTypeValid(Object attributeValue, SCIMDefinitions.DataType attributeDataType) throws BadRequestException
attributeValue - attributeDataType - BadRequestExceptionCopyright © 2021 WSO2. All rights reserved.