public class RdfConsumerStore extends AbstractConsumerStore
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CALLBACK_URL |
protected static String |
CONSUMER_KEY |
protected static String |
CONSUMER_NAME |
protected static String |
CONSUMER_RESOURCE |
protected static String |
CONSUMER_SECRET |
protected static String |
DB |
protected static String |
LYO_OAUTH_NAMESPACE |
protected static String |
PROVISIONAL |
protected static String |
TRUSTED |
| Constructor and Description |
|---|
RdfConsumerStore() |
RdfConsumerStore(org.apache.jena.query.Dataset dataset) |
RdfConsumerStore(org.apache.jena.rdf.model.Model model) |
| Modifier and Type | Method and Description |
|---|---|
LyoOAuthConsumer |
addConsumer(LyoOAuthConsumer consumer)
Adds a new consumer.
|
void |
closeConsumerStore()
Closes the consumer store.
|
protected void |
createDataset() |
protected void |
createModel(org.apache.jena.query.Dataset dataset) |
protected LyoOAuthConsumer |
fromResource(org.apache.jena.rdf.model.Resource resource) |
protected void |
loadConsumers() |
LyoOAuthConsumer |
removeConsumer(String consumerKey)
Removes a consumer.
|
protected void |
removeProperties(LyoOAuthConsumer consumer)
Removes any properties previously associated with the consumer.
|
protected void |
removeProperties(String consumerKey)
Removes any properties previously associated with the consumer.
|
protected org.apache.jena.rdf.model.Resource |
toResource(LyoOAuthConsumer consumer) |
LyoOAuthConsumer |
updateConsumer(LyoOAuthConsumer consumer)
Updates a consumer.
|
add, addAll, getAllConsumers, getConsumer, getConsumer, removeprotected static final String LYO_OAUTH_NAMESPACE
protected static final String CONSUMER_RESOURCE
protected static final String CALLBACK_URL
protected static final String CONSUMER_NAME
protected static final String CONSUMER_KEY
protected static final String CONSUMER_SECRET
protected static final String PROVISIONAL
protected static final String TRUSTED
protected static final String DB
public RdfConsumerStore()
throws ConsumerStoreException,
ClassNotFoundException
public RdfConsumerStore(org.apache.jena.query.Dataset dataset)
throws ConsumerStoreException
ConsumerStoreExceptionpublic RdfConsumerStore(org.apache.jena.rdf.model.Model model)
throws ConsumerStoreException
ConsumerStoreExceptionprotected void createDataset()
protected void createModel(org.apache.jena.query.Dataset dataset)
protected void loadConsumers()
throws ConsumerStoreException
ConsumerStoreExceptionpublic LyoOAuthConsumer addConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
ConsumerStoreconsumer - the consumerConsumerStoreExceptionpublic LyoOAuthConsumer removeConsumer(String consumerKey) throws ConsumerStoreException
ConsumerStoreConsumerStoreException - on errorspublic LyoOAuthConsumer updateConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
ConsumerStoreconsumer - the consumerConsumerStoreException - on errorspublic void closeConsumerStore()
ConsumerStorecloseConsumerStore in interface ConsumerStorecloseConsumerStore in class AbstractConsumerStoreprotected void removeProperties(String consumerKey)
consumerKey - the consumer keyprotected void removeProperties(LyoOAuthConsumer consumer)
consumer - the consumerprotected org.apache.jena.rdf.model.Resource toResource(LyoOAuthConsumer consumer)
protected LyoOAuthConsumer fromResource(org.apache.jena.rdf.model.Resource resource)
Copyright © 2020. All rights reserved.