org.apache.cocoon.components.slide.impl
Class JMSContentInterceptor

java.lang.Object
  extended by org.apache.slide.content.AbstractContentInterceptor
      extended by org.apache.cocoon.components.slide.impl.JMSContentInterceptor
All Implemented Interfaces:
org.apache.slide.content.ContentInterceptor

public class JMSContentInterceptor
extends org.apache.slide.content.AbstractContentInterceptor

A ContentInterceptor for Slide that publishes invalidation events to a JMS topic.


Constructor Summary
JMSContentInterceptor()
           
 
Method Summary
 void postRemoveContent(org.apache.slide.common.SlideToken slideToken, org.apache.slide.content.NodeRevisionDescriptors revisions, org.apache.slide.content.NodeRevisionDescriptor revision)
           
 void postStoreContent(org.apache.slide.common.SlideToken slideToken, org.apache.slide.content.NodeRevisionDescriptors revisions, org.apache.slide.content.NodeRevisionDescriptor revision, org.apache.slide.content.NodeRevisionContent content)
           
 void setNamespace(org.apache.slide.common.NamespaceAccessToken nat)
          Sets up the JMS connection.
 void setParameters(Hashtable params)
          Configure the interceptor.
 
Methods inherited from class org.apache.slide.content.AbstractContentInterceptor
getNamespace, getParameter, getParameters, postRetrieveContent, preRemoveContent, preRetrieveContent, preStoreContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSContentInterceptor

public JMSContentInterceptor()
Method Detail

setParameters

public void setParameters(Hashtable params)
Configure the interceptor.

The following parameters are recognized:

Specified by:
setParameters in interface org.apache.slide.content.ContentInterceptor
Overrides:
setParameters in class org.apache.slide.content.AbstractContentInterceptor

setNamespace

public void setNamespace(org.apache.slide.common.NamespaceAccessToken nat)
Sets up the JMS connection.

Specified by:
setNamespace in interface org.apache.slide.content.ContentInterceptor
Overrides:
setNamespace in class org.apache.slide.content.AbstractContentInterceptor

postRemoveContent

public void postRemoveContent(org.apache.slide.common.SlideToken slideToken,
                              org.apache.slide.content.NodeRevisionDescriptors revisions,
                              org.apache.slide.content.NodeRevisionDescriptor revision)
                       throws org.apache.slide.security.AccessDeniedException,
                              org.apache.slide.structure.ObjectNotFoundException,
                              org.apache.slide.structure.LinkedObjectNotFoundException,
                              org.apache.slide.lock.ObjectLockedException,
                              org.apache.slide.common.ServiceAccessException
Specified by:
postRemoveContent in interface org.apache.slide.content.ContentInterceptor
Overrides:
postRemoveContent in class org.apache.slide.content.AbstractContentInterceptor
Throws:
org.apache.slide.security.AccessDeniedException
org.apache.slide.structure.ObjectNotFoundException
org.apache.slide.structure.LinkedObjectNotFoundException
org.apache.slide.lock.ObjectLockedException
org.apache.slide.common.ServiceAccessException

postStoreContent

public void postStoreContent(org.apache.slide.common.SlideToken slideToken,
                             org.apache.slide.content.NodeRevisionDescriptors revisions,
                             org.apache.slide.content.NodeRevisionDescriptor revision,
                             org.apache.slide.content.NodeRevisionContent content)
                      throws org.apache.slide.security.AccessDeniedException,
                             org.apache.slide.structure.ObjectNotFoundException,
                             org.apache.slide.structure.LinkedObjectNotFoundException,
                             org.apache.slide.lock.ObjectLockedException,
                             org.apache.slide.common.ServiceAccessException
Specified by:
postStoreContent in interface org.apache.slide.content.ContentInterceptor
Overrides:
postStoreContent in class org.apache.slide.content.AbstractContentInterceptor
Throws:
org.apache.slide.security.AccessDeniedException
org.apache.slide.structure.ObjectNotFoundException
org.apache.slide.structure.LinkedObjectNotFoundException
org.apache.slide.lock.ObjectLockedException
org.apache.slide.common.ServiceAccessException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.