Package com.documentum.fc.client
Interface IDfGroup
- All Superinterfaces:
IDfPersistentObject
,IDfTypedObject
This interface provides access to group-related data stored in group objects.
-
Field Summary
Fields inherited from interface com.documentum.fc.client.IDfPersistentObject
CURRENCY_CHECK_ALWAYS, CURRENCY_CHECK_FIRST_ACCESS, CURRENCY_CHECK_NEVER, CURRENCY_CHECK_ONCE_PER_SCOPE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds a group to this group.boolean
Adds a user to this group.Returns the alias set object id of the group.getAllUsersNames
(int index) Returns the name (at a specified index) from all users in a group object, including users that belong to group objects contained within this group object.int
Returns the number of users in a group object, including users that belong to group objects contained within this group object.Returns the user-defined description of a group object.boolean
Gets the dynamic setting of this groupboolean
Gets the default membership setting for the dynamic group.Returns the electronic mail address for a group object.Gets the admin of this group.Gets the class of this gruop.Gets the display name of a group.Returns the name of a group object.Gets the group native room id.Returns a collection of group members' names in this group.getGroupsNames
(int index) Returns the name of a group that is a member in a group object at the specified index.int
Returns the number of groups that are users in a group object.boolean
Returns the time and date that a group object was last modified.Returns the user name of the user who created a group object.getSupergroupsNames
(int index) int
Returns a collection of user members' names in this group.getUsersNames
(int index) Returns the name of the user in a group object at a specified index.int
Returns the number of users in a Group object.boolean
Indicates whether the ACL associated with a group object is globally or locally managed.boolean
isGroupInGroup
(String groupName) Determines whether the group is one of the members of this group.boolean
Indicates whether a group object is private or public.boolean
isUserInGroup
(String userName) Determines whether the user is one of the members of this group.void
Removes all groups from this group.void
Removes all users from this group.boolean
removeGroup
(String groupName) Add a group to this group.boolean
removeUser
(String userName) Removes a user to this group.void
renameGroup
(String groupName, boolean isImmediate, boolean unlockObjects, boolean reportOnly) Rename this group.void
renameGroupEx
(String groupName, boolean isImmediate, boolean unlockObjects, boolean reportOnly, String groupDisplayName) Rename this group.void
setAliasSetId
(IDfId aliasId) Sets the alias set object id of the group.void
setDescription
(String description) Sets the description of this group.void
setDynamic
(boolean isDynamic) Marks the group as a dynamic groupvoid
setDynamicDefault
(boolean isDynamicDefault) Marks the dynamic group as having its membership be included by default for members when they connect.void
setGloballyManaged
(boolean isGloballyManaged) Sets if this group is globally managed (by Federation) or local.void
setGroupAddress
(String groupAddress) Sets the e-mail address of this group.void
setGroupAdmin
(String admin) Sets the admin of this group.void
setGroupClass
(String className) Sets the class of this group.void
setGroupDirectoryId
(IDfId value) void
setGroupDisplayName
(String value) Sets the display name of a group.void
setGroupGlobalUniqueId
(String value) void
setGroupName
(String groupName) Sets the name of this group.void
setGroupNativeRoomId
(IDfId value) Sets the group native room id.void
setGroupSource
(String value) void
setOwnerName
(String ownerName) Sets the owner of this group.void
setPrivate
(boolean isPrivate) Sets if this group is private or publicMethods inherited from interface com.documentum.fc.client.IDfPersistentObject
addChildRelative, addParentRelative, apiExec, apiGet, apiSet, destroy, fetch, fetchWithCaching, getAttrAssistance, getAttrAssistanceWithValues, getAttrAsstDependencies, getChildRelatives, getParentRelatives, getPartition, getType, getValidator, getVStamp, getWidgetType, isDeleted, isDirty, isInstanceOf, isNew, isReplica, lock, lockEx, registerEvent, removeChildRelative, removeParentRelative, revert, save, setPartition, signoff, unRegisterEvent, unRegisterEventEx, validateAllRules, validateAttrRules, validateAttrRulesWithValue, validateAttrRulesWithValues, validateObjRules, validateObjRulesWithValues
Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
Method Details
-
getOwnerName
Returns the user name of the user who created a group object.- Throws:
DfException
- if a server error occurs
-
getGroupName
Returns the name of a group object.- Throws:
DfException
- if a server error occurs
-
getGroupAddress
Returns the electronic mail address for a group object.- Throws:
DfException
- if a server error occurs
-
getUsersNames
Returns the name of the user in a group object at a specified index.- Throws:
DfException
- if a server error occurs
-
getUsersNamesCount
Returns the number of users in a Group object.- Throws:
DfException
- if a server error occurs
-
getGroupsNames
Returns the name of a group that is a member in a group object at the specified index.- Throws:
DfException
- if a server error occurs
-
getGroupsNamesCount
Returns the number of groups that are users in a group object.- Throws:
DfException
- if a server error occurs
-
isPrivate
Indicates whether a group object is private or public.- Throws:
DfException
- if a server error occurs
-
getDescription
Returns the user-defined description of a group object.- Throws:
DfException
- if a server error occurs
-
getAllUsersNames
Returns the name (at a specified index) from all users in a group object, including users that belong to group objects contained within this group object.- Throws:
DfException
- if a server error occurs
-
getAllUsersNamesCount
Returns the number of users in a group object, including users that belong to group objects contained within this group object.- Throws:
DfException
- if a server error occurs
-
isGloballyManaged
Indicates whether the ACL associated with a group object is globally or locally managed. A globally managed ACL can only be edited in the governing repository. See the Distributed Configuration Guide for more information about distributed repositories.- Throws:
DfException
- if a server error occurs
-
getModifyDate
Returns the time and date that a group object was last modified. If the group has not been modified, this method specifies the group's creation date.- Throws:
DfException
- if a server error occurs
-
getAliasSetId
Returns the alias set object id of the group. Refer to Server Fundamentals for more information about aliases.- Throws:
DfException
- if a server error occurs.
-
setAliasSetId
Sets the alias set object id of the group. Refer to Server Fundamentals for more information about aliases.- Throws:
DfException
- if a server error occurs.
-
isUserInGroup
Determines whether the user is one of the members of this group.- Parameters:
userName
- user name of the user- Throws:
DfException
-
isGroupInGroup
Determines whether the group is one of the members of this group.- Parameters:
groupName
- group name of the group- Throws:
DfException
-
renameGroup
void renameGroup(String groupName, boolean isImmediate, boolean unlockObjects, boolean reportOnly) throws DfException Rename this group. This method shall invoke a job to do the operation- Throws:
DfException
-
renameGroupEx
void renameGroupEx(String groupName, boolean isImmediate, boolean unlockObjects, boolean reportOnly, String groupDisplayName) throws DfException Rename this group. This method takes an extra param groupDisplayName and invokes a job to do the operation- Throws:
DfException
- if an error occurs.- Since:
- D6
-
setGroupName
Sets the name of this group. The name has to be unique in the repository, throw DfException otherwise.- Parameters:
groupName
- name of this group to be renamed to- Throws:
DfException
-
setGroupAddress
Sets the e-mail address of this group.- Parameters:
groupAddress
- e-mail address of this group- Throws:
DfException
-
setDescription
Sets the description of this group.- Parameters:
description
- description of this group.- Throws:
DfException
-
setPrivate
Sets if this group is private or public- Parameters:
isPrivate
-true
If this group is private.false
If this group is public.- Throws:
DfException
-
setOwnerName
Sets the owner of this group. If the connected user is not a superuser, an exception is thrown because non-superuser does not have enough privilege to set the owner name.- Parameters:
ownerName
- owner name of this group.- Throws:
DfException
-
setGloballyManaged
Sets if this group is globally managed (by Federation) or local.- Parameters:
isGloballyManaged
-true
If this group is managed by Federation.false
If this group is manged locally.- Throws:
DfException
-
addUser
Adds a user to this group. If the user already exists in this group, no exception is thrown.- Parameters:
userName
- name of a user to be added.- Returns:
- True if the user was not in this group and the user is added.
- Throws:
DfException
-
addGroup
Adds a group to this group. If the group already exists in this group, no exception is thrown.- Parameters:
groupName
- name of a group to be added.- Returns:
- True if the group was not in this group and the group is added.
- Throws:
DfException
-
removeUser
Removes a user to this group. If the user does not exist in this group, no exception is thrown.- Parameters:
userName
- name of a user to be removed.- Returns:
- True if the user was in this group.
- Throws:
DfException
-
removeGroup
Add a group to this group. If the group does not exist in this group, no exception is thrown.- Parameters:
groupName
- name of a group to be removed.- Returns:
- True if the group was in this group.
- Throws:
DfException
-
removeAllUsers
Removes all users from this group.- Throws:
DfException
-
removeAllGroups
Removes all groups from this group.- Throws:
DfException
-
getUsersNames
Returns a collection of user members' names in this group. The caller is responsible to close the collection.- Returns:
- IDfCollection of user members' names in this group. Each row of the collection contains the 'users_names' attribute.
- Throws:
DfException
- if a server error occurs
-
getGroupsNames
Returns a collection of group members' names in this group. The caller is responsible to close the collection.- Returns:
- IDfCollection of group members' names in this group. Each row of the collection contains the 'groups_names' attribute.
- Throws:
DfException
- if a server error occurs
-
setGroupClass
Sets the class of this group.- Parameters:
className
- The class of this group.- Throws:
DfException
-
getGroupClass
Gets the class of this gruop.- Returns:
- The class of this group.
- Throws:
DfException
-
setGroupAdmin
Sets the admin of this group.- Parameters:
admin
- The admin of this group. If this is not a valid group, an exception is thrown.- Throws:
DfException
-
getGroupAdmin
Gets the admin of this group.- Returns:
- The admin of this group.
- Throws:
DfException
-
setDynamic
Marks the group as a dynamic group- Parameters:
isDynamic
-true
If this group is dynamic.false
If this group is not dynamic.- Throws:
DfException
- Since:
- 5.2.10
-
getDynamic
Gets the dynamic setting of this group- Returns:
true
if the group is a dynamic group;false
if the group is not.- Throws:
DfException
- Since:
- 5.2.10
-
setDynamicDefault
Marks the dynamic group as having its membership be included by default for members when they connect.- Parameters:
isDynamicDefault
-true
If this group's membership is default.false
If this group's membership is not default.- Throws:
DfException
- Since:
- 5.2.10
-
getDynamicDefault
Gets the default membership setting for the dynamic group.- Returns:
true
if the group's dynamic_default flag is on;false
if the dynamic_default flag is not on.- Throws:
DfException
- Since:
- 5.2.10
-
getSupergroupsNamesCount
- Throws:
DfException
-
getSupergroupsNames
- Throws:
DfException
-
getGroupSource
- Throws:
DfException
-
setGroupSource
- Throws:
DfException
-
getHasEvents
- Throws:
DfException
-
getGroupGlobalUniqueId
- Throws:
DfException
-
setGroupGlobalUniqueId
- Throws:
DfException
-
getGroupNativeRoomId
Gets the group native room id.- Returns:
- the group native room id
- Throws:
DfException
- if a server error occurs
-
setGroupNativeRoomId
Sets the group native room id.- Throws:
DfException
- if a server error occurs
-
getGroupDirectoryId
- Throws:
DfException
-
setGroupDirectoryId
- Throws:
DfException
-
getGroupDisplayName
Gets the display name of a group.- Throws:
DfException
- if a server error occurs
-
setGroupDisplayName
Sets the display name of a group.- Throws:
DfException
- if a server error occurs
-