|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.LibraryObject | +--oracle.ifs.beans.TieLibraryObject | +--oracle.ifs.beans.PublicObject | +--oracle.ifs.beans.TiePublicObject | +--oracle.ifs.beans.AccessControlList
The AccessControlList (ACL) class represents a set of AccessControlEntries (ACE). Each ACE represents a single grant/revoke of a privilege or AccessLevel. The complete list of ACEs, that is the ACL itself, represents the cumulative list of who (DirectoryObjects) has what access to a specified PublicObject. An ACL may be referenced (shared) by more than one PublicObject.
The order of the ACEs is significant. Access is resolved in ascending order. If a user is first granted a privilege, then revoked, the result is the user will not have that privilege.
For example, the first ACE grants a group complete access to a PublicObject. The second ACE revokes specific privileges to distinct members of the group. The result would be some members having full privileges and others having restricted privileges. Had the order of the ACEs been reversed, the result would be the whole group having full privileges.
AccessLevel
,
DirectoryObject
,
DirectoryUser
,
PublicObject
Field Summary | |
static java.lang.String |
CLASS_NAME
This class name for this class. |
static java.lang.String |
COMPONENTACLS_ATTRIBUTE
The component ACLs for a composite ACL. |
static java.lang.String |
OWNERUNIQUENAME_ATTRIBUTE
A system-set attribute used to ensure no ACLs owned by a user have duplicate names. |
static java.lang.String |
SHARED_ATTRIBUTE
An indicator of whether more than one PublicObject refers to this AccessControlList. |
Method Summary | |
boolean |
checkEffectiveAccess(DirectoryObject obj,
AccessLevel level)
Check to see if specified user has the specified access level on this object. |
boolean |
checkGrantedAccess(AccessLevel level)
Check if current user has the specified access level on this object. |
boolean |
checkGrantedAccess(DirectoryObject obj,
AccessLevel requestedLevel)
Check to see if specified user/group has the specified access level on this object. |
AccessControlEntry[] |
getAccessControlEntrys()
Returns an array of AccessControlEntry objects that are part of this ACL. |
AccessControlEntry |
getAccessControlEntrys(int index)
Returns the ACE at specified index in array of ACEs. |
AccessControlList[] |
getComponentAcls()
Returns all AccessControlLists that are components of the target ACL. |
AccessControlList[] |
getCompositeAcls()
Gets the set of composite ACLs which reference the target ACL as a "component". |
AccessLevel |
getEffectiveAccessLevel(DirectoryObject obj)
Returns the effective access level on this object for the specified user. |
AccessLevel |
getGrantedAccessLevel()
Returns the access level on this object for the current user. |
AccessLevel |
getGrantedAccessLevel(DirectoryObject obj)
Returns the access level on this object for a specified DirectoryObject. |
AccessControlEntry |
grantAccess(AccessControlEntryDefinition aceDef)
Add or extend an ACE for this ACL. |
void |
handleEvent(IfsEvent event)
Handles the specified event. |
boolean |
isComposite()
Returns indication as to whether the target ACL is considered a "composite ACL", that is if it has one of more component ACLs. |
boolean |
isShared()
Returns indication as to whether this is a shared ACL, meaning more than one PublicObject refers to it. |
void |
removeAccessControlEntry(AccessControlEntry ace)
Remove an ACE from this ACL. |
AccessControlEntry |
revokeAccess(AccessControlEntryDefinition aceDef)
Remove or restrict an ACE for this ACL. |
void |
revokeAllAccess()
Remove all ACEs for this ACL. |
void |
setComponentAcls(AccessControlList[] acls)
Sets the AccessControlLists that are components of the target ACL. |
void |
updateAccessControlEntry(AccessControlEntry ace,
AccessControlEntryDefinition aceDef)
Update an ACE in this ACL. |
Methods inherited from class oracle.ifs.beans.LibraryObject |
equals, free, free, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getClassId, getClassObject, getDefinition, getId, getLabel, getName, getSession, invokeServerMethod, isInstanceOf, isTraced, lookupInstanceLabel, postEvent, postEvent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setName, toString, trace, update |
Methods inherited from interface oracle.ifs.common.LibraryObjectInterface |
getId |
Methods inherited from interface oracle.ifs.common.Traceable |
getTraceLogger, isTraced, trace |
Field Detail |
public static final java.lang.String CLASS_NAME
public static final java.lang.String SHARED_ATTRIBUTE
public static final java.lang.String OWNERUNIQUENAME_ATTRIBUTE
public static final java.lang.String COMPONENTACLS_ATTRIBUTE
Method Detail |
public boolean isShared() throws IfsException
IfsException
- if operation fails.public AccessControlList[] getComponentAcls() throws IfsException
IfsException
- if operation fails.public boolean isComposite() throws IfsException
IfsException
- if operation fails.public AccessControlList[] getCompositeAcls() throws IfsException
IfsException
- if operation fails.public void setComponentAcls(AccessControlList[] acls) throws IfsException
acls
- the set of component AccessControlLists, or null
if noneIfsException
- if operation fails.public AccessLevel getGrantedAccessLevel() throws IfsException
IfsException
- if operation fails.public AccessLevel getGrantedAccessLevel(DirectoryObject obj) throws IfsException
obj
- the DirectoryObjectIfsException
- if operation fails.public boolean checkGrantedAccess(AccessLevel level) throws IfsException
level
- specified level.IfsException
- if operation fails.public boolean checkGrantedAccess(DirectoryObject obj, AccessLevel requestedLevel) throws IfsException
obj
- the DirectoryObjectlevel
- specified level.IfsException
- if operation fails.public AccessLevel getEffectiveAccessLevel(DirectoryObject obj) throws IfsException
getEffectiveAccessLevel
in class PublicObject
user
- specified user on which to check Access ControlIfsException
- if operation fails.public boolean checkEffectiveAccess(DirectoryObject obj, AccessLevel level) throws IfsException
checkEffectiveAccess
in class PublicObject
user
- specified user on which to check Access Controllevel
- specified level.IfsException
- if operation fails.public AccessControlEntry[] getAccessControlEntrys() throws IfsException
IfsException
- if operation fails.public AccessControlEntry getAccessControlEntrys(int index) throws IfsException
index
- index into the array of AccessControlEntrysIfsException
- if operation fails.public AccessControlEntry grantAccess(AccessControlEntryDefinition aceDef) throws IfsException
grantAccess
in class PublicObject
aceDef
- AccessControlEntry definitionIfsException
- if operation fails.public AccessControlEntry revokeAccess(AccessControlEntryDefinition aceDef) throws IfsException
revokeAccess
in class PublicObject
aceDef
- AccessControlEntry definitionIfsException
- if operation fails.public void revokeAllAccess() throws IfsException
revokeAllAccess
in class PublicObject
IfsException
- if operation fails.public void removeAccessControlEntry(AccessControlEntry ace) throws IfsException
ace
- AccessControlEntry to be removedIfsException
- if operation fails.public void updateAccessControlEntry(AccessControlEntry ace, AccessControlEntryDefinition aceDef) throws IfsException
ace
- AccessControlEntry to be updatedaceDef
- the definition of the updatesIfsException
- if operation fails.public void handleEvent(IfsEvent event) throws IfsException
handleEvent
in class PublicObject
event
- the eventIfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |