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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConsumer(LyoOAuthConsumer consumer) Adds a new consumer.voidCloses the consumer store.protected voidprotected voidcreateModel(Dataset dataset) protected LyoOAuthConsumerfromResource(Resource resource) protected voidremoveConsumer(String consumerKey) Removes a consumer.protected voidremoveProperties(String consumerKey) Removes any properties previously associated with the consumer.protected voidremoveProperties(LyoOAuthConsumer consumer) Removes any properties previously associated with the consumer.protected ResourcetoResource(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:ConsumerStoreAdds 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:ConsumerStoreRemoves 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:ConsumerStoreUpdates 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:ConsumerStoreCloses the consumer store. It is unavailable for further use.- Specified by:
closeConsumerStorein interfaceConsumerStore- Specified by:
closeConsumerStorein 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
-