You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2004/06/01 20:00:31 UTC
svn commit: rev 20740 - incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/permission
Author: akarasulu
Date: Tue Jun 1 11:00:30 2004
New Revision: 20740
Modified:
incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/permission/JeBitPermissionDAO.java
Log:
formatting
Modified: incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/permission/JeBitPermissionDAO.java
==============================================================================
--- incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/permission/JeBitPermissionDAO.java (original)
+++ incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/permission/JeBitPermissionDAO.java Tue Jun 1 11:00:30 2004
@@ -40,7 +40,8 @@
/**
* A JE Database BitPermission data access object.
*
- * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory
+ * Project</a>
* @version $Rev$
*/
public class JeBitPermissionDAO implements BitPermissionDAO
@@ -101,7 +102,8 @@
secdbs = this.db.getSecondaryDatabases() ;
for ( int ii = 0; ii < secdbs.size(); ii++ )
{
- SecondaryDatabase secdb = ( SecondaryDatabase ) secdbs.get( ii ) ;
+ SecondaryDatabase secdb =
+ ( SecondaryDatabase ) secdbs.get( ii ) ;
if ( secdb.getDatabaseName().equals( APP_SECDB ) )
{
byAppName = secdb ;
@@ -209,7 +211,8 @@
{
if ( e.getStatus() == OperationStatus.NOTFOUND )
{
- monitor.permissionDoesNotExist( this, "delete", appName, name ) ;
+ monitor.permissionDoesNotExist( this, "delete", appName,
+ name ) ;
}
throw e ;
@@ -264,7 +267,8 @@
* permission with the new name already exists, or the application
* itself does not exist
*/
- public void rename( String appName, String name, String newName ) throws RmsException
+ public void rename( String appName, String name, String newName )
+ throws RmsException
{
if ( hasRow( appName, newName ) )
{
@@ -285,7 +289,8 @@
{
if ( e.getStatus() == OperationStatus.NOTFOUND )
{
- monitor.permissionDoesNotExist( this, "rename", appName, name ) ;
+ monitor.permissionDoesNotExist( this, "rename", appName,
+ name ) ;
}
throw e ;
@@ -340,7 +345,8 @@
* the backing store or the permission does not exist, or the application
* itself does not exist
*/
- public BitPermission getPermission( String appName, String name ) throws RmsException
+ public BitPermission getPermission( String appName, String name )
+ throws RmsException
{
BitPermission perm = null ;
DatabaseEntry entry = null ;
@@ -397,7 +403,8 @@
{
if ( e.getStatus() == OperationStatus.NOTFOUND )
{
- monitor.permissionDoesNotExist( this, "getIndex", appName, name ) ;
+ monitor.permissionDoesNotExist( this, "getIndex",
+ appName, name ) ;
}
throw e ;
@@ -463,7 +470,8 @@
* the backing store or a permission at the specified index does not
* exist for the application, or the application itself does not exist
*/
- public BitPermission getPermission( String appName, int index ) throws RmsException
+ public BitPermission getPermission( String appName, int index )
+ throws RmsException
{
BitPermission perm = null ;
DatabaseEntry value = null ;
@@ -476,7 +484,8 @@
{
if ( e.getStatus() == OperationStatus.NOTFOUND )
{
- monitor.permissionDoesNotExist( this, "getIndex", appName, index ) ;
+ monitor.permissionDoesNotExist( this, "getIndex", appName,
+ index ) ;
}
throw e ;
@@ -557,7 +566,8 @@
/**
- * Gets the key or value of an entry within the primary bit permission database.
+ * Gets the key or value of an entry within the primary bit permission
+ * database.
*
* @param appName the name of the application
* @param name the name of the permission
@@ -566,7 +576,8 @@
* @throws RmsException if there are failures accessing the underlying JE
* databases, or the application and/or the permission name does not exist
*/
- DatabaseEntry getRow( String appName, String name, boolean getKey ) throws RmsException
+ DatabaseEntry getRow( String appName, String name, boolean getKey )
+ throws RmsException
{
DatabaseEntry key = new DatabaseEntry() ;
DatabaseEntry value = new DatabaseEntry() ;
@@ -735,7 +746,8 @@
/**
- * Gets the key or value of an entry within the primary bit permission database.
+ * Gets the key or value of an entry within the primary bit permission
+ * database.
*
* @param appName the name of the application
* @param index the index of the permission
@@ -744,7 +756,8 @@
* @throws RmsException if there are failures accessing the underlying JE
* databases, or the application and/or the permission name does not exist
*/
- DatabaseEntry getRow( String appName, int index, boolean getKey ) throws RmsException
+ DatabaseEntry getRow( String appName, int index, boolean getKey )
+ throws RmsException
{
DatabaseEntry key = new DatabaseEntry() ;
DatabaseEntry value = new DatabaseEntry() ;
@@ -837,7 +850,8 @@
/**
- * Gets the key or value of an entry within the primary bit permission database.
+ * Gets the key or value of an entry within the primary bit permission
+ * database.
*
* @param appName the name of the application
* @param index the index of the permission
@@ -1020,7 +1034,8 @@
OperationStatus status = null ;
- JeAppPermIterator( String appName, boolean onlyNames ) throws RmsException
+ JeAppPermIterator( String appName, boolean onlyNames )
+ throws RmsException
{
this.fullScan = false ;
this.appName = appName ;