Package com.sodius.oslc.server.core
Class PersonStore
java.lang.Object
com.sodius.oslc.server.core.PersonStore
Manages persistence of Person.
- Since:
- 3.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PersonStoreReturns the current store instance.Returns existing Person for the given identifier.abstract Collection<Person>getPersons(String filter, int limit) Gets OSLC persons applying a filter.static voidsetInstance(PersonStore store) Replaces the current store instance with the given one.
-
Constructor Details
-
PersonStore
public PersonStore()
-
-
Method Details
-
getInstance
Returns the current store instance.- Returns:
- the current instance.
- See Also:
-
setInstance
Replaces the current store instance with the given one.- Parameters:
store- the new store.
-
getPerson
Returns existing Person for the given identifier.- Parameters:
identifier- the person identifier- Returns:
- the stored person
- Throws:
PersonStoreException- if an error occurs while querying the store
-
getPersons
Gets OSLC persons applying a filter.- Parameters:
filter- the filter to apply on OSLC persons.limit- maximum number of OSLC persons retrieved.- Returns:
- all filtered persons.
- Throws:
PersonStoreException- if an error occurs while querying the store
-