public class AbstractSCIMObject extends ScimAttributeAware implements SCIMObject
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Attribute> |
attributeList
Collection of attributes which constitute this resource.
|
protected List<String> |
schemaList
List of schemas where the attributes of this resource, are defined.
|
| Constructor and Description |
|---|
AbstractSCIMObject() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createMetaAttribute()
crete the meta attribute of the scim object
|
void |
deleteAttribute(String id)
Deleting an attribute is the responsibility of an attribute holder.
|
void |
deleteSubAttribute(String parentAttribute,
String childAttribute)
Deleting a sub attribute of complex attribute is the responsibility of an attribute holder.
|
void |
deleteSubSubAttribute(String childAttribute,
String parentAttribute,
String grandParentAttribute)
This deletion method is only applicable for extension schema
Deleting a sub attribute of complex attribute is the responsibility of an attribute holder.
|
void |
deleteSubValuesSubAttribute(String grandParentAttribute,
String parentAttribute,
String subValue,
String childAttribute) |
void |
deleteValuesSubAttribute(String attribute,
String subAttribute,
String subSimpleAttribute)
Deleting a sub value's sub attribute of multivalued attribute is the responsibility of an attribute holder.
|
Attribute |
getAttribute(String attributeName) |
Map<String,Attribute> |
getAttributeList() |
Date |
getCreatedDate()
Deprecated.
|
Date |
getLastModified()
Deprecated.
|
protected ComplexAttribute |
getMetaAttribute()
Return the meta attribute
|
AbstractSCIMObject |
getResource() |
List<String> |
getSchemaList() |
boolean |
isAttributeExist(String attributeName) |
protected boolean |
isMetaAttributeExist() |
protected boolean |
isSchemaExists(String schemaName) |
void |
setAttribute(Attribute newAttribute)
Set the attributes in the SCIM Object.
|
void |
setAttribute(Attribute newAttribute,
ResourceTypeSchema resourceSchema)
Set the attributes and corresponding schema in the SCIM Object.
|
void |
setCreatedDate(Date createdDate)
Deprecated.
|
void |
setCreatedInstant(Instant created) |
void |
setExternalId(String externalId)
Set a String that is an identifier for the resource as defined by the
provisioning client.
|
void |
setId(String id)
Set a value for the id attribute.
|
void |
setLastModified(Date lastModifiedDate)
Deprecated.
|
void |
setLastModifiedInstant(Instant lastModified) |
void |
setLocation(String location)
set the location of the meta attribute
|
void |
setResourceType(String resourceType)
set the resourceType of the meta attribute
|
void |
setSchema(String schema) |
String |
toString() |
addMultivaluedComplexAtribute, attributeMetaEquals, attributesEquals, complexAttributeEquals, equals, getComplexAttribute, getCreatedDateTime, getCreatedInstant, getCreatedLong, getExternalId, getId, getLastModifiedDateTime, getLastModifiedInstant, getLastModifiedLong, getLocation, getMultiValuedAttribute, getMultivaluedComplexType, getOrCrateComplexAttribute, getResourceType, getSetSubAttributeConsumer, getSimpleAttribute, getSimpleAttribute, getSimpleAttributeValue, hashCode, isBlank, isNotBlank, multiValuedAttributeEquals, replaceCreated, replaceCreated, replaceCreated, replaceExternalId, replaceId, replaceLastModified, replaceLastModified, replaceLastModified, replaceLocation, replaceResourceType, replaceSimpleAttribute, simpleAttributeEquals, stripToNullprotected Map<String,Attribute> attributeList
public void setAttribute(Attribute newAttribute, ResourceTypeSchema resourceSchema)
newAttribute - resourceSchema - public void setAttribute(Attribute newAttribute)
newAttribute - protected boolean isSchemaExists(String schemaName)
public boolean isAttributeExist(String attributeName)
public Map<String,Attribute> getAttributeList()
getAttributeList in interface SCIMObjectpublic void setSchema(String schema)
public List<String> getSchemaList()
getSchemaList in interface SCIMObjectpublic Attribute getAttribute(String attributeName)
getAttribute in interface SCIMObjectpublic void deleteAttribute(String id)
deleteAttribute in interface SCIMObjectid - - name of the attributepublic void deleteSubAttribute(String parentAttribute, String childAttribute)
parentAttribute - - name of the parent attributechildAttribute - - name of the sub attributepublic void deleteSubSubAttribute(String childAttribute, String parentAttribute, String grandParentAttribute) throws CharonException
grandParentAttribute - parentAttribute - childAttribute - CharonExceptionpublic void deleteValuesSubAttribute(String attribute, String subAttribute, String subSimpleAttribute)
public void deleteSubValuesSubAttribute(String grandParentAttribute, String parentAttribute, String subValue, String childAttribute)
protected boolean isMetaAttributeExist()
public void setId(String id) throws CharonException, BadRequestException
id - Unique identifier for the SCIM Resource as defined by the Service Provider.CharonExceptionBadRequestExceptionpublic void setExternalId(String externalId) throws CharonException, BadRequestException
externalId - identifier for the SCIM Resource as defined by the provisioning client.BadRequestExceptionCharonException@Deprecated public void setCreatedDate(Date createdDate) throws CharonException, BadRequestException
createdDate - CharonExceptionBadRequestExceptionpublic void setCreatedInstant(Instant created) throws CharonException, BadRequestException
CharonExceptionBadRequestException@Deprecated public void setLastModified(Date lastModifiedDate) throws CharonException, BadRequestException
lastModifiedDate - CharonExceptionBadRequestExceptionpublic void setLastModifiedInstant(Instant lastModified) throws CharonException, BadRequestException
CharonExceptionBadRequestExceptionprotected void createMetaAttribute()
throws CharonException,
BadRequestException
CharonExceptionBadRequestExceptionprotected ComplexAttribute getMetaAttribute()
public void setLocation(String location) throws CharonException, BadRequestException
location - CharonExceptionBadRequestExceptionpublic void setResourceType(String resourceType) throws BadRequestException, CharonException
resourceType - BadRequestExceptionCharonException@Deprecated public Date getCreatedDate() throws CharonException
CharonException@Deprecated public Date getLastModified() throws CharonException
CharonExceptionpublic AbstractSCIMObject getResource()
getResource in class ScimAttributeAwareCopyright © 2019 WSO2. All rights reserved.