|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.persistence.security.common.AclEntryImpl
Entry in an access control list (Acl). Each entry specifies the privilege that a user has.
Acl
, User
, Privilege
, Serialized FormConstructor 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 |
public AclEntryImpl(User user)
setPrivilege
method to set the privilege for the user.public AclEntryImpl(User user, Privilege privilege)
Method Detail |
public User getUser()
AclEntryImpl
.getUser
in interface AclEntry
User
for which this AclEntryImpl
specifies rights.public void setPrivilege(Privilege privilege)
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.setPrivilege
in interface AclEntry
privilege
- The Privilege
that specify the rights for the user of this AclEntryImpl
.public Privilege getPrivilege()
Privilege
that this AclEntryImpl
assigns to a user.getPrivilege
in interface AclEntry
Privilege
that the user for this AclEntryImpl
has.public boolean checkPrivilege(Privilege privilege)
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
.checkPrivilege
in interface AclEntry
privilege
- The Privilege
that identifies the access rights that you want to find out about.true
if the User
for this AclEntryImpl
has privilege
rights, false
if the User
does not.public java.lang.String toString()
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>
toString
in class java.lang.Object
String
representation of this AclEntryImpl
.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |