com.tivoli.pd.jadmin
Class PDProtObject.AccessData
java.lang.Object
|
+--com.tivoli.pd.jadmin.PDProtObject.AccessData
- Enclosing class:
- PDProtObject
- public static class PDProtObject.AccessData
- extends java.lang.Object
This class encapsulates results returned from the
access
and multiAccess
methods.
Method Summary |
int |
getAccessResult()
Returns the access result associated with this AccessData. |
PDAttrs |
getPerminfo()
Returns the permission information, if any, associated with this
AccessData. |
PDMessage |
getResponseInfo()
Returns the response information associated with this
AccessData. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PDProtObject.AccessData
public PDProtObject.AccessData()
- Constructs an empty PDProtObject.AccessData object.
getAccessResult
public int getAccessResult()
throws PDException
- Returns the access result associated with this AccessData. This
indicates whether or not the user has the requested permission.
- Returns:
com.tivoli.pd.jutil.PDStatics.AZN_PERMISSION_ALLOWED
,
if the user has the requested permission(s);
com.tivoli.pd.jutil.PDStatics.AZN_PERMISSION_DENIED
,
if the user does not have the requested permission(s).- Throws:
PDException
- if an error occurs.
This exception may contain error and message codes defined in the
product Error Message Reference document.
getResponseInfo
public PDMessage getResponseInfo()
throws PDException
- Returns the response information associated with this
AccessData. This indicates the overall success or failure of the
authorization call itself. The response information should be
verified as successful before checking the access result.
- Throws:
PDException
- if an error occurs.
This exception may contain error and message codes defined in the
product Error Message Reference document.
getPerminfo
public PDAttrs getPerminfo()
throws PDException
- Returns the permission information, if any, associated with this
AccessData.
- Throws:
PDException
- if an error occurs.
This exception may contain error and message codes defined in the
product Error Message Reference document.
toString
public java.lang.String toString()
- Returns a String representation of this object.
- Overrides:
toString
in class java.lang.Object