[geeklog-cvs] geeklog-2/lib/A_and_A/client Invoker.class.php,1.1,1.2
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Fri Jul 11 16:11:20 EDT 2003
Update of /usr/cvs/geeklog/geeklog-2/lib/A_and_A/client
In directory internal.geeklog.net:/tmp/cvs-serv28248
Modified Files:
Invoker.class.php
Log Message:
Migrated to PHP5, uses abstract features.
Index: Invoker.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-2/lib/A_and_A/client/Invoker.class.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Invoker.class.php 16 May 2003 21:45:10 -0000 1.1
--- Invoker.class.php 11 Jul 2003 20:11:17 -0000 1.2
***************
*** 1,36 ****
<?php
! class AAInvoker {
! function &authenticate($appId, $userName, $password)
! {
! }
! function changePassword($appId, $userName, $password, $newPassword)
! {
! }
! function changePasswordByAdmin($appId, $adminUserName, $adminPassword, $userName, $newPassword)
! {
! }
! function resetPassword($appId, $adminUserName, $adminPassword, $userName)
! {
! }
! function getUserPrivileges($appId, $adminUserId, $adminPassword, $userId)
! {
! }
! function setUserPrivileges($appId, $adminUserId, $adminPassword, $userId, $privArray)
! {
! }
! function listAppPrivileges($appId, $adminUserName, $adminPassword)
! {
! }
! function listAppGroups($appId, $adminUserName, $adminPassword)
! {
! }
}
--- 1,165 ----
<?php
! /* Reminder: always indent with 4 spaces (no tabs). */
! /**
! * Enterprise Authentication & Authorization Service (A&A)
! *
! * The license for this software is yet to be determined. In the meantime,
! * all rights are reserved. Use of this software is not permitted without
! * the expressed written consent of Tony Bibbs
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @copyright Tony Bibbs 2003
! * @version $Id$
! *
! */
!
! /**
! * This is an abstract invoker class that allows applications to make requests
! * from A&A in a variety of ways (i.e. localhost, XML-RPC, SOAP, etc)
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @package net.geeklog.enterprise.aa.client
! *
! */
! abstract class Invoker implements AAServiceInterface {
! /**
! * Authenticates a user against the service
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to authenticate against
! * @param string $userName User to authenticate
! * @param string $userPass Password to use
! *
! */
! abstract public function &authenticate($appId, $userName, $userPass);
! /**
! * Changes a user's password
! *
! * @author Tony Bibbs tony at geeklog.net
! * @access public
! * @param string $appId Application to operate against
! * @param string $userName User to change password for
! * @param string $userPass Old password
! * @param string $newPass New password
! *
! */
! abstract public function changePassword($appId, $userName, $userPass, $newPass);
! /**
! * Allows an administrator to change another user's password
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to operate against
! * @param string $adminUserName Admin who is performing password change
! * @param string $adminPass Password for the admin
! * @param string $userName User to change password for
! * @param string $newPass New password for given user
! *
! */
! abstract public function changePasswordByAdmin($appId, $adminUserName, $adminPass, $userName, $newPass);
! /**
! * Allows an admin to reset a user's password
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to operate against
! * @param string $adminUserName Admin who is performing the password reset
! * @param string $adminPass Password for admin
! * @param string $userName User to reset password for
! *
! */
! abstract public function resetPassword($appId, $adminUserName, $adminPass, $userName);
! /**
! * Gets the application privileges for a given user
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to get privileges from
! * @param string $adminUserName Admin's username
! * @param string $adminPass Password for admin
! * @param string $userName User to get application privileges for
! *
! */
! abstract public function getUserPrivileges($appId, $adminUserName, $adminPass, $userName);
! /**
! * Gets the security groups a user belongs to
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to operate against
! * @param string $adminUserName The admin's username
! * @param string $adminPass The admin's password
! * @param string $userName User to get security groups for
! *
! */
! abstract public function getUserGroups($appId, $adminUserName, $adminPass, $userName);
! /**
! * Sets application privileges for the specified user
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to operate against
! * @param string $adminUserName Administrator's username
! * @param string $adminPass Password for the administrator
! * @param string $userName User to set application privileges for
! * @param array $privArray Array of privileges
! *
! */
! abstract public function setUserPrivileges($appId, $adminUserName, $adminPass, $userName, $privArray);
! /**
! * Retrieves all existing privileges for a given application
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to get privileges for
! * @param string $adminUserName Username for the administrator
! * @param string $adminPass Administrator's password
! * @param boolean $doAuthentication Indicates if we should authenticate the administrator first
! *
! */
! abstract public function listAppPrivileges($appId, $adminUserName, $adminPass);
!
! /**
! * Retrieves all existing security groups for a given application
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to get security groups for
! * @param string $adminUserName Username for the administrator
! * @param string $adminPass Administrator's password
! *
! */
! abstract public function listAppGroups($appId, $adminUserName, $adminPass);
!
! /**
! * Gets the privileges for a given user and application
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId ID to operate against
! * @param string $userName User to get privileges for
! *
! */
! abstract public function getPrivileges($appId, $userName);
!
! /**
! * Gets the security groups for a given user and application
! *
! * @author Tony Bibbs <tony at geeklog.net>
! * @access public
! * @param string $appId Application to operate against
! * @param string $userName User to get security groups for.
! *
! */
! abstract public function getGroups($appId, $userName);
}
More information about the geeklog-cvs
mailing list