[geeklog-cvs] Auth_Enterprise/Client AEUser.class.php,1.4,1.5
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Mon Jun 21 01:03:14 EDT 2004
Update of /var/cvs/Auth_Enterprise/Client
In directory www:/tmp/cvs-serv4860
Modified Files:
AEUser.class.php
Log Message:
Now throws exceptions back to the calling application
Index: AEUser.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Client/AEUser.class.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AEUser.class.php 19 Jun 2004 20:45:33 -0000 1.4
--- AEUser.class.php 21 Jun 2004 05:03:10 -0000 1.5
***************
*** 17,20 ****
--- 17,25 ----
/**
+ * Auth_Enterprise exceptions
+ */
+ require_once 'Auth_Enterprise/Common/AEExceptions.php';
+
+ /**
* The Auth_Enterprise Group object
*/
***************
*** 22,25 ****
--- 27,35 ----
/**
+ * The Auth_Enterprise Privilege object
+ */
+ require_once 'Auth_Enterprise/Common/AEPrivilege.class.php';
+
+ /**
* Auth_Enteprise User object
*
***************
*** 207,210 ****
--- 217,228 ----
}
+ /**
+ * Sets the groups the user belongs to
+ *
+ * @author Tony Bibbs <tony at geeklog.net>
+ * @access public
+ * @param array Groups to set on user
+ *
+ */
public function setGroups($groupArray)
{
***************
*** 225,230 ****
try {
$this->clientProvider->changePassword($this->userName, $newPassword);
! } catch (Exception $error) {
! die($error->getMessage());
}
--- 243,248 ----
try {
$this->clientProvider->changePassword($this->userName, $newPassword);
! } catch (AEBaseAEBaseException $error) {
! throw $error;
}
***************
*** 248,253 ****
try {
$this->clientProvider->changePasswordByAdmin($this->userName, $this->password, $userName, $newPassword);
! } catch (Exception $error) {
! die($error->getMessage());
}
}
--- 266,271 ----
try {
$this->clientProvider->changePasswordByAdmin($this->userName, $this->password, $userName, $newPassword);
! } catch (AEBaseException $error) {
! throw $error;
}
}
***************
*** 265,270 ****
try {
$newPassword = $this->clientProvider->resetPassword($this->userName);
! } catch (Exception $error) {
! die($error->getMessage());
}
--- 283,288 ----
try {
$newPassword = $this->clientProvider->resetPassword($this->userName);
! } catch (AEBaseException $error) {
! throw $error;
}
***************
*** 287,292 ****
try {
$privArray = $this->clientProvider->getUserPrivilegesByAdmin($this->userName, $this->password, $userName);
! } catch (Exception $error) {
! die($error->getMessage());
}
return $privArray;
--- 305,310 ----
try {
$privArray = $this->clientProvider->getUserPrivilegesByAdmin($this->userName, $this->password, $userName);
! } catch (AEBaseException $error) {
! throw $error;
}
return $privArray;
***************
*** 307,312 ****
try {
$this->clientProvider->setUserPrivilegesByAdmin($this->userName, $this->password, $userName, $privArray);
! } catch (Exception $error) {
! die($error->getMessage());
}
}
--- 325,330 ----
try {
$this->clientProvider->setUserPrivilegesByAdmin($this->userName, $this->password, $userName, $privArray);
! } catch (AEBaseException $error) {
! throw $error;
}
}
***************
*** 324,329 ****
try {
return $this->clientProvider->listAppPrivilegesByAdmin($this->userName, $this->password);
! } catch (Exception $error) {
! die($error->getMessage());
}
}
--- 342,347 ----
try {
return $this->clientProvider->listAppPrivilegesByAdmin($this->userName, $this->password);
! } catch (AEBaseException $error) {
! throw $error;
}
}
***************
*** 342,347 ****
try {
return $this->clientProvider->getUserGroupsByAdmin($this->userName, $this->password, $userName);
! } catch (Exception $e) {
! die($e->getMessage());
}
}
--- 360,365 ----
try {
return $this->clientProvider->getUserGroupsByAdmin($this->userName, $this->password, $userName);
! } catch (AEBaseException $error) {
! throw $error;
}
}
***************
*** 361,366 ****
try {
$this->clientProvider->setUserGroupsByAdmin($this->userName, $this->password, $userName, $groupArray);
! } catch (Exception $error) {
! die($error->getMessage());
}
}
--- 379,384 ----
try {
$this->clientProvider->setUserGroupsByAdmin($this->userName, $this->password, $userName, $groupArray);
! } catch (AEBaseException $error) {
! throw $error;
}
}
***************
*** 385,390 ****
return false;
}
-
-
}
?>
\ No newline at end of file
--- 403,407 ----
return false;
}
}
+
?>
\ No newline at end of file
More information about the geeklog-cvs
mailing list