Package be.personify.iam.scim.storage
Interface Storage
- All Known Implementing Classes:
ConnectorStorage,CouchBaseStorage,LDAPConnectorStorage,MemoryStorage,MongoStorage,OrientDBStorage,PersonifyConnectorStorage
public interface Storage
-
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 sortOrder, Consumer consumer) search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder, List<String> includeAttributes, Consumer consumer) Searches entitiesbooleanvoidUpdates a entity
-
Method Details
-
initialize
Bootstrap your storage here- Parameters:
type- the type
-
get
Gets a entity by id- Parameters:
id- the id of the entity- Returns:
- the entity
-
get
Gets a antity by id and version- Parameters:
id- the id of the entityversion- the version of the entity- Returns:
- the entity
-
getVersions
Gets the version of a specific entity- Parameters:
id- the id of the entity- Returns:
- a list containing the versions
-
delete
Deletes a entity by id- Parameters:
id- the id of the entity- Returns:
- boolean indicating success
-
deleteAll
Deletes all entities- Returns:
- boolean indicating success
-
create
void create(String id, Map<String, Object> object, Consumer consumer) throws ConstraintViolationExceptionCreates a entity- Parameters:
id- the id of the entityobject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violated
-
update
void update(String id, Map<String, Object> object, Consumer consumer) throws ConstraintViolationExceptionUpdates a entity- Parameters:
id- the id of the entityobject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violated
-
search
List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder, List<String> includeAttributes, Consumer consumer) Searches entities- Parameters:
searchCriteria- the searchcriteriastart- the start positioncount- the number of results to returmsortBy- the sortby attributes separated by a commasortOrder- the sortorder ( ascending or descending )- Returns:
- a list containing the entities
-
search
-
count
Counts the results giving a searchcrtieria- Parameters:
searchCriteria- the searchcriteria- Returns:
- a long indicating the number of results
-
flush
void flush()Optional to implement : persist -
tenantCompatible
boolean tenantCompatible()
-