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/04/30 06:15:11 UTC
svn commit: rev 10441 - incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/profile
Author: akarasulu
Date: Thu Apr 29 21:15:10 2004
New Revision: 10441
Modified:
incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/profile/JeProfileDAO.java
Log:
just a stub for the JeProfileDAO
Modified: incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/profile/JeProfileDAO.java
==============================================================================
--- incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/profile/JeProfileDAO.java (original)
+++ incubator/directory/rms/trunk/je/src/java/org/apache/rms/je/profile/JeProfileDAO.java Thu Apr 29 21:15:10 2004
@@ -17,6 +17,15 @@
package org.apache.rms.je.profile ;
+import org.apache.rms.Profile ;
+import org.apache.rms.Application ;
+import org.apache.rms.RmsException ;
+
+import org.apache.commons.lang.NotImplementedException ;
+
+import java.util.Iterator ;
+
+
/**
* Je database based Profile data access object implementation.
*
@@ -25,4 +34,99 @@
*/
public class JeProfileDAO implements ProfileDAO
{
+ /**
+ * Creates a new Profile without any grants, denials, or Roles.
+ *
+ * @param appName the name of the profile's application
+ * @param userName the name of the profile's user
+ * @throws org.apache.rms.RmsException if there is a failure accessing the
+ * underlying database or a profile for the application and user already
+ * exists
+ */
+ public void create( String appName, String userName ) throws RmsException
+ {
+ throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /**
+ * Deletes a profile within the database.
+ *
+ * @param appName the name of the profile's application
+ * @param userName the name of the profile's user
+ * @throws org.apache.rms.RmsException if there is a failure accessing the
+ * underlying database or a profile for the application or user does not
+ * exist
+ */
+ public void delete( String appName, String userName ) throws RmsException
+ {
+ throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /**
+ * Gets a profile from the database.
+ *
+ * @param application the name of the profile's application
+ * @param userName the name of the profile's user
+ * @return the Profile object restored from the database
+ * @throws org.apache.rms.RmsException if there is a failure accessing the
+ * underlying database or a profile for the application or user does not
+ * exist
+ */
+ public Profile get( Application application, String userName )
+ throws RmsException
+ {
+ throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /**
+ * Gets an iterator over the set of user names of profiles that exist for
+ * an application.
+ *
+ * @param appName the name of the profile's application
+ * @return an Iterator with zero or more Strings of user names
+ * @throws org.apache.rms.RmsException if there is a failure accessing the
+ * underlying database
+ */
+ public Iterator listUserNames( String appName ) throws RmsException
+ {
+ throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /**
+ * Gets an iterator over the set of application names of profiles that
+ * exist for a user.
+ *
+ * @param userName the name of the profile's user
+ * @return an Iterator with zero or more Strings of application names
+ * @throws org.apache.rms.RmsException if there is a failure accessing
+ * the underlying database
+ */
+ public Iterator listApplicationNames( String userName )
+ throws RmsException
+ {
+ throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /**
+ * Updates a profile's grants and denials and effective permissions of a
+ * user's application profile.
+ *
+ * @param appName the name of the profile's application
+ * @param userName the name of the profile's user
+ * @param grants the profile's permission grants bit vector
+ * @param denials the profile's permission denials bit vector
+ * @param permissions the profile's effective permissions bit vector
+ * @throws org.apache.rms.RmsException
+ */
+ public void update( String appName, String userName, byte[] grants,
+ byte[] denials, byte[] permissions )
+ throws RmsException
+ {
+ throw new NotImplementedException( "STUB" ) ;
+ }
}