|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods required for an access control list for a PersistenceManager
. You use the methods in this interface to find information about the users of the associated PersistenceManager
and information about the privileges that those users have. You also use the methods in this interface to set privileges for users. In order to manipulate privileges in the access control list, you must have full control privileges to the folder.
To get access to the AclObject
for a PersistenceManager
, call the getAcl
method of the PersistenceManager
. Then downcast the returned Acl
to an AclObject
.
User
, Privilege
, Acl
, AclEntry
, AclObject
, PersistenceManager
, PersistenceManagerImpl.getAcl()
Method Summary | |
boolean |
checkPrivilege(Privilege privilege) Indicates whether the caller has the specified Privilege . |
boolean |
checkUserPrivilege(User user, Privilege privilege) Indicates whether a user has the specified Privilege . |
Privilege |
getUserPrivilege(User user) Retrieves the highest privilege that a user has, either as an individual user or as a member of a group. |
Methods inherited from interface oracle.dss.bicontext.Acl |
addEntries, entries, getPrivilege, removeEntries |
Methods inherited from interface oracle.jbo.ComponentObject |
getDefFullName, getDefName, getFullName, getName, remove |
Methods inherited from interface oracle.jbo.Properties |
getProperties, getProperty, refreshProperty |
Method Detail |
public boolean checkPrivilege(Privilege privilege) throws javax.naming.NamingException
Privilege
. The specified Privilege
can be equivalent to the Privilege
of this AclObject
, or it can be implied by the Privilege
of this AclObject
. For example, if you pass a Read Privilege
to this method, and you have Write Privilege
, then this method returns true
.
You might call this method to make sure that you have full control before you call the addEntries
method, for example.
privilege
- The Privilege
that identifies the access rights that you want to find out about.true
if the caller has privilege
rights, false
if the caller does not.BINoPermissonException
- If the caller does not have sufficient privilege to check privileges.BINamingException
- If any other naming exception occurs.public boolean checkUserPrivilege(User user, Privilege privilege) throws javax.naming.NamingException
Privilege
. This method indicates whether the specified user has the access rights that the specified Privilege
identifies. The specified Privilege
can be equivalent to the Privilege
of this AclObject
, or it can be implied by the Privilege
of this AclObject
. For example, if you pass a Read Privilege
to this method, and the user has Write Privilege
, then this method returns true
.user
- The User
whose privilege you want to know about.privilege
- The Privilege
that identifies the access rights that you want to find out about.true
if user
has privilege
rights, false
if the User
does not, or if the caller does not have full control privileges to the folder.public Privilege getUserPrivilege(User user) throws javax.naming.NamingException
user
- The user whose privilege you want to know.javax.naming.NamingException
- If the caller does not have the privilege to get the privilege of another user.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |