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 TypeMethodDescriptionbooleanAdds a group to this group.booleanAdds 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.intReturns 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.booleanGets the dynamic setting of this groupbooleanGets 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.intReturns the number of groups that are users in a group object.booleanReturns 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) intReturns 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.intReturns the number of users in a Group object.booleanIndicates whether the ACL associated with a group object is globally or locally managed.booleanisGroupInGroup(String groupName) Determines whether the group is one of the members of this group.booleanIndicates whether a group object is private or public.booleanisUserInGroup(String userName) Determines whether the user is one of the members of this group.voidRemoves all groups from this group.voidRemoves all users from this group.booleanremoveGroup(String groupName) Add a group to this group.booleanremoveUser(String userName) Removes a user to this group.voidrenameGroup(String groupName, boolean isImmediate, boolean unlockObjects, boolean reportOnly) Rename this group.voidrenameGroupEx(String groupName, boolean isImmediate, boolean unlockObjects, boolean reportOnly, String groupDisplayName) Rename this group.voidsetAliasSetId(IDfId aliasId) Sets the alias set object id of the group.voidsetDescription(String description) Sets the description of this group.voidsetDynamic(boolean isDynamic) Marks the group as a dynamic groupvoidsetDynamicDefault(boolean isDynamicDefault) Marks the dynamic group as having its membership be included by default for members when they connect.voidsetGloballyManaged(boolean isGloballyManaged) Sets if this group is globally managed (by Federation) or local.voidsetGroupAddress(String groupAddress) Sets the e-mail address of this group.voidsetGroupAdmin(String admin) Sets the admin of this group.voidsetGroupClass(String className) Sets the class of this group.voidsetGroupDirectoryId(IDfId value) voidsetGroupDisplayName(String value) Sets the display name of a group.voidsetGroupGlobalUniqueId(String value) voidsetGroupName(String groupName) Sets the name of this group.voidsetGroupNativeRoomId(IDfId value) Sets the group native room id.voidsetGroupSource(String value) voidsetOwnerName(String ownerName) Sets the owner of this group.voidsetPrivate(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, validateObjRulesWithValuesMethods 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-trueIf this group is private.falseIf 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-trueIf this group is managed by Federation.falseIf 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-trueIf this group is dynamic.falseIf this group is not dynamic.- Throws:
DfException- Since:
- 5.2.10
-
getDynamic
Gets the dynamic setting of this group- Returns:
trueif the group is a dynamic group;falseif 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-trueIf this group's membership is default.falseIf this group's membership is not default.- Throws:
DfException- Since:
- 5.2.10
-
getDynamicDefault
Gets the default membership setting for the dynamic group.- Returns:
trueif the group's dynamic_default flag is on;falseif 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
-