Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class DKCommonPrivilege

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.DKCommonPrivilege
All Implemented Interfaces:
DKConstant, DKMessageId, java.io.Serializable

public class DKCommonPrivilege
extends java.lang.Object
implements DKConstant, DKMessageId, java.io.Serializable

This class is an implementation in support of federated access control.

IBM Confidential

EIP Version 6.1 - 5697-G29 and 5648-D03
(C)Copyright IBM Corp. 2000. All Rights Reserved


See Also:
Serialized Form

Fields inherited from interface com.ibm.mm.sdk.common.DKConstant
    For details, see the class or interface
 
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId
    For details, see the class or interface
 
Constructor Summary
DKCommonPrivilege()
          Constructs default Federated Privilege
 
Method Summary
 short checkAuthorization(int index)
          Returns the authority of the specified privilege
 boolean hasAdminPrivilege()
          Checks for admin privileges in this common privilege object.
 void setAuthorization(int index, short authority)
          Sets authority of a specific privilege.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DKCommonPrivilege

public DKCommonPrivilege()
Constructs default Federated Privilege
Method Detail

checkAuthorization

public short checkAuthorization(int index)
                         throws DKException
Returns the authority of the specified privilege
Parameters:
index - int
Returns:
authority short

setAuthorization

public void setAuthorization(int index,
                             short authority)
                      throws DKException
Sets authority of a specific privilege.
Parameters:
index - int
authority - short

hasAdminPrivilege

public boolean hasAdminPrivilege()
Checks for admin privileges in this common privilege object. If there is any admin privileges, return true, if there is none, return false.

EIP Java APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.