Class OrientDBStorage
java.lang.Object
be.personify.iam.scim.storage.impl.OrientDBStorage
- All Implemented Interfaces:
Storage,org.springframework.beans.factory.DisposableBean
public class OrientDBStorage
extends Object
implements Storage, org.springframework.beans.factory.DisposableBean
- Author:
- wouter vdb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCounts the results giving a searchcrtieriavoidCreates a entitybooleanDeletes a entity by idbooleanDeletes all entitiesvoiddestroy()voidflush()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
-
Constructor Details
-
OrientDBStorage
public OrientDBStorage()
-
-
Method Details
-
get
Description copied from interface:StorageGets a entity by id -
delete
Description copied from interface:StorageDeletes a entity by id -
deleteAll
Description copied from interface:StorageDeletes all entities -
create
public void create(String id, Map<String, Object> object, Consumer consumer) throws ConstraintViolationExceptionDescription copied from interface:StorageCreates a entity- Specified by:
createin interfaceStorage- Parameters:
id- the id of the entityobject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violated
-
update
Description copied from interface:StorageUpdates a entity -
search
-
search
public List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder, List<String> includeAttributes, Consumer consumer) Description copied from interface:StorageSearches entities- Specified by:
searchin interfaceStorage- 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
-
count
Description copied from interface:StorageCounts the results giving a searchcrtieria -
flush
public void flush()Description copied from interface:StorageOptional to implement : persist -
initialize
Description copied from interface:StorageBootstrap your storage here- Specified by:
initializein interfaceStorage- Parameters:
type- the type
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
get
Description copied from interface:StorageGets a antity by id and version -
getVersions
Description copied from interface:StorageGets the version of a specific entity- Specified by:
getVersionsin interfaceStorage- Parameters:
id- the id of the entity- Returns:
- a list containing the versions
-
tenantCompatible
public boolean tenantCompatible()- Specified by:
tenantCompatiblein interfaceStorage
-