You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by cm...@apache.org on 2002/04/20 17:58:36 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/content AbstractContentInterceptor.java ContentInterceptor.java
cmlenz 02/04/20 08:58:36
Modified: src/share/org/apache/slide/content Tag: SLIDE_1_0
AbstractContentInterceptor.java
ContentInterceptor.java
Log:
- Add methods preRetrieveContent(), preRemoveContent() and
postRemoveContent()
Revision Changes Path
No revision
No revision
1.1.2.2 +40 -0 jakarta-slide/src/share/org/apache/slide/content/Attic/AbstractContentInterceptor.java
Index: AbstractContentInterceptor.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/Attic/AbstractContentInterceptor.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- AbstractContentInterceptor.java 20 Apr 2002 15:50:12 -0000 1.1.2.1
+++ AbstractContentInterceptor.java 20 Apr 2002 15:58:36 -0000 1.1.2.2
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/Attic/AbstractContentInterceptor.java,v 1.1.2.1 2002/04/20 15:50:12 cmlenz Exp $
- * $Revision: 1.1.2.1 $
- * $Date: 2002/04/20 15:50:12 $
+ * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/Attic/AbstractContentInterceptor.java,v 1.1.2.2 2002/04/20 15:58:36 cmlenz Exp $
+ * $Revision: 1.1.2.2 $
+ * $Date: 2002/04/20 15:58:36 $
*
* ====================================================================
*
@@ -152,10 +152,50 @@
/**
* Does nothing.
*/
+ public void preRetrieveContent
+ (SlideToken token, NodeRevisionDescriptors revisionDescriptors,
+ NodeRevisionNumber revisionNumber,
+ NodeRevisionDescriptor revisionDescriptor)
+ throws AccessDeniedException, ObjectNotFoundException,
+ LinkedObjectNotFoundException, ObjectLockedException,
+ ServiceAccessException {
+
+ }
+
+
+ /**
+ * Does nothing.
+ */
public void postRetrieveContent
(SlideToken token, NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor,
NodeRevisionContent revisionContent)
+ throws AccessDeniedException, ObjectNotFoundException,
+ LinkedObjectNotFoundException, ObjectLockedException,
+ ServiceAccessException {
+
+ }
+
+
+ /**
+ * Does nothing.
+ */
+ public void preRemoveContent
+ (SlideToken token, NodeRevisionDescriptors revisionDescriptors,
+ NodeRevisionDescriptor revisionDescriptor)
+ throws AccessDeniedException, ObjectNotFoundException,
+ LinkedObjectNotFoundException, ObjectLockedException,
+ ServiceAccessException {
+
+ }
+
+
+ /**
+ * Does nothing.
+ */
+ public void postRemoveContent
+ (SlideToken token, NodeRevisionDescriptors revisionDescriptors,
+ NodeRevisionDescriptor revisionDescriptor)
throws AccessDeniedException, ObjectNotFoundException,
LinkedObjectNotFoundException, ObjectLockedException,
ServiceAccessException {
1.3.2.3 +88 -0 jakarta-slide/src/share/org/apache/slide/content/ContentInterceptor.java
Index: ContentInterceptor.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/ContentInterceptor.java,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -u -r1.3.2.2 -r1.3.2.3
--- ContentInterceptor.java 20 Apr 2002 15:27:15 -0000 1.3.2.2
+++ ContentInterceptor.java 20 Apr 2002 15:58:36 -0000 1.3.2.3
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/ContentInterceptor.java,v 1.3.2.2 2002/04/20 15:27:15 cmlenz Exp $
- * $Revision: 1.3.2.2 $
- * $Date: 2002/04/20 15:27:15 $
+ * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/ContentInterceptor.java,v 1.3.2.3 2002/04/20 15:58:36 cmlenz Exp $
+ * $Revision: 1.3.2.3 $
+ * $Date: 2002/04/20 15:58:36 $
*
* ====================================================================
*
@@ -187,6 +187,38 @@
/**
+ * This method will be called just before content is retrieved, or the
+ * descriptor of a particular revision is retrieved.
+ *
+ * @param token the SlideToken
+ * @param revisionDescriptors revision tree of the descriptor that
+ * should be retrieved, or <code>null</code>
+ * if the content should be retrieved
+ * @param revisionNumber revision number of the descriptor that
+ * should be retrieved, or <code>null</code>
+ * if the content should be retrieved
+ * @param revisionDescriptor revision descriptor of the content that
+ * should be retrieved, or <code>null</code>
+ * if the descriptor will be retrieved
+ * @throws AccessDeniedException if access to a resource has
+ * been denied
+ * @throws ObjectNotFoundException if an object could not be found
+ * @throws LinkedObjectNotFoundException if an object linked to by
+ * another object could not be
+ * found
+ * @throws ObjectLockedException if an object is locked
+ * @throws ServiceAccessException low-level service failure
+ */
+ public void preRetrieveContent
+ (SlideToken token, NodeRevisionDescriptors revisionDescriptors,
+ NodeRevisionNumber revisionNumber,
+ NodeRevisionDescriptor revisionDescriptor)
+ throws AccessDeniedException, ObjectNotFoundException,
+ LinkedObjectNotFoundException, ObjectLockedException,
+ ServiceAccessException;
+
+
+ /**
* This method will be called just after retrieving content, or the
* descriptor of a particular revision.
*
@@ -213,6 +245,62 @@
(SlideToken token, NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor,
NodeRevisionContent revisionContent)
+ throws AccessDeniedException, ObjectNotFoundException,
+ LinkedObjectNotFoundException, ObjectLockedException,
+ ServiceAccessException;
+
+
+ /**
+ * This method will be called just before content will get removed, either
+ * of all revisions of a node, or of only one particular revision.
+ *
+ * @param token the SlideToken
+ * @param revisionDescriptors revision tree of the content that will be
+ * removed, or <code>null</code> if a only a
+ * particular revision should be removed
+ * @param revisionDescriptor revision descriptor of the content that
+ * will be removed, or <code>null</code> if
+ * all revisions of a node should be removed
+ * @throws AccessDeniedException if access to a resource has
+ * been denied
+ * @throws ObjectNotFoundException if an object could not be found
+ * @throws LinkedObjectNotFoundException if an object linked to by
+ * another object could not be
+ * found
+ * @throws ObjectLockedException if an object is locked
+ * @throws ServiceAccessException low-level service failure
+ */
+ public void preRemoveContent
+ (SlideToken token, NodeRevisionDescriptors revisionDescriptors,
+ NodeRevisionDescriptor revisionDescriptor)
+ throws AccessDeniedException, ObjectNotFoundException,
+ LinkedObjectNotFoundException, ObjectLockedException,
+ ServiceAccessException;
+
+
+ /**
+ * This method will be called just after content has been removed, either
+ * of all revisions of a node, or of only one particular revision.
+ *
+ * @param token the SlideToken
+ * @param revisionDescriptors revision tree of the content that has been
+ * removed, or <code>null</code> if a only a
+ * particular revision has been removed
+ * @param revisionDescriptor revision descriptor of the content that
+ * has been removed, or <code>null</code> if
+ * all revisions of a node have been removed
+ * @throws AccessDeniedException if access to a resource has
+ * been denied
+ * @throws ObjectNotFoundException if an object could not be found
+ * @throws LinkedObjectNotFoundException if an object linked to by
+ * another object could not be
+ * found
+ * @throws ObjectLockedException if an object is locked
+ * @throws ServiceAccessException low-level service failure
+ */
+ public void postRemoveContent
+ (SlideToken token, NodeRevisionDescriptors revisionDescriptors,
+ NodeRevisionDescriptor revisionDescriptor)
throws AccessDeniedException, ObjectNotFoundException,
LinkedObjectNotFoundException, ObjectLockedException,
ServiceAccessException;
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>