Class RdfConsumerStore
java.lang.Object
org.eclipse.lyo.server.oauth.core.consumer.AbstractConsumerStore
org.eclipse.lyo.server.oauth.consumerstore.RdfConsumerStore
- All Implemented Interfaces:
ConsumerStore
A simple RDF consumer store backed by a Jena TDB native datastore
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddConsumer
(LyoOAuthConsumer consumer) Adds a new consumer.void
Closes the consumer store.protected void
protected void
createModel
(Dataset dataset) protected LyoOAuthConsumer
fromResource
(Resource resource) protected void
removeConsumer
(String consumerKey) Removes a consumer.protected void
removeProperties
(String consumerKey) Removes any properties previously associated with the consumer.protected void
removeProperties
(LyoOAuthConsumer consumer) Removes any properties previously associated with the consumer.protected Resource
toResource
(LyoOAuthConsumer consumer) updateConsumer
(LyoOAuthConsumer consumer) Updates a consumer.Methods inherited from class org.eclipse.lyo.server.oauth.core.consumer.AbstractConsumerStore
add, addAll, getAllConsumers, getConsumer, getConsumer, remove
-
Field Details
-
LYO_OAUTH_NAMESPACE
- See Also:
-
CONSUMER_RESOURCE
- See Also:
-
CALLBACK_URL
- See Also:
-
CONSUMER_NAME
- See Also:
-
CONSUMER_KEY
- See Also:
-
CONSUMER_SECRET
- See Also:
-
PROVISIONAL
- See Also:
-
TRUSTED
- See Also:
-
DB
- See Also:
-
-
Constructor Details
-
RdfConsumerStore
-
RdfConsumerStore
- Throws:
ConsumerStoreException
-
RdfConsumerStore
- Throws:
ConsumerStoreException
-
-
Method Details
-
createDataset
protected void createDataset() -
createModel
-
loadConsumers
- Throws:
ConsumerStoreException
-
addConsumer
Description copied from interface:ConsumerStore
Adds a new consumer.- Parameters:
consumer
- the consumer- Returns:
- the previous consumer associated with this key or null if there wasn't one
- Throws:
ConsumerStoreException
-
removeConsumer
Description copied from interface:ConsumerStore
Removes a consumer.- Returns:
- the removed consumer or null if it wasn't previously in the store
- Throws:
ConsumerStoreException
- on errors
-
updateConsumer
Description copied from interface:ConsumerStore
Updates a consumer.- Parameters:
consumer
- the consumer- Returns:
- the same consumer or null if it wasn't previously in the store
- Throws:
ConsumerStoreException
- on errors
-
closeConsumerStore
public void closeConsumerStore()Description copied from interface:ConsumerStore
Closes the consumer store. It is unavailable for further use.- Specified by:
closeConsumerStore
in interfaceConsumerStore
- Specified by:
closeConsumerStore
in classAbstractConsumerStore
-
removeProperties
Removes any properties previously associated with the consumer.- Parameters:
consumerKey
- the consumer key
-
removeProperties
Removes any properties previously associated with the consumer.- Parameters:
consumer
- the consumer
-
toResource
-
fromResource
-