|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.serialization.handlers.HandlerAdapter
public class HandlerAdapter
Adapter for IRepositoryHandler
| Constructor Summary | |
|---|---|
HandlerAdapter()
|
|
| Method Summary | |
|---|---|
boolean |
handleAci(boolean addition,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI aclUri,
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,
org.openrdf.model.URI aclUri,
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 commadPreReq)
Handle start of command message |
boolean |
handleEndDocument()
Handle end of document message |
boolean |
handleError(int errorNumber,
int erroSubNumber,
java.lang.String... errorMessageArgs)
Handle an error message |
boolean |
handleNamedGraph(boolean addition,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metadataGraphUri,
java.lang.Long revision,
org.openrdf.model.URI aclUriTemplate,
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,
org.openrdf.model.URI role)
Handle role message |
boolean |
handleStartDocument()
Handle start of document message |
boolean |
handleStatement(boolean addition,
org.openrdf.model.URI namedGraphUriId,
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 timestamp)
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HandlerAdapter()
| Method Detail |
|---|
public boolean handleReset()
throws AnzoException
IRepositoryHandler
handleReset in interface IRepositoryHandlerAnzoException
public boolean handleAci(boolean addition,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI aclUri,
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 deletionnamedGraphUri - URI of NamedGraph that this ACI belongsaclUri - 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 addition,
org.openrdf.model.URI aclUri,
boolean isTemplate)
throws AnzoException
IRepositoryHandler
handleAcl in interface IRepositoryHandleraddition - Is this message an addition or deletionaclUri - URI of ACLisTemplate - Is this acl a template
AnzoException
public boolean handleCommandStart(java.lang.Long commandId,
java.lang.String commandType,
java.lang.String commadPreReq)
throws AnzoException
IRepositoryHandler
handleCommandStart in interface IRepositoryHandlercommandId - Id of commandcommandType - Type of commandcommadPreReq - Serialized graph representation of precondition for command
AnzoException
public boolean handleCommandEnd()
throws AnzoException
IRepositoryHandler
handleCommandEnd in interface IRepositoryHandlerAnzoException
public boolean handleEndDocument()
throws AnzoException
IRepositoryHandler
handleEndDocument in interface IRepositoryHandlerAnzoException
public boolean handleError(int errorNumber,
int erroSubNumber,
java.lang.String... errorMessageArgs)
throws AnzoException
IRepositoryHandler
handleError in interface IRepositoryHandlererrorNumber - Major error codeerroSubNumber - Minor error codeerrorMessageArgs - Arguments to error message
AnzoException
public boolean handleNamedGraph(boolean addition,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metadataGraphUri,
java.lang.Long revision,
org.openrdf.model.URI aclUriTemplate,
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 deletionnamedGraphUri - URI of NamedGraphmetadataGraphUri - URI of NamedGraph's metadata graphrevision - Revision value of NamedGraphaclUriTemplate - 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 value)
throws AnzoException
IRepositoryHandler
handleNode in interface IRepositoryHandlerid - ID of nodevalue - Value of node
AnzoException
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 handleStartDocument()
throws AnzoException
IRepositoryHandler
handleStartDocument in interface IRepositoryHandlerAnzoException
public boolean handleStatement(boolean addition,
org.openrdf.model.URI namedGraphUriId,
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 deletionnamedGraphUriId - URI of NamedGraph that statement belongs tosubj - Subject valueprop - Predicate valueobj - Object value
AnzoException
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 handleTransactionStart(java.lang.Long transactionId,
java.lang.Long timestamp)
throws AnzoException
IRepositoryHandler
handleTransactionStart in interface IRepositoryHandlertransactionId - Id of transactiontimestamp - timestamp when transaction was committed
AnzoException
public boolean handleTransactionEnd()
throws AnzoException
IRepositoryHandler
handleTransactionEnd in interface IRepositoryHandlerAnzoException
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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||