|
||||||||||
| 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.indexer.IndexUpdateHandler.IndexerUpdateHandler
public class IndexUpdateHandler.IndexerUpdateHandler
Handler for parsing transaction events that come from UpdateHandler.
For every transaction start, preIndex and preRemove are called. Statements with string literal objects are indexed. When
the transaction ends, postIndex and postRemove are called.
| Method Summary | |
|---|---|
boolean |
handleAci(boolean addition,
org.openrdf.model.URI namedGraphUri,
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,
org.openrdf.model.URI acl,
boolean isTemplate)
Handle ACL message |
boolean |
handleNamedGraph(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metadataGraphUri,
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 |
handleRole(boolean addition,
org.openrdf.model.URI role)
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 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 id,
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 org.openanzo.serialization.handlers.HandlerAdapter |
|---|
handleCommandEnd, handleCommandStart, handleEndDocument, handleError, handleNode, handleReset, handleStartDocument |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean handleAci(boolean addition,
org.openrdf.model.URI namedGraphUri,
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 deletionnamedGraphUri - 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 addition,
org.openrdf.model.URI acl,
boolean isTemplate)
throws AnzoException
IRepositoryHandler
handleAcl in interface IRepositoryHandlerhandleAcl in class HandlerAdapteraddition - Is this message an addition or deletionacl - URI of ACLisTemplate - Is this acl a template
AnzoException
public boolean handleRole(boolean addition,
org.openrdf.model.URI role)
throws AnzoException
IRepositoryHandler
handleRole in interface IRepositoryHandlerhandleRole in class HandlerAdapteraddition - Is this message an addition or deletionrole - Role added or deleted
AnzoException
public boolean handleSubRoleOf(boolean addition,
org.openrdf.model.URI role,
org.openrdf.model.URI parentRole)
throws AnzoException
IRepositoryHandler
handleSubRoleOf in interface IRepositoryHandlerhandleSubRoleOf in class HandlerAdapteraddition - Is this message an addition or deletionrole - Role valueparentRole - Parent role to which role is a subrole
AnzoException
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 IRepositoryHandlerhandleUser in class HandlerAdapteraddition - 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 IRepositoryHandlerhandleUserInRole in class HandlerAdapteraddition - Is this message an addition or deletionuser - User valuerole - Role user is being added to or deleted from
AnzoException
public boolean handleNamedGraph(boolean additions,
org.openrdf.model.URI namedGraphUri,
org.openrdf.model.URI metadataGraphUri,
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 IRepositoryHandlerhandleNamedGraph in class HandlerAdapteradditions - Is this message an addition or deletionnamedGraphUri - URI of NamedGraphmetadataGraphUri - 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 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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||