You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/04/08 14:18:34 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/security TurbineSecurity.java
henning 2003/04/08 05:18:34
Modified: src/java/org/apache/turbine/services/security
TurbineSecurity.java
Log:
facade methods for getUserList(), setUserManager(), getUserManager()
Revision Changes Path
1.16 +31 -1 jakarta-turbine-2/src/java/org/apache/turbine/services/security/TurbineSecurity.java
Index: TurbineSecurity.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/security/TurbineSecurity.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- TurbineSecurity.java 8 Apr 2003 11:24:57 -0000 1.15
+++ TurbineSecurity.java 8 Apr 2003 12:18:34 -0000 1.16
@@ -241,6 +241,16 @@
}
/**
+ * Configure a new user Manager.
+ *
+ * @param userManager An UserManager object
+ */
+ public void setUserManager(UserManager userManager)
+ {
+ getService().setUserManager(userManager);
+ }
+
+ /**
* Check whether a specified user's account exists.
*
* The login name is used for looking up the account.
@@ -325,6 +335,26 @@
throws DataBackendException
{
return getService().getUsers(criteria);
+ }
+
+ /**
+ * Retrieve a set of users that meet the specified criteria.
+ *
+ * As the keys for the criteria, you should use the constants that
+ * are defined in {@link User} interface, plus the names
+ * of the custom attributes you added to your user representation
+ * in the data storage. Use verbatim names of the attributes -
+ * without table name prefix in case of DB implementation.
+ *
+ * @param criteria The criteria of selection.
+ * @return a List of users meeting the criteria.
+ * @throws DataBackendException if there is a problem accessing the
+ * storage.
+ */
+ public static List getUserList(Criteria criteria)
+ throws DataBackendException
+ {
+ return getService().getUserList(criteria);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org