|
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.DirectoryObject | +--oracle.ifs.beans.TieDirectoryObject | +--oracle.ifs.beans.DirectoryGroup
A DirectoryGroup represents an iFS group of users and/or other groups.
This class enables defining membership relationships by providing methods to add or or remove instances of the GroupMembershiprelationship class.
Also provided are methods to fetch the direct members of this group (that is, DirectoryObejcts that have a GroupMembershiprelationship associated with this object), and "all members" (also known as "fully resolved members") of the group, which is the union of the direct members and the fully resolved members of each of the direct members.
There is one special instance of DirectoryGroup, known as the "World" group. This group has an implied set of direct members that includes all DirectoryUsers defined in the server.
Field Summary | |
static java.lang.String |
ALLMEMBERS_ATTRIBUTE
Deprecated. iFS 9.0.3: this attribute will be removed in a future release |
static java.lang.String |
CLASS_NAME
Class name for this class. |
static java.lang.String |
CONTENTQUOTA_ATTRIBUTE
The ContentQuota associated with this group for the purpose of adminstering quota on a group-wise basis. |
static java.lang.String |
OWNERUNIQUENAME_ATTRIBUTE
A system-set attribute used to ensure no groups owned by a user have duplicate names. |
Method Summary | |
void |
addMember(DirectoryObject member)
Adds a direct member to the group. |
void |
addMembers(DirectoryObject[] members)
Adds a set of direct members to the group. |
DirectoryObject[] |
getAllMembers()
Returns array of DirectoryObject that define the list of all members for this instance. |
DirectoryObject |
getAllMembers(int index)
Deprecated. iFS 9.0.3 Use getAllMembers() and index into the resultant array |
DirectoryUser[] |
getAllUserMembers()
Gets the array of DirectoryUser that define the list of all DirectoryUser members for this instance. |
DirectoryUser |
getAllUserMembers(int index)
Gets the member DirectoryUser at the specified index of this group. |
ContentQuota |
getContentQuota()
Gets the group's ContentQuota object. |
DirectoryObject[] |
getDirectMembers()
Gets the direct members of this instance. |
DirectoryObject |
getDirectMembers(int index)
Gets the direct member at the specified index of this group. |
static DirectoryGroup |
getWorldDirectoryGroup(LibrarySession session)
Gets the DirectoryGroup that represents World access. |
boolean |
isDirectMember(DirectoryObject member)
Determines if the specified DirecotryObject is a direct member of the group. |
boolean |
isMember(DirectoryObject obj)
Determines if the specified DirecotryObject is a member of the group. |
boolean |
isWorldGroup()
Tests whether this group is the World group (the virtual group that contains all users). |
void |
removeMember(DirectoryObject member)
Removes a direct member from the group. |
void |
removeMembers(DirectoryObject[] members)
Removes a set of direct members from the group. |
void |
setContentQuota(ContentQuota quota)
Sets the group's ContentQuota attribute. |
Methods inherited from class oracle.ifs.beans.DirectoryObject |
getAllAncestors, getAllAncestors, getDirectAncestors, getDirectAncestors, resetAllAncestors, resetDirectAncestors |
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
Useful for methods that take a class name argument.
public static final java.lang.String ALLMEMBERS_ATTRIBUTE
public static final java.lang.String OWNERUNIQUENAME_ATTRIBUTE
public static final java.lang.String CONTENTQUOTA_ATTRIBUTE
Method Detail |
public ContentQuota getContentQuota() throws IfsException
IfsException
- if the operation failspublic void setContentQuota(ContentQuota quota) throws IfsException
quota
- the ContentQuota to be associated with this groupIfsException
- if the operation failspublic boolean isWorldGroup() throws IfsException
IfsException
- if operation fails.public static DirectoryGroup getWorldDirectoryGroup(LibrarySession session) throws IfsException
session
- the sessionIfsException
- if operation fails.public void addMember(DirectoryObject member) throws IfsException
The member must not be the World group, nor can it already be a member of this group.
If the specified DirectoryObject is null, no action will be taken and no exception will be thrown.
member
- the member to add to this DirectoryGroupIfsException
- if the operation fails.public void addMembers(DirectoryObject[] members) throws IfsException
The membership restrictions are the same as outlined in the addMember method. If any member specified does not qualify as a valid member, the entire operation is not performed.
If any of the specified DirectoryObjects is null, that array element will be ignored.
members
- the members to add as direct members to this instanceIfsException
- if the operation fails.public void removeMember(DirectoryObject member) throws IfsException
The specified member must not be the World group.
If the specified DirectoryObject is not a member of this group or is null, no action will be taken and no exception will be thrown.
member
- the member to remove from this DirectoryGroupIfsException
- if the operation fails.public void removeMembers(DirectoryObject[] members) throws IfsException
The member specified must comply with the restrictions outlined in the removeMember method. If any member specified is not valid, the entire operation is not performed.
If any of the specified DirectoryObjects is not a member of this group or is null, that array element will be ignored.
members
- the members to add as direct members to this instanceIfsException
- if the operation fails.public DirectoryObject[] getAllMembers() throws IfsException
This list is the full set of DirectoryObject that are members (directly or indirectly) of this DirectoryGroup.
getAllMembers
in class DirectoryObject
IfsException
- if operation fails.public DirectoryObject getAllMembers(int index) throws IfsException
getAllMembers
in class DirectoryObject
index
- index into the array of DirectoryObjectsIfsException
- if operation fails.public DirectoryUser[] getAllUserMembers() throws IfsException
This list is the full set of DirectoryUser that are members (directly or indirectly) of this DirectoryGroup.
getAllUserMembers
in class DirectoryObject
IfsException
- if operation fails.public DirectoryUser getAllUserMembers(int index) throws IfsException
getAllUserMembers
in class DirectoryObject
index
- index into the array of AllUserMembersIfsException
- if operation fails.public DirectoryObject[] getDirectMembers() throws IfsException
getDirectMembers
in class DirectoryObject
IfsException
- if operation fails.public DirectoryObject getDirectMembers(int index) throws IfsException
getDirectMembers
in class DirectoryObject
index
- index into the array of DirectoryObjectsIfsException
- if operation fails.public boolean isDirectMember(DirectoryObject member) throws IfsException
member
- the DirectoryObject that will be checked for membershipIfsException
- if operation fails.public boolean isMember(DirectoryObject obj) throws IfsException
id
- a DirectoryObjectIfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |