Class CouchBaseStorage
- java.lang.Object
-
- be.personify.iam.scim.storage.impl.CouchBaseStorage
-
-
Constructor Summary
Constructors Constructor Description CouchBaseStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount(be.personify.util.SearchCriteria searchCriteria)Counts the results giving a searchcrtieriavoidcreate(String id, Map<String,Object> object)Creates the entrybooleandelete(String id)Delete the entry by idbooleandeleteAll()Deletes all entitiesvoidflush()Optional to implement : persistMap<String,Object>get(String id)Gets the entry by idMap<String,Object>get(String id, String version)Gets a antity by id and versionList<String>getVersions(String id)Gets the version of a specific entityvoidinitialize(String type)Initializes the thingList<Map>search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder)List<Map>search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder, List<String> includeAttributes)Searches entitiesvoidupdate(String id, Map<String,Object> object)Updates the thing
-
-
-
Method Detail
-
create
public void create(String id, Map<String,Object> object) throws ConstraintViolationException
Creates the entry- Specified by:
createin interfaceStorage- Parameters:
id- the id of the entityobject- the entity itself- Throws:
ConstraintViolationException- indicating if constraints are violated
-
delete
public boolean delete(String id)
Delete the entry by id
-
search
public List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder)
-
search
public List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrder, List<String> includeAttributes)
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
public long count(be.personify.util.SearchCriteria searchCriteria)
Description copied from interface:StorageCounts the results giving a searchcrtieria
-
flush
public void flush()
Description copied from interface:StorageOptional to implement : persist
-
initialize
public void initialize(String type)
Initializes the thing- Specified by:
initializein interfaceStorage- Parameters:
type- the type
-
get
public Map<String,Object> get(String id, String version)
Description copied from interface:StorageGets a antity by id and version
-
getVersions
public List<String> getVersions(String id)
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
-
-