org.openanzo.serialization.handlers
Class RevisionHandler
java.lang.Object
org.openanzo.serialization.handlers.HandlerAdapter
org.openanzo.serialization.handlers.RevisionHandler
- All Implemented Interfaces:
- IRepositoryHandler
public class RevisionHandler
- extends HandlerAdapter
IRepositoryHandler that handles stream from server after requesting a revision of a NamedGraph
- Author:
- Matthew Roy ( mroy@cambridgesemantics.com )
|
Method Summary |
INamedGraphWithMetaData |
getNamedGraph()
|
boolean |
handleNamedGraph(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metaGraph,
java.lang.Long revision,
org.openrdf.model.URI createdByNodeId,
org.openrdf.model.URI acl,
java.lang.Long modified,
org.openrdf.model.URI lastModifiedBy)
Handle NamedGraph message |
boolean |
handleStatement(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
Handle statement message |
| Methods inherited from class org.openanzo.serialization.handlers.HandlerAdapter |
handleAci, handleAcl, handleCommandEnd, handleCommandStart, handleEndDocument, handleError, handleNode, handleReset, handleRole, handleStartDocument, handleSubRoleOf, handleTransactionEnd, handleTransactionStart, handleUser, handleUserInRole |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RevisionHandler
public RevisionHandler()
getNamedGraph
public INamedGraphWithMetaData getNamedGraph()
- Returns:
- the namedGraph that was handled
handleStatement
public boolean handleStatement(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
- Description copied from interface:
IRepositoryHandler
- Handle statement message
- Specified by:
handleStatement in interface IRepositoryHandler- Overrides:
handleStatement in class HandlerAdapter
- Parameters:
additions - Is this a statement addition or deletionnamedGraphUri - URI of NamedGraph that statement belongs tosubject - Subject valuepredicate - Predicate valueobject - Object value
- Returns:
- Message handled successfully
handleNamedGraph
public boolean handleNamedGraph(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metaGraph,
java.lang.Long revision,
org.openrdf.model.URI createdByNodeId,
org.openrdf.model.URI acl,
java.lang.Long modified,
org.openrdf.model.URI lastModifiedBy)
- Description copied from interface:
IRepositoryHandler
- Handle NamedGraph message
- Specified by:
handleNamedGraph in interface IRepositoryHandler- Overrides:
handleNamedGraph in class HandlerAdapter
- Parameters:
additions - Is this message an addition or deletionnamedGraphUri - URI of NamedGraphmetaGraph - URI of NamedGraph's metadata graphrevision - Revision value of NamedGraphcreatedByNodeId - URI of ACL that this NamedGraph usesacl - User that created the NamedGraphmodified - When graph was last modifiedlastModifiedBy - Who last modified graph
- Returns:
- Message handled successfully
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.