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

java.lang.Object
  extended byorg.apache.slide.content.AbstractContentInterceptor
      extended byorg.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:


setNamespace

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


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
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
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-2005 The Apache Software Foundation. All Rights Reserved.