org.openanzo.atom.cache
Class AtomCacheEventListener
java.lang.Object
org.openanzo.serialization.handlers.HandlerAdapter
org.openanzo.services.NotificationListenerAdapter
org.openanzo.atom.cache.AtomCacheEventListener
- All Implemented Interfaces:
- AtomConstants, IRepositoryHandler, INotificationListener
public class AtomCacheEventListener
- extends NotificationListenerAdapter
- implements AtomConstants
| Fields inherited from interface org.openanzo.atom.AtomConstants |
ANCHOR, ATOM_SERVER_NAME, ATOM_SERVER_VERSION, BINARY_CONTENT_SRC, BINARY_CONTENT_TYPE, BINARY_CONTENT_VERSION, CLIENT_DOJO, COLLECTION_PAGE_SIZE, CONTENT_ATOM_XML, CONTENT_ATOM_XML_UTF8, CONTENT_ATOMSERV_XML, CONTENT_ATOMSERV_XML_UTF8, CONTENT_HTML, CONTENT_JSON, CONTENT_MULTIPART_FORM_DATA, CONTENT_RDF_XML, CONTENT_TEXT, CONTENT_XHTML, CONTENT_XHTML_SHORT, CONTENT_XML, DELIM, EDIT, ENTRY, HEADER_ACCEPT, HEADER_ALLOW, HEADER_CONTENT_LOCATION, HEADER_CONTENT_TYPE, HEADER_ETAG, HEADER_LOCATION, HEADER_TITLE, HISTORY, HTTP_BAD_REQUEST, HTTP_CONFLICT, HTTP_CREATED, HTTP_FORBIDDEN, HTTP_GONE, HTTP_INTERNAL_SERVER_ERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOT_AUTHORIZED, HTTP_NOT_FOUND, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_UNSUPPORTED_MEDIA, INVALID_ATOM_ENTRY, INVALID_COLLECTION_URI, LINK_REL_ALTERNATE, LINK_REL_ANCHOR, LINK_REL_COLLECTION, LINK_REL_CONTENT_GRAPH, LINK_REL_EDIT, LINK_REL_EDIT_MEDIA, LINK_REL_FIRST, LINK_REL_HISTORY, LINK_REL_INTROSPECTION, LINK_REL_LAST, LINK_REL_NEXT, LINK_REL_PREVIOUS, LINK_REL_RELATED, LINK_REL_SELF, MEDIA, NS_QUESO, NS_XHTML, PREFIX_QUESO, QUESO_NS, REQUEST_PARAMETER_ACCEPT, REQUEST_PARAMETER_CLIENT, REQUEST_PARAMETER_COLLECTION_URI, SPECIAL_RESOURCE_THISENTRY, SPECIAL_RESOURCE_TIMESTAMP, UNKNOWN_SERVER_ERROR, X_OVERRIDE_HEADER, X_STATUS_HEADER, XSD_ANYURI, XSD_INT, XSD_STRING |
|
Method Summary |
void |
connectionStateChanged(int state)
Event about the state of the INotificationService's connection to the NotificationServer |
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 |
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 |
handleAci, handleAcl, handleCommandEnd, handleCommandStart, handleEndDocument, handleError, handleNode, handleReset, handleRole, handleStartDocument, handleStatement, handleSubRoleOf, handleTransactionEnd, handleTransactionStart |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.serialization.IRepositoryHandler |
handleAci, handleAcl, handleCommandEnd, handleCommandStart, handleEndDocument, handleError, handleNode, handleReset, handleRole, handleStartDocument, handleStatement, handleSubRoleOf, handleTransactionEnd, handleTransactionStart |
AtomCacheEventListener
public AtomCacheEventListener(DatasetService dataService,
AtomCache atomCache,
AtomModel atomModel)
throws java.lang.Exception
- Throws:
java.lang.Exception
connectionStateChanged
public void connectionStateChanged(int state)
- Description copied from interface:
INotificationListener
- Event about the state of the INotificationService's connection to the NotificationServer
- Specified by:
connectionStateChanged in interface INotificationListener- Overrides:
connectionStateChanged in class NotificationListenerAdapter
- Parameters:
state - current state of the connection- See Also:
INotificationListener.CONNECTED,
INotificationListener.DISCONNECTED,
INotificationListener.CONNECTIONFAILED
handleUser
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
- Description copied from interface:
IRepositoryHandler
- Handle user message
- Specified by:
handleUser in interface IRepositoryHandler- Overrides:
handleUser in class HandlerAdapter
- Parameters:
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
- Returns:
- Message handled successfully
- Throws:
AnzoException
handleUserInRole
public boolean handleUserInRole(boolean addition,
org.openrdf.model.URI user,
org.openrdf.model.URI role)
throws AnzoException
- Description copied from interface:
IRepositoryHandler
- Handle User in Role message
- Specified by:
handleUserInRole in interface IRepositoryHandler- Overrides:
handleUserInRole in class HandlerAdapter
- Parameters:
addition - Is this message an addition or deletionuser - User valuerole - Role user is being added to or deleted from
- Returns:
- Message handled successfully
- Throws:
AnzoException
handleNamedGraph
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
- Description copied from interface:
IRepositoryHandler
- Handle NamedGraph message
- Specified by:
handleNamedGraph in interface IRepositoryHandler- Overrides:
handleNamedGraph in class HandlerAdapter
- Parameters:
addition - 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
- Returns:
- Message handled successfully
- Throws:
AnzoException
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.