Class CouchBaseStorage
java.lang.Object
be.personify.iam.scim.storage.impl.CouchBaseStorage
- All Implemented Interfaces:
Storage
- Author:
- wouter vdb Couchbase storage implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCounts the results giving a searchcrtieriavoidCreates the entrybooleanDelete the entry by idbooleanDeletes all entitiesvoidflush()Optional to implement : persistGets the entry by idGets a antity by id and versiongetVersions(String id, Consumer consumer) Gets the version of a specific entityvoidinitialize(String type) Initializes the thingsearch(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 the thing
-
Constructor Details
-
CouchBaseStorage
public CouchBaseStorage()
-
-
Method Details
-
create
public void create(String id, Map<String, Object> object, Consumer consumer) throws ConstraintViolationExceptionCreates the entry- Specified by:
createin interfaceStorage- Parameters:
id- the id of the entityobject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violated
-
get
Gets the entry by id -
delete
Delete the entry by id -
update
Updates the thing -
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
Initializes the thing- Specified by:
initializein interfaceStorage- Parameters:
type- the type
-
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
-
deleteAll
Description copied from interface:StorageDeletes all entities -
tenantCompatible
public boolean tenantCompatible()- Specified by:
tenantCompatiblein interfaceStorage
-