|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRepositoryHandler
IRepositoryHandler is the main interface used throughout Anzo for handling messages between the client and server.
| Method Summary | |
|---|---|
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 canAdd,
java.lang.Boolean canRemove,
java.lang.Boolean canInsertNamedGraph,
java.lang.Boolean canRemoveNamedGraph,
java.lang.Boolean canChangeAcl)
Handle ACI message |
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 commadPrecondition)
Handle start of command message |
boolean |
handleEndDocument()
Handle end of document message |
boolean |
handleError(int errorNumber,
int errorSubCode,
java.lang.String... errorMessageArgs)
Handle an error message |
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 node)
Handle Node message |
boolean |
handleReset()
Handle reset message |
boolean |
handleRole(boolean addition,
org.openrdf.model.URI role)
Handle role message |
boolean |
handleStartDocument()
Handle start of document message |
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,
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 committedTimestamp)
Handle start of transaction message |
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,
org.openrdf.model.URI user,
org.openrdf.model.URI role)
Handle User in Role message |
| Method Detail |
|---|
boolean handleReset()
throws AnzoException
AnzoException
boolean handleStartDocument()
throws AnzoException
AnzoException
boolean handleEndDocument()
throws AnzoException
AnzoException
boolean handleTransactionStart(java.lang.Long transactionId,
java.lang.Long committedTimestamp)
throws AnzoException
transactionId - Id of transactioncommittedTimestamp - timestamp when transaction was committed
AnzoException
boolean handleTransactionEnd()
throws AnzoException
AnzoException
boolean handleCommandStart(java.lang.Long commandId,
java.lang.String commandType,
java.lang.String commadPrecondition)
throws AnzoException
commandId - Id of commandcommandType - Type of commandcommadPrecondition - Serialized graph representation of precondition for command
AnzoException
boolean handleCommandEnd()
throws AnzoException
AnzoException
boolean handleNode(java.lang.Long id,
org.openrdf.model.Value node)
throws AnzoException
id - ID of nodenode - Value of node
AnzoException
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
addition - Is this a statement addition or deletiongraphId - URI of NamedGraph that statement belongs tosubj - Subject valueprop - Predicate valueobj - Object value
AnzoException
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
addition - 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
boolean handleUserInRole(boolean addition,
org.openrdf.model.URI user,
org.openrdf.model.URI role)
throws AnzoException
addition - Is this message an addition or deletionuser - User valuerole - Role user is being added to or deleted from
AnzoException
boolean handleRole(boolean addition,
org.openrdf.model.URI role)
throws AnzoException
addition - Is this message an addition or deletionrole - Role added or deleted
AnzoException
boolean handleSubRoleOf(boolean addition,
org.openrdf.model.URI role,
org.openrdf.model.URI parentRole)
throws AnzoException
addition - Is this message an addition or deletionrole - Role valueparentRole - Parent role to which role is a subrole
AnzoException
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
addition - 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
boolean handleAcl(boolean addition,
org.openrdf.model.URI acl,
boolean isTemplate)
throws AnzoException
addition - Is this message an addition or deletionacl - URI of ACLisTemplate - Is this acl a template
AnzoException
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 canAdd,
java.lang.Boolean canRemove,
java.lang.Boolean canInsertNamedGraph,
java.lang.Boolean canRemoveNamedGraph,
java.lang.Boolean canChangeAcl)
throws AnzoException
addition - 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 graphcanAdd - Can this role add to the graphcanRemove - Can this role remove from the graphcanInsertNamedGraph - Can this role insert a new NamedGraphcanRemoveNamedGraph - Can this role remove a NamedGraphcanChangeAcl - Can this role change the ACL properties
AnzoException
boolean handleError(int errorNumber,
int errorSubCode,
java.lang.String... errorMessageArgs)
throws AnzoException
errorNumber - Major error codeerrorSubCode - Minor error codeerrorMessageArgs - Arguments to error message
AnzoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||