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 re...@locus.apache.org on 2000/09/26 05:08:37 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/lock Lock.java

remm        00/09/25 20:08:37

  Modified:    src/share/org/apache/slide/lock Lock.java
  Log:
  - Removed some useless throws declarations in the Lock interface
  
  Revision  Changes    Path
  1.5       +8 -32     jakarta-slide/src/share/org/apache/slide/lock/Lock.java
  
  Index: Lock.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/lock/Lock.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Lock.java	2000/09/26 02:44:16	1.4
  +++ Lock.java	2000/09/26 03:08:36	1.5
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/lock/Lock.java,v 1.4 2000/09/26 02:44:16 remm Exp $
  - * $Revision: 1.4 $
  - * $Date: 2000/09/26 02:44:16 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/lock/Lock.java,v 1.5 2000/09/26 03:08:36 remm Exp $
  + * $Revision: 1.5 $
  + * $Date: 2000/09/26 03:08:36 $
    *
    * ====================================================================
    *
  @@ -78,7 +78,7 @@
    * Lock helper class.
    * 
    * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    */
   public interface Lock {
       
  @@ -239,13 +239,9 @@
        * @param action Action to test
        * @exception ObjectLockedException Can't perform specified action 
        * on object
  -     * @exception ServiceConnectionFailedException Connection to Lock Store 
  -     * service failed
        * @exception ServiceAccessException Low level service access exception
        * @exception ObjectNotFoundException One of the objects referenced 
        * in the lock token were not found
  -     * @exception LinkedObjectNotFoundException Broken link encountered 
  -     * during object retrieval
        */
       void checkLock(CredentialsToken credentialsToken, ObjectNode object, 
                      ActionNode action)
  @@ -262,18 +258,13 @@
        * @param action Action to test
        * @exception ObjectLockedException Can't perform specified action 
        * on object
  -     * @exception ServiceConnectionFailedException Connection to Lock Store 
  -     * service failed
        * @exception ServiceAccessException Low level service access exception
        * @exception ObjectNotFoundException One of the objects referenced 
        * in the lock token were not found
  -     * @exception LinkedObjectNotFoundException Broken link encountered 
  -     * during object retrieval
        */
       void checkLock(CredentialsToken credentialsToken, ObjectNode subject, 
                      SubjectNode user, ActionNode action)
  -        throws ServiceConnectionFailedException, ServiceAccessException, 
  -        ObjectNotFoundException, LinkedObjectNotFoundException, 
  +        throws ServiceAccessException, ObjectNotFoundException, 
           ObjectLockedException;
       
       
  @@ -285,18 +276,13 @@
        * @param user User to test
        * @param action Locked for action
        * @return boolean True if the subject is locked
  -     * @exception ServiceConnectionFailedException Connection to Lock Store 
  -     * service failed
        * @exception ServiceAccessException Low level service access exception
        * @exception ObjectNotFoundException One of the objects referenced 
        * in the lock token were not found
  -     * @exception LinkedObjectNotFoundException Broken link encountered 
  -     * during object retrieval
        */
       boolean isLocked(CredentialsToken credentialsToken, ObjectNode subject, 
                        SubjectNode user, ActionNode action, boolean tryToLock)
  -        throws ServiceConnectionFailedException, ServiceAccessException, 
  -        ObjectNotFoundException, LinkedObjectNotFoundException;
  +        throws ServiceAccessException, ObjectNotFoundException;
       
       
       /**
  @@ -312,19 +298,14 @@
        * @param tryToLock True if the check is intended to check whether 
        * or not we can put a new lock
        * @return boolean True if the subject is locked
  -     * @exception ServiceConnectionFailedException Connection to Lock Store 
  -     * service failed
        * @exception ServiceAccessException Low level service access exception
        * @exception ObjectNotFoundException One of the objects referenced in 
        * the lock token were not found
  -     * @exception LinkedObjectNotFoundException Broken link encountered 
  -     * during object retrieval
        */
       boolean isLocked(CredentialsToken credentialsToken, ObjectNode subject, 
                        SubjectNode user, ActionNode action, boolean inheritance,
                        boolean tryToLock)
  -        throws ServiceConnectionFailedException, ServiceAccessException, 
  -        ObjectNotFoundException, LinkedObjectNotFoundException;
  +        throws ServiceAccessException, ObjectNotFoundException;
       
       
       /**
  @@ -332,17 +313,12 @@
        * 
        * @param token Lock token to test
        * @return boolean True if locked
  -     * @exception ServiceConnectionFailedException Connection to Lock Store 
  -     * service failed
        * @exception ServiceAccessException Low level service access exception
        * @exception ObjectNotFoundException One of the objects referenced 
        * in the lock token were not found
  -     * @exception LinkedObjectNotFoundException Broken link encountered 
  -     * during object retrieval
        */
       boolean isLocked(CredentialsToken credentialsToken, NodeLock token, 
                        boolean tryToLock)
  -        throws ServiceConnectionFailedException, ServiceAccessException, 
  -        ObjectNotFoundException, LinkedObjectNotFoundException;
  +        throws ServiceAccessException, ObjectNotFoundException;
       
   }