Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.persistence.security.common
Class AclEntryImpl

java.lang.Object
  |
  +--oracle.dss.persistence.security.common.AclEntryImpl
All Implemented Interfaces:
AclEntry, java.lang.Cloneable, java.io.Serializable

public class AclEntryImpl
extends java.lang.Object
implements AclEntry, java.io.Serializable

Entry in an access control list (Acl). Each entry specifies the privilege that a user has.

See Also:
Acl, User, Privilege, Serialized Form

Constructor Summary
AclEntryImpl(User user)
          Constructor that specifies a user.
AclEntryImpl(User user, Privilege privilege)
          Constructor that specifies a user and a privilege.

 

Method Summary
 boolean checkPrivilege(Privilege privilege)
          Indicates whether this AclEntryImpl has the specified Privilege.
 Privilege getPrivilege()
          Retrieves the Privilege that this AclEntryImpl assigns to a user.
 User getUser()
          Retrieves the user for this AclEntryImpl.
 void setPrivilege(Privilege privilege)
          Specifies the Privilege of this AclEntryImpl.
 java.lang.String toString()
          Converts this AclEntryImpl to a String.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

AclEntryImpl

public AclEntryImpl(User user)
Constructor that specifies a user. If you use this constructor, then call the setPrivilege method to set the privilege for the user.

AclEntryImpl

public AclEntryImpl(User user,
Privilege privilege)
Constructor that specifies a user and a privilege.
Method Detail

getUser

public User getUser()
Retrieves the user for this AclEntryImpl.
Specified by:
getUser in interface AclEntry
Returns:
The User for which this AclEntryImpl specifies rights.

setPrivilege

public void setPrivilege(Privilege privilege)
Specifies the Privilege of this AclEntryImpl. The Privilege identifies the rights that the user for this AclEntryImpl has to operate on a context or on its contents.
Specified by:
setPrivilege in interface AclEntry
Parameters:
privilege - The Privilege that specify the rights for the user of this AclEntryImpl.

getPrivilege

public Privilege getPrivilege()
Retrieves the Privilege that this AclEntryImpl assigns to a user.
Specified by:
getPrivilege in interface AclEntry
Returns:
The Privilege that the user for this AclEntryImpl has.

checkPrivilege

public boolean checkPrivilege(Privilege privilege)
Indicates whether this AclEntryImpl has the specified Privilege. This method indicates whether the user in this entry has the access rights that the specified Privilege identifies. The specified Privilege can be equivalent to the Privilege of this entry, or it can be implied by this entry's Privilege. For example, if you pass a Read Privilege to this method, and this entry has Write Privilege, then this method returns true.
Specified by:
checkPrivilege in interface AclEntry
Parameters:
privilege - The Privilege that identifies the access rights that you want to find out about.
Returns:
true if the User for this AclEntryImpl has privilege rights, false if the User does not.

toString

public java.lang.String toString()
Converts this AclEntryImpl to a String. This method returns XML for this AclEntryImpl. The XML looks something like this:
 <ACLEntry>
        <User>Kris</User>
        <Privilege>Write</Privilege>
 </ACLEntry>
Overrides:
toString in class java.lang.Object
Returns:
The String representation of this AclEntryImpl.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.