Class PersonifyConnectorStorage
java.lang.Object
be.personify.iam.scim.storage.impl.ConnectorStorage
be.personify.iam.scim.storage.impl.PersonifyConnectorStorage
- All Implemented Interfaces:
Storage
Storage implementation that stores data into a database using the personify
connector framework
- Author:
- vanderw
-
Field Summary
Fields inherited from class be.personify.iam.scim.storage.impl.ConnectorStorage
ESCAPED_DOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCounts the results giving a searchcrtieriavoidCreates a entitybooleanDeletes a entity by idbooleanDeletes all entitiesvoidflush()Optional to implement : persistGets a entity by idGets a antity by id and versiongetVersions(String id, Consumer consumer) Gets the version of a specific entityvoidinitialize(String type) Bootstrap your storage heresearch(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrderString, Consumer consumer) search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrderString, List<String> includeAttributes, Consumer consumer) Searches entitiesbooleanvoidUpdates a entityMethods inherited from class be.personify.iam.scim.storage.impl.ConnectorStorage
convertNativeMap, createDepthMapping, getConfigMap, invertMap, processMapping, testConnection
-
Constructor Details
-
PersonifyConnectorStorage
public PersonifyConnectorStorage()
-
-
Method Details
-
create
public void create(String id, Map<String, Object> scimObject, Consumer consumer) throws ConstraintViolationException, DataExceptionDescription copied from interface:StorageCreates a entity- Parameters:
id- the id of the entityscimObject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violatedDataException
-
get
Description copied from interface:StorageGets a entity by id- Parameters:
id- the id of the entity- Returns:
- the entity
-
update
public void update(String id, Map<String, Object> scimObject, Consumer consumer) throws ConstraintViolationExceptionDescription copied from interface:StorageUpdates a entity- Parameters:
id- the id of the entityscimObject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violated
-
delete
Description copied from interface:StorageDeletes a entity by id- Parameters:
id- the id of the entity- Returns:
- boolean indicating success
-
search
-
search
public List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrderString, List<String> includeAttributes, Consumer consumer) Description copied from interface:StorageSearches entities- Parameters:
searchCriteria- the searchcriteriastart- the start positioncount- the number of results to returmsortBy- the sortby attributes separated by a commasortOrderString- the sortorder ( ascending or descending )- Returns:
- a list containing the entities
-
count
Description copied from interface:StorageCounts the results giving a searchcrtieria- Parameters:
searchCriteria- the searchcriteria- Returns:
- a long indicating the number of results
-
initialize
Description copied from interface:StorageBootstrap your storage here- Parameters:
type- the type
-
flush
public void flush()Description copied from interface:StorageOptional to implement : persist -
deleteAll
Description copied from interface:StorageDeletes all entities- Returns:
- boolean indicating success
-
get
Description copied from interface:StorageGets a antity by id and version- Parameters:
id- the id of the entityversion- the version of the entity- Returns:
- the entity
-
getVersions
Description copied from interface:StorageGets the version of a specific entity- Parameters:
id- the id of the entity- Returns:
- a list containing the versions
-
tenantCompatible
public boolean tenantCompatible()
-