|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.serialization.XMLNodeWriter
public class XMLNodeWriter
Provides XML serialization of transport messages.
| Constructor Summary | |
|---|---|
XMLNodeWriter(java.io.OutputStream out)
New XMLNodeWriter that writes to out |
|
| Method Summary | |
|---|---|
boolean |
handleAci(boolean addition,
java.lang.Long namedGraph,
java.lang.Long acl,
java.lang.Long 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)
Write ACI data to stream |
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 addition,
java.lang.Long acl,
boolean isTemplate)
Write ACL data to stream |
boolean |
handleAcl(boolean addition,
org.openrdf.model.URI acl,
boolean isTemplate)
Handle ACL message |
boolean |
handleCommandEnd()
Handle end of command message |
boolean |
handleCommandStart(java.lang.Long commandId,
java.lang.String commandType,
java.lang.String commandPreReq)
Handle start of command message |
boolean |
handleEndDocument()
Handle end of document message |
boolean |
handleError(int errorNumber,
int errorSubNumber,
java.lang.String... errorMessageArgs)
Handle an error message |
boolean |
handleNamedGraph(boolean addition,
java.lang.Long graph,
java.lang.Long metaGraph,
java.lang.Long revision,
java.lang.Long aclTemplate,
java.lang.Long createdBy,
java.lang.Long modified,
java.lang.Long lastModifiedBy)
Write NamedGraph data to stream |
boolean |
handleNamedGraph(boolean addition,
org.openrdf.model.URI graph,
org.openrdf.model.URI metaGraph,
java.lang.Long revision,
org.openrdf.model.URI aclTemplate,
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 value)
Handle Node message |
boolean |
handleReset()
Handle reset message |
boolean |
handleRole(boolean addition,
java.lang.Long role)
Write Role data to stream |
boolean |
handleRole(boolean addition,
org.openrdf.model.URI role)
Handle role message |
boolean |
handleStartDocument()
Handle start of document message |
boolean |
handleStatement(boolean addition,
java.lang.Long graphId,
java.lang.Long subj,
java.lang.Long prop,
java.lang.Long obj)
Write statement to outputSream |
boolean |
handleStatement(boolean addition,
org.openrdf.model.URI graphId,
org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
Handle statement message |
boolean |
handleSubRoleOf(boolean addition,
java.lang.Long role,
java.lang.Long parentRole)
Write SubRole data to stream |
boolean |
handleSubRoleOf(boolean addition,
org.openrdf.model.URI role,
org.openrdf.model.URI parentRole)
Handle Role subrole of another role message |
boolean |
handleTransactionEnd()
Handle end of transaction message |
boolean |
handleTransactionStart(java.lang.Long transactionId,
java.lang.Long transactionTimestamp)
Handle start of transaction message |
boolean |
handleUser(boolean addition,
java.lang.Long user,
java.lang.Long defaultRole,
java.lang.Long defaultAclTemplate,
java.lang.String userId,
java.lang.String password)
Write statement to outputSream |
boolean |
handleUser(boolean addition,
org.openrdf.model.URI user,
org.openrdf.model.URI defaultRole,
org.openrdf.model.URI defaultAclTemplate,
java.lang.String userId,
java.lang.String password)
Handle user message |
boolean |
handleUserInRole(boolean addition,
java.lang.Long user,
java.lang.Long role)
Write UserInRole data to stream |
boolean |
handleUserInRole(boolean addition,
org.openrdf.model.URI user,
org.openrdf.model.URI role)
Handle User in Role message |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLNodeWriter(java.io.OutputStream out)
out - Stream to which output is written| Method Detail |
|---|
public boolean handleNode(java.lang.Long id,
org.openrdf.model.Value value)
throws AnzoException
IRepositoryHandler
handleNode in interface IRepositoryHandlerid - ID of nodevalue - Value of node
AnzoException
public boolean handleStartDocument()
throws AnzoException
IRepositoryHandler
handleStartDocument in interface IRepositoryHandlerAnzoException
public boolean handleEndDocument()
throws AnzoException
IRepositoryHandler
handleEndDocument in interface IRepositoryHandlerAnzoException
public boolean handleTransactionStart(java.lang.Long transactionId,
java.lang.Long transactionTimestamp)
throws AnzoException
IRepositoryHandler
handleTransactionStart in interface IRepositoryHandlertransactionId - Id of transactiontransactionTimestamp - timestamp when transaction was committed
AnzoException
public boolean handleTransactionEnd()
throws AnzoException
IRepositoryHandler
handleTransactionEnd in interface IRepositoryHandlerAnzoException
public boolean handleCommandStart(java.lang.Long commandId,
java.lang.String commandType,
java.lang.String commandPreReq)
throws AnzoException
IRepositoryHandler
handleCommandStart in interface IRepositoryHandlercommandId - Id of commandcommandType - Type of commandcommandPreReq - Serialized graph representation of precondition for command
AnzoException
public boolean handleCommandEnd()
throws AnzoException
IRepositoryHandler
handleCommandEnd in interface IRepositoryHandlerAnzoException
public boolean handleStatement(boolean addition,
org.openrdf.model.URI graphId,
org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
throws AnzoException
IRepositoryHandler
handleStatement in interface IRepositoryHandleraddition - Is this a statement addition or deletiongraphId - URI of NamedGraph that statement belongs tosubj - Subject valueprop - Predicate valueobj - Object value
AnzoException
public boolean handleStatement(boolean addition,
java.lang.Long graphId,
java.lang.Long subj,
java.lang.Long prop,
java.lang.Long obj)
throws AnzoException
addition - flags if this is an addition or deletiongraphId - id of NamedGraphsubj - id of subjectprop - id of propertyobj - id of object
AnzoException - if there was an error writing statement to stream
public boolean handleUser(boolean addition,
org.openrdf.model.URI user,
org.openrdf.model.URI defaultRole,
org.openrdf.model.URI defaultAclTemplate,
java.lang.String userId,
java.lang.String password)
throws AnzoException
IRepositoryHandler
handleUser in interface IRepositoryHandleraddition - Is this message an addition or deletionuser - User valuedefaultRole - Default role for this userdefaultAclTemplate - URI for the default ACL template for this useruserId - UserId for this userpassword - Password for this user
AnzoException
public boolean handleUser(boolean addition,
java.lang.Long user,
java.lang.Long defaultRole,
java.lang.Long defaultAclTemplate,
java.lang.String userId,
java.lang.String password)
throws AnzoException
addition - flags if this is an addition or deletionuser - id of userdefaultRole - id of defaultRoledefaultAclTemplate - id of defaultAclTemplateuserId - of userpassword - of user
AnzoException - if there was an error writing user to stream
public boolean handleUserInRole(boolean addition,
org.openrdf.model.URI user,
org.openrdf.model.URI role)
throws AnzoException
IRepositoryHandler
handleUserInRole in interface IRepositoryHandleraddition - Is this message an addition or deletionuser - User valuerole - Role user is being added to or deleted from
AnzoException
public boolean handleUserInRole(boolean addition,
java.lang.Long user,
java.lang.Long role)
throws AnzoException
addition - flags if this is an addition or deletionuser - id of userrole - id of role
AnzoException - if there was an error writing data to stream
public boolean handleRole(boolean addition,
org.openrdf.model.URI role)
throws AnzoException
IRepositoryHandler
handleRole in interface IRepositoryHandleraddition - Is this message an addition or deletionrole - Role added or deleted
AnzoException
public boolean handleRole(boolean addition,
java.lang.Long role)
throws AnzoException
addition - flags if this is an addition or deletionrole - id of role
AnzoException - if there was an error writing data to stream
public boolean handleSubRoleOf(boolean addition,
org.openrdf.model.URI role,
org.openrdf.model.URI parentRole)
throws AnzoException
IRepositoryHandler
handleSubRoleOf in interface IRepositoryHandleraddition - Is this message an addition or deletionrole - Role valueparentRole - Parent role to which role is a subrole
AnzoException
public boolean handleSubRoleOf(boolean addition,
java.lang.Long role,
java.lang.Long parentRole)
throws AnzoException
addition - flags if this is an addition or deletionrole - id of roleparentRole - if of parentRole
AnzoException - if there was an error writing data to stream
public boolean handleNamedGraph(boolean addition,
org.openrdf.model.URI graph,
org.openrdf.model.URI metaGraph,
java.lang.Long revision,
org.openrdf.model.URI aclTemplate,
org.openrdf.model.URI createdBy,
java.lang.Long modified,
org.openrdf.model.URI lastModifiedBy)
throws AnzoException
IRepositoryHandler
handleNamedGraph in interface IRepositoryHandleraddition - Is this message an addition or deletiongraph - URI of NamedGraphmetaGraph - URI of NamedGraph's metadata graphrevision - Revision value of NamedGraphaclTemplate - URI of ACL that this NamedGraph usescreatedBy - User that created the NamedGraphmodified - When graph was last modifiedlastModifiedBy - Who last modified graph
AnzoException
public boolean handleNamedGraph(boolean addition,
java.lang.Long graph,
java.lang.Long metaGraph,
java.lang.Long revision,
java.lang.Long aclTemplate,
java.lang.Long createdBy,
java.lang.Long modified,
java.lang.Long lastModifiedBy)
throws AnzoException
addition - flags if this is an addition or deletiongraph - id of graphmetaGraph - id of metadata graphrevision - revision of NamedGraphaclTemplate - id of aclTemplatecreatedBy - if of user that created graphmodified - timestamp when graph was modifiedlastModifiedBy - id of user that last modified graph
AnzoException - if there was an error writing data to stream
public boolean handleAcl(boolean addition,
org.openrdf.model.URI acl,
boolean isTemplate)
throws AnzoException
IRepositoryHandler
handleAcl in interface IRepositoryHandleraddition - Is this message an addition or deletionacl - URI of ACLisTemplate - Is this acl a template
AnzoException
public boolean handleAcl(boolean addition,
java.lang.Long acl,
boolean isTemplate)
throws AnzoException
addition - flags if this is an addition or deletionacl - id of aclisTemplate - flags if this is a template ACL
AnzoException - if there was an error writing data to stream
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 IRepositoryHandleraddition - 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 handleAci(boolean addition,
java.lang.Long namedGraph,
java.lang.Long acl,
java.lang.Long 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
addition - flags if this is an addition or deletionnamedGraph - id of graphacl - id of ACLrole - id of rolecanRead - true if canReadcanUpdate - true if canUpdatecanDelete - true if canDeletecanInsert - true if canInsertcanRemove - true if canRemovecanChangeAcl - true if canChangeAcl
AnzoException - if there was an error writing data to stream
public boolean handleError(int errorNumber,
int errorSubNumber,
java.lang.String... errorMessageArgs)
throws AnzoException
IRepositoryHandler
handleError in interface IRepositoryHandlererrorNumber - Major error codeerrorSubNumber - Minor error codeerrorMessageArgs - Arguments to error message
AnzoExceptionpublic boolean handleReset()
IRepositoryHandler
handleReset in interface IRepositoryHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||