|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.serialization.handlers.HandlerAdapter
org.openanzo.server.repository.update.ServerUpdatesProcessor
public class ServerUpdatesProcessor
ServerUpdatesProcessor handles updates sent from the client, and applies them to the server
| Constructor Summary | |
|---|---|
ServerUpdatesProcessor(RepositoryConnection repositoryConnection,
UpdateResults updateResults)
Create a new ServerUpdatesProcessor |
|
| Method Summary | |
|---|---|
TransactionUpdateResults |
getCurrentTransactionUpdateResults()
|
RepositoryConnection |
getRepositoryConnection()
|
boolean |
handleAci(boolean addition,
org.openrdf.model.URI namedGraph,
org.openrdf.model.URI acl,
org.openrdf.model.URI role,
java.lang.Boolean canRead,
java.lang.Boolean canUpdate,
java.lang.Boolean canDelete,
java.lang.Boolean canInsert,
java.lang.Boolean canRemove,
java.lang.Boolean canChangeAcl)
Handle ACI message |
boolean |
handleAcl(boolean additions,
org.openrdf.model.URI aclNode,
boolean isTemplate)
Handle ACL message |
boolean |
handleCommandEnd()
Handle end of command message |
boolean |
handleCommandStart(java.lang.Long commandId,
java.lang.String commandType,
java.util.Set<IPrecondition> preconditions)
Handle start of command message |
boolean |
handleCommandStart(java.lang.Long id,
java.lang.String commandType,
java.lang.String commandPreconditions)
Handle start of command message |
boolean |
handleNamedGraph(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metadataGraphUri,
java.lang.Long revision,
org.openrdf.model.URI aclNode,
org.openrdf.model.URI createdBy,
java.lang.Long modified,
org.openrdf.model.URI lastModifiedBy)
Handle NamedGraph message |
boolean |
handleNode(java.lang.Long id,
org.openrdf.model.Value node)
Handle Node message |
boolean |
handleRole(boolean additions,
org.openrdf.model.URI roleNode)
Handle role message |
boolean |
handleStatement(boolean additions,
org.openrdf.model.URI graphUri,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
Handle statement message |
boolean |
handleSubRoleOf(boolean additions,
org.openrdf.model.URI roleNode,
org.openrdf.model.URI parentRoleNode)
Handle Role subrole of another role message |
boolean |
handleTransactionEnd()
Handle end of transaction message |
boolean |
handleTransactionStart(java.lang.Long id,
java.lang.Long timestamp)
Handle start of transaction message |
boolean |
handleUser(boolean additions,
org.openrdf.model.URI userNode,
org.openrdf.model.URI defaultRoleNode,
org.openrdf.model.URI defaultAclNode,
java.lang.String userId,
java.lang.String password)
Handle user message |
boolean |
handleUserInRole(boolean additions,
org.openrdf.model.URI userNode,
org.openrdf.model.URI roleNode)
Handle User in Role message |
void |
parse(boolean additions,
java.util.Collection<org.openrdf.model.Statement> statements)
Parse the contents of a graph into updates |
void |
read(java.io.InputStream inputStream)
Read udpates from an InputStream |
| Methods inherited from class org.openanzo.serialization.handlers.HandlerAdapter |
|---|
handleEndDocument, handleError, handleReset, handleStartDocument |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerUpdatesProcessor(RepositoryConnection repositoryConnection,
UpdateResults updateResults)
repositoryConnection - RepositoryConnection to run queries and updates againstupdateResults - UpdateResults to which updates are written| Method Detail |
|---|
public void read(java.io.InputStream inputStream)
throws AnzoException
inputStream - InputStream containing updates
AnzoException
public void parse(boolean additions,
java.util.Collection<org.openrdf.model.Statement> statements)
throws AnzoException
additions - Does this Graph contain additionsstatements - statements to parse
AnzoException
public boolean handleTransactionStart(java.lang.Long id,
java.lang.Long timestamp)
throws AnzoException
IRepositoryHandler
handleTransactionStart in interface IRepositoryHandlerhandleTransactionStart in class HandlerAdapterid - Id of transactiontimestamp - timestamp when transaction was committed
AnzoException
public boolean handleTransactionEnd()
throws AnzoException
IRepositoryHandler
handleTransactionEnd in interface IRepositoryHandlerhandleTransactionEnd in class HandlerAdapterAnzoException
public boolean handleCommandStart(java.lang.Long id,
java.lang.String commandType,
java.lang.String commandPreconditions)
throws AnzoException
IRepositoryHandler
handleCommandStart in interface IRepositoryHandlerhandleCommandStart in class HandlerAdapterid - Id of commandcommandType - Type of commandcommandPreconditions - Serialized graph representation of precondition for command
AnzoException
public boolean handleCommandStart(java.lang.Long commandId,
java.lang.String commandType,
java.util.Set<IPrecondition> preconditions)
throws AnzoException
commandId - Id of commandcommandType - Type of commandpreconditions - set of preconditions for command
AnzoException
public boolean handleCommandEnd()
throws AnzoException
IRepositoryHandler
handleCommandEnd in interface IRepositoryHandlerhandleCommandEnd in class HandlerAdapterAnzoException
public boolean handleAci(boolean addition,
org.openrdf.model.URI namedGraph,
org.openrdf.model.URI acl,
org.openrdf.model.URI role,
java.lang.Boolean canRead,
java.lang.Boolean canUpdate,
java.lang.Boolean canDelete,
java.lang.Boolean canInsert,
java.lang.Boolean canRemove,
java.lang.Boolean canChangeAcl)
throws AnzoException
IRepositoryHandler
handleAci in interface IRepositoryHandlerhandleAci in class HandlerAdapteraddition - Is this message an addition or deletionnamedGraph - URI of NamedGraph that this ACI belongsacl - URI of ACLrole - Role that this ACI affectscanRead - Can this role read the graphcanUpdate - Can this role add to the graphcanDelete - Can this role remove from the graphcanInsert - Can this role insert a new NamedGraphcanRemove - Can this role remove a NamedGraphcanChangeAcl - Can this role change the ACL properties
AnzoException
public boolean handleAcl(boolean additions,
org.openrdf.model.URI aclNode,
boolean isTemplate)
throws AnzoException
IRepositoryHandler
handleAcl in interface IRepositoryHandlerhandleAcl in class HandlerAdapteradditions - Is this message an addition or deletionaclNode - URI of ACLisTemplate - Is this acl a template
AnzoException
public boolean handleNamedGraph(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metadataGraphUri,
java.lang.Long revision,
org.openrdf.model.URI aclNode,
org.openrdf.model.URI createdBy,
java.lang.Long modified,
org.openrdf.model.URI lastModifiedBy)
throws AnzoException
IRepositoryHandler
handleNamedGraph in interface IRepositoryHandlerhandleNamedGraph in class HandlerAdapteradditions - Is this message an addition or deletionnamedGraphUri - URI of NamedGraphmetadataGraphUri - URI of NamedGraph's metadata graphrevision - Revision value of NamedGraphaclNode - URI of ACL that this NamedGraph usescreatedBy - User that created the NamedGraphmodified - When graph was last modifiedlastModifiedBy - Who last modified graph
AnzoException
public boolean handleNode(java.lang.Long id,
org.openrdf.model.Value node)
IRepositoryHandler
handleNode in interface IRepositoryHandlerhandleNode in class HandlerAdapterid - ID of nodenode - Value of node
public boolean handleRole(boolean additions,
org.openrdf.model.URI roleNode)
throws AnzoException
IRepositoryHandler
handleRole in interface IRepositoryHandlerhandleRole in class HandlerAdapteradditions - Is this message an addition or deletionroleNode - Role added or deleted
AnzoException
public boolean handleStatement(boolean additions,
org.openrdf.model.URI graphUri,
org.openrdf.model.Resource subject,
org.openrdf.model.URI predicate,
org.openrdf.model.Value object)
throws AnzoException
IRepositoryHandler
handleStatement in interface IRepositoryHandlerhandleStatement in class HandlerAdapteradditions - Is this a statement addition or deletiongraphUri - URI of NamedGraph that statement belongs tosubject - Subject valuepredicate - Predicate valueobject - Object value
AnzoException
public boolean handleSubRoleOf(boolean additions,
org.openrdf.model.URI roleNode,
org.openrdf.model.URI parentRoleNode)
throws AnzoException
IRepositoryHandler
handleSubRoleOf in interface IRepositoryHandlerhandleSubRoleOf in class HandlerAdapteradditions - Is this message an addition or deletionroleNode - Role valueparentRoleNode - Parent role to which role is a subrole
AnzoException
public boolean handleUser(boolean additions,
org.openrdf.model.URI userNode,
org.openrdf.model.URI defaultRoleNode,
org.openrdf.model.URI defaultAclNode,
java.lang.String userId,
java.lang.String password)
throws AnzoException
IRepositoryHandler
handleUser in interface IRepositoryHandlerhandleUser in class HandlerAdapteradditions - Is this message an addition or deletionuserNode - User valuedefaultRoleNode - Default role for this userdefaultAclNode - URI for the default ACL template for this useruserId - UserId for this userpassword - Password for this user
AnzoException
public boolean handleUserInRole(boolean additions,
org.openrdf.model.URI userNode,
org.openrdf.model.URI roleNode)
throws AnzoException
IRepositoryHandler
handleUserInRole in interface IRepositoryHandlerhandleUserInRole in class HandlerAdapteradditions - Is this message an addition or deletionuserNode - User valueroleNode - Role user is being added to or deleted from
AnzoExceptionpublic TransactionUpdateResults getCurrentTransactionUpdateResults()
public RepositoryConnection getRepositoryConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||