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, remove
protected 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
ConsumerStoreException
public RdfConsumerStore(org.apache.jena.rdf.model.Model model) throws ConsumerStoreException
ConsumerStoreException
protected void createDataset()
protected void createModel(org.apache.jena.query.Dataset dataset)
protected void loadConsumers() throws ConsumerStoreException
ConsumerStoreException
public LyoOAuthConsumer addConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
ConsumerStore
consumer
- the consumerConsumerStoreException
public LyoOAuthConsumer removeConsumer(String consumerKey) throws ConsumerStoreException
ConsumerStore
ConsumerStoreException
- on errorspublic LyoOAuthConsumer updateConsumer(LyoOAuthConsumer consumer) throws ConsumerStoreException
ConsumerStore
consumer
- the consumerConsumerStoreException
- on errorspublic void closeConsumerStore()
ConsumerStore
closeConsumerStore
in interface ConsumerStore
closeConsumerStore
in class AbstractConsumerStore
protected 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 © 2018. All Rights Reserved.