org.openanzo.serialization.handlers
Class RevisionHandler

java.lang.Object
  extended by org.openanzo.serialization.handlers.HandlerAdapter
      extended by 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 )

Constructor Summary
RevisionHandler()
           
 
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
 

Constructor Detail

RevisionHandler

public RevisionHandler()
Method Detail

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 deletion
namedGraphUri - URI of NamedGraph that statement belongs to
subject - Subject value
predicate - Predicate value
object - 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 deletion
namedGraphUri - URI of NamedGraph
metaGraph - URI of NamedGraph's metadata graph
revision - Revision value of NamedGraph
createdByNodeId - URI of ACL that this NamedGraph uses
acl - User that created the NamedGraph
modified - When graph was last modified
lastModifiedBy - Who last modified graph
Returns:
Message handled successfully


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.