org.openanzo.atom
Class AtomModel
java.lang.Object
org.openanzo.atom.AtomModel
- All Implemented Interfaces:
- AtomConstants
public class AtomModel
- extends java.lang.Object
- implements AtomConstants
- Author:
- Ben Szekely (bhszekel@us.ibm.com)
| Fields inherited from interface org.openanzo.atom.AtomConstants |
ANCHOR, ATOM_SERVER_NAME, ATOM_SERVER_VERSION, BINARY_CONTENT_SRC, BINARY_CONTENT_TYPE, BINARY_CONTENT_VERSION, CLIENT_DOJO, COLLECTION_PAGE_SIZE, CONTENT_ATOM_XML, CONTENT_ATOM_XML_UTF8, CONTENT_ATOMSERV_XML, CONTENT_ATOMSERV_XML_UTF8, CONTENT_HTML, CONTENT_JSON, CONTENT_MULTIPART_FORM_DATA, CONTENT_RDF_XML, CONTENT_TEXT, CONTENT_XHTML, CONTENT_XHTML_SHORT, CONTENT_XML, DELIM, EDIT, ENTRY, HEADER_ACCEPT, HEADER_ALLOW, HEADER_CONTENT_LOCATION, HEADER_CONTENT_TYPE, HEADER_ETAG, HEADER_LOCATION, HEADER_TITLE, HISTORY, HTTP_BAD_REQUEST, HTTP_CONFLICT, HTTP_CREATED, HTTP_FORBIDDEN, HTTP_GONE, HTTP_INTERNAL_SERVER_ERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOT_AUTHORIZED, HTTP_NOT_FOUND, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_UNSUPPORTED_MEDIA, INVALID_ATOM_ENTRY, INVALID_COLLECTION_URI, LINK_REL_ALTERNATE, LINK_REL_ANCHOR, LINK_REL_COLLECTION, LINK_REL_CONTENT_GRAPH, LINK_REL_EDIT, LINK_REL_EDIT_MEDIA, LINK_REL_FIRST, LINK_REL_HISTORY, LINK_REL_INTROSPECTION, LINK_REL_LAST, LINK_REL_NEXT, LINK_REL_PREVIOUS, LINK_REL_RELATED, LINK_REL_SELF, MEDIA, NS_QUESO, NS_XHTML, PREFIX_QUESO, QUESO_NS, REQUEST_PARAMETER_ACCEPT, REQUEST_PARAMETER_CLIENT, REQUEST_PARAMETER_COLLECTION_URI, SPECIAL_RESOURCE_THISENTRY, SPECIAL_RESOURCE_TIMESTAMP, UNKNOWN_SERVER_ERROR, X_OVERRIDE_HEADER, X_STATUS_HEADER, XSD_ANYURI, XSD_INT, XSD_STRING |
|
Method Summary |
org.apache.abdera.model.Entry |
addEntryToCollection(java.net.URI baseURI,
org.apache.abdera.model.Entry entry,
org.openrdf.model.URI collectionURI)
|
org.apache.abdera.model.Entry |
addEntryToCollection(java.net.URI baseURI,
org.apache.abdera.model.Entry entry,
org.openrdf.model.URI collectionURI,
boolean createNewId)
|
void |
deleteEntry(java.net.URI baseURI,
java.lang.String entryId,
long currentRevision)
|
org.apache.abdera.model.Feed |
getCollectionFeed(java.net.URI baseURI,
org.openrdf.model.URI collectionURI,
java.lang.String collectionPage)
|
org.openrdf.model.URI |
getCollectionForEntry(INamedGraph model)
|
org.openrdf.model.URI |
getCollectionForEntry(java.lang.String entryId)
|
INamedGraphWithMetaData |
getCurrentINamedGraphWithMetaData(java.lang.String id)
|
org.apache.abdera.model.Entry |
getEntry(java.lang.String entryId,
java.net.URI baseUri)
|
java.lang.String |
getEntryNamedGraphLink(java.lang.String nguri)
Check to see if the given arbitrary named graph URI has an atom entry that is managing its content. |
org.apache.abdera.model.Entry |
getEntryRevision(java.lang.String entryId,
java.lang.Long revision,
java.net.URI baseURI)
|
org.apache.abdera.model.Service |
getIntrospectionDocument(java.net.URI baseUri)
|
INamedGraphWithMetaData |
getNamedGraph(java.lang.String id,
java.lang.Long revision)
|
java.lang.Long |
getNamedGraphRevision(java.lang.String id)
|
org.apache.abdera.model.Feed |
getRevisionHistoryFeed(java.net.URI baseURI,
java.lang.String entryId,
java.lang.String collectionPage)
TODO: we need to figure out a way to abstract the collection paging |
java.util.Set<org.openrdf.model.URI> |
getRolesForGraph(java.lang.String id)
|
java.util.Set<org.openrdf.model.URI> |
getRolesForUser(java.lang.String userUri)
|
org.openrdf.model.URI |
getURI(java.lang.String uri)
|
void |
initializeIntrospectionGraph()
|
boolean |
namedGraphExists(java.lang.String id)
|
void |
purgeEntry(java.net.URI baseURI,
java.lang.String entryId)
|
org.apache.abdera.model.Entry |
revertEntry(java.net.URI baseURI,
java.lang.String entryId,
long currentRevision)
|
org.apache.abdera.model.Entry |
touchBinaryEntry(java.net.URI baseURI,
java.lang.String entryId,
long currentRevision)
|
void |
touchCollection(INamedGraph collectionGraph,
org.openrdf.model.URI colURI)
|
org.apache.abdera.model.Entry |
undeleteEntry(java.net.URI baseURI,
java.lang.String entryId)
|
org.apache.abdera.model.Entry |
updateEntry(java.net.URI baseURI,
org.apache.abdera.model.Entry entry,
long currentRevision)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomModel
public AtomModel(AtomHandler atomHandler)
AtomModel
public AtomModel(DatasetService datasetService)
- this constructor is only used in test
- Parameters:
datasetService -
namedGraphExists
public boolean namedGraphExists(java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRolesForGraph
public java.util.Set<org.openrdf.model.URI> getRolesForGraph(java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRolesForUser
public java.util.Set<org.openrdf.model.URI> getRolesForUser(java.lang.String userUri)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNamedGraph
public INamedGraphWithMetaData getNamedGraph(java.lang.String id,
java.lang.Long revision)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCurrentINamedGraphWithMetaData
public INamedGraphWithMetaData getCurrentINamedGraphWithMetaData(java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEntry
public org.apache.abdera.model.Entry getEntry(java.lang.String entryId,
java.net.URI baseUri)
throws java.lang.Exception
- Throws:
java.lang.Exception
initializeIntrospectionGraph
public void initializeIntrospectionGraph()
throws java.lang.Exception
- Throws:
java.lang.Exception
getEntryRevision
public org.apache.abdera.model.Entry getEntryRevision(java.lang.String entryId,
java.lang.Long revision,
java.net.URI baseURI)
throws java.lang.Exception
- Throws:
java.lang.Exception
getIntrospectionDocument
public org.apache.abdera.model.Service getIntrospectionDocument(java.net.URI baseUri)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCollectionFeed
public org.apache.abdera.model.Feed getCollectionFeed(java.net.URI baseURI,
org.openrdf.model.URI collectionURI,
java.lang.String collectionPage)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRevisionHistoryFeed
public org.apache.abdera.model.Feed getRevisionHistoryFeed(java.net.URI baseURI,
java.lang.String entryId,
java.lang.String collectionPage)
throws java.lang.Exception
- TODO: we need to figure out a way to abstract the collection paging
- Parameters:
baseURI - entryId - collectionPage -
- Returns:
-
- Throws:
java.lang.Exception
addEntryToCollection
public org.apache.abdera.model.Entry addEntryToCollection(java.net.URI baseURI,
org.apache.abdera.model.Entry entry,
org.openrdf.model.URI collectionURI)
throws java.lang.Exception
- Throws:
java.lang.Exception
addEntryToCollection
public org.apache.abdera.model.Entry addEntryToCollection(java.net.URI baseURI,
org.apache.abdera.model.Entry entry,
org.openrdf.model.URI collectionURI,
boolean createNewId)
throws java.lang.Exception
- Throws:
java.lang.Exception
updateEntry
public org.apache.abdera.model.Entry updateEntry(java.net.URI baseURI,
org.apache.abdera.model.Entry entry,
long currentRevision)
throws java.lang.Exception
- Throws:
java.lang.Exception
touchBinaryEntry
public org.apache.abdera.model.Entry touchBinaryEntry(java.net.URI baseURI,
java.lang.String entryId,
long currentRevision)
throws java.lang.Exception
- Throws:
java.lang.Exception
revertEntry
public org.apache.abdera.model.Entry revertEntry(java.net.URI baseURI,
java.lang.String entryId,
long currentRevision)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteEntry
public void deleteEntry(java.net.URI baseURI,
java.lang.String entryId,
long currentRevision)
throws java.lang.Exception
- Throws:
java.lang.Exception
undeleteEntry
public org.apache.abdera.model.Entry undeleteEntry(java.net.URI baseURI,
java.lang.String entryId)
throws java.lang.Exception
- Throws:
java.lang.Exception
purgeEntry
public void purgeEntry(java.net.URI baseURI,
java.lang.String entryId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCollectionForEntry
public org.openrdf.model.URI getCollectionForEntry(INamedGraph model)
getCollectionForEntry
public org.openrdf.model.URI getCollectionForEntry(java.lang.String entryId)
throws java.lang.Exception
- Throws:
java.lang.Exception
touchCollection
public void touchCollection(INamedGraph collectionGraph,
org.openrdf.model.URI colURI)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNamedGraphRevision
public java.lang.Long getNamedGraphRevision(java.lang.String id)
throws AnzoException
- Throws:
AnzoException
getEntryNamedGraphLink
public java.lang.String getEntryNamedGraphLink(java.lang.String nguri)
throws java.lang.Exception
- Check to see if the given arbitrary named graph URI has an atom entry that is managing its content.
- Parameters:
nguri -
- Returns:
-
- Throws:
java.lang.Exception
getURI
public org.openrdf.model.URI getURI(java.lang.String uri)
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.