You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by an...@apache.org on 2008/04/24 10:08:16 UTC
svn commit: r651189 -
/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Author: angela
Date: Thu Apr 24 01:08:13 2008
New Revision: 651189
URL: http://svn.apache.org/viewvc?rev=651189&view=rev
Log:
AccessManager: improve javadoc and consistency of method declaration (throw clause)
Modified:
jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java?rev=651189&r1=651188&r2=651189&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java Thu Apr 24 01:08:13 2008
@@ -127,8 +127,7 @@
* @throws RepositoryException is never thrown
*/
public void checkPermission(ItemId id, int permissions)
- throws AccessDeniedException, ItemNotFoundException,
- RepositoryException {
+ throws AccessDeniedException, RepositoryException {
// allow everything
}
@@ -139,8 +138,7 @@
* @throws ItemNotFoundException is never thrown
* @throws RepositoryException is never thrown
*/
- public boolean isGranted(ItemId id, int permissions)
- throws ItemNotFoundException, RepositoryException {
+ public boolean isGranted(ItemId id, int permissions) throws RepositoryException {
// allow everything
return true;
}
@@ -160,7 +158,7 @@
*
* @see AccessManager#isGranted(Path, Name, int)
*/
- public boolean isGranted(Path parentPath, Name childName, int permissions) throws ItemNotFoundException, RepositoryException {
+ public boolean isGranted(Path parentPath, Name childName, int permissions) throws RepositoryException {
// allow everything
return true;
}
@@ -171,7 +169,7 @@
* @see AccessManager#canRead(Path)
* @param itemPath
*/
- public boolean canRead(Path itemPath) throws ItemNotFoundException, RepositoryException {
+ public boolean canRead(Path itemPath) throws RepositoryException {
return true;
}
@@ -182,8 +180,7 @@
* @throws NoSuchWorkspaceException is never thrown
* @throws RepositoryException is never thrown
*/
- public boolean canAccess(String workspaceName)
- throws NoSuchWorkspaceException, RepositoryException {
+ public boolean canAccess(String workspaceName) throws RepositoryException {
return true;
}
}