Interface GroupService
- All Superinterfaces:
ContextSensitiveSingletonService,Service
username starts with "m" are
members.
Every group can have at most one parent, as long as it is not recursive.
That is A cannot be a parent of B, B a parent of C and C a parent of A.
When a child group is created, it is automatically added as a member of
the parent group. However, the parent group can have many member groups
that do not have it as the parent group.
There are three different membership policies: open, exclusive and closed.
Open means that anyone can join. Exclusive means users can request to be
added by the administrator. Closed means administrators can add.
There are two viewing policies: high and low. High means that only
administrators can see members, while low means members can see each
other.
"My Groups" is bookmark for a user's frequently used groups, so that these
groups can be accessed quickly.
Delegated creation means that a user is granted permission by the group
Administrator to create groups with the delegated group as parent.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerConstant for whether the user can add members to the groupstatic final IntegerConstant for whether the user can add group membership rulesstatic final IntegerConstant for whether the user can add self to groupstatic final IntegerConstant for whether the user can delete the groupstatic final IntegerConstant for whether the user can remove group membersstatic final IntegerConstant for whether the user can delete group membership rulesstatic final IntegerConstant for whether the user can edit group attributesstatic final IntegerConstant for whether the user can remove his/her membership from groupstatic final IntegerConstant for whether the user can delegate group administrationstatic final IntegerConstant for whether the group can be delegated to be a parent group for creation of new groupsstatic final IntegerConstant for whether the user can view the group attributesstatic final IntegerConstant for whether the user can check the existence of the groupstatic final IntegerConstant for whether the user can view group membersstatic final IntegerConstant for whether the user can view the membership rules of the groupstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final IntegerConstant for InvalidGroupException where group Id is invalid.static final IntegerConstant for InvalidGroupTypeException when grouptype of group is invalidstatic final IntegerConstant for PrivilegeException where user cannot change group type of groupstatic final IntegerConstant for whether changing the group type of group was successfulstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated.static final Stringstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final booleanDeprecated, for removal: This API element is subject to removal in a future version.static final Integerstatic final Integerstatic final Integerstatic final Integerstatic final Integerstatic final Integerstatic final booleanDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface com.appiancorp.services.ContextSensitiveSingletonService
CONFIGURE_METHOD_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdminGroups(Long[] adminGroupIds_, Long groupId_) Adds the given groups as administrator groups for group given bygroupId_voidaddAdminUsers(String[] usernames_, Long groupId_) Adds the users by given username's as administrators of group given bygroupId_voidaddGroupsToMyGroups(Long[] groupIds_) Adds a list of groups to My Groups for logged in user.voidaddGroupToFavorites(Long groupId_) Deprecated.favorites marking is deprecatedvoidaddMemberGroup(Long memgroupId_, Long groupId_) Adds a member group to a group.voidaddMemberGroups(Long[] memgroupIds_, Long groupId_) Adds member groups to a groupvoidaddMemberUser(String username_, Long groupId_) Adds a member user to a group .voidaddMemberUsers(String[] usernames_, Long groupId_) Adds member users to a groupvoidaddMyselfToGroup(Long groupId_) Adds oneself to the given groupboolean[]areGroupsAddedByRule(Long groupId_, Long[] groupIds_) Checks to see if the given groups were added to the group by a rule.boolean[]areUsersAddedByRule(Long groupId_, String[] userIds_) Checks to see if the given users where added to the group by a rule.boolean[][]areUsersMembersOfGroups(String[] usernames, Long[] groupIds) Determines if the specified user is a member of each of the specified groups.boolean[][]areUsersMembersOfGroups(String[] usernames, String[] groupUuid_) Determines if the specified user is a member of each of the specified groups.booleancanUseGroupName(String groupName_, Long groupSecurityType_) Indicates whether a user can create a new group with the given name of the given group security type.voidchangeGroupTypeOfGroup(Long groupId, Long newGroupTypeId) Changes the GroupType of a Group.Integer[]changeGroupTypesOfGroups(Long[] groupIds, Long[] newGroupTypeIds) Changes the GroupTypes of Groups.createGroup(Group group_) Create a new group.Long[]createGroups(Group[] groups_) Create new groups.voiddeleteGroup(Long groupId_) Deletes a single group.booleandoesGroupExist(Long groupId_) Checks to see if a given group exists.Group[]findAdminGroups(GroupSearch groupSearch_, boolean caseSensitive_) findAdminGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Finds all groups of which you are administrator and which also match the given search criteria.Group[]findAvailableParentGroups(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_) findAvailableParentGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of all groups available for setting as parent.Group[]findGroups(GroupSearch groupSearch_, boolean caseSensitive_) findGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Finds groups based on criteria submitted in the GroupSearch The supported search operators are specified in GroupSearch for agroupSeegetOperatorsForAttributeType()inGroupTypeServiceto obtain a list of possible operatorsOperatorfor a given data type.Group[]findNonMemberAncestorGroups(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_) findNonMemberAncestorGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Retrieves aResultPageof list of groups for a group search that are not ancestors (by parent-member relationship) of the given group.intgetAdminGroupCount(Long groupId_) Gets the number of distinct groups {that are administrators of the specified group.getAdminGroupsPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Retrieves the groups that are administrator groups for the givengroupId_intgetAdminUserCount(Long groupId_) Gets a count of distinct users that are administrators of the specified group.getAdminUsersDirectPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of distinct users that are direct admins of the specified group ie user admins of subgroups are not included.getAdminUsersPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Retrieves the users that are administrator users for the givengroupId_Gets the list of group attribute types in the systemGets the name of the application on which this service is running.Returns the cached Credentials bean containing the group membership relations for the user in this Service Context.Returns a Credentials bean directly from the back-end, containing the group membership relations for the user in this Service Context.Long[]getDirectAdminGroupIds(Long groupId) Gets the group IDs of all the administrator groups added directly to a given group (excludes those who are administrators via membership in an administrator group)String[]getDirectAdminUsernames(Long groupId) Gets the usernames of all the administrator users added directly to a given group (excludes those who are administrators via membership in an administrator group)Long[]getDirectMemberGroupIds(Long groupId) Gets the group IDs of all the member groups added directly to a given group (excludes those who are members via rule or via membership in a member group)String[]getDirectMemberUsernames(Long groupId) Gets the usernames of all the member users added directly to a given group (excludes those who are members via rule or via membership in a member group)getFavoriteGroups(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.favorites marking is deprecatedGets the global home page for the application.Get a group by id.Boolean[]getGroupActions(Long groupId_, Integer[] actionIds_) Gets s Boolean array, representing whether actions with the given ids can be performed on a given group by the current usergetGroupAttribute(Long groupId_, String attributeName_) Gets a group attribute for a given group id.Long[]getGroupIdsForUserByRole(String username_, Integer role_) Gets a list of group ids for which a given user has a given role.Long[][]getGroupIdsForUserByRoles(String username_, Integer[] roles_) Gets the group Ids for which the specified user has any of the specified rolesgetGroupMembershipPolicyTypes(Long groupSecurityTypeId_) Gets the list of group membership policy types for a particular group security type.getGroupMemberViewingPolicyTypes(Long groupSecurityTypeId_) Gets the list of group member viewing policies for a particular group security type.getGroupName(Long groupId_) Gets a group name for a given group id.String[]getGroupNames(Long[] groupIds_) Gets a list of group names for a given list of group ids.getGroupNamesList(Long[] groupIds_) Gets a list of group names for a given list of group ids.Group[]Gets a list of groups for a given list of group ids.getGroupSecurityTypes(Integer actionId_) Gets the list of group security types that are available for a particular action.Group[]getGroupsForUserByRole(String username_, Integer role_) Gets a list of groups for which a given user has a given role.getGroupsForUserByRolePaging(String username_, Integer role_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing list of groups for which a given user has a given role.Group[]getGroupsForUserByRoles(String username_, Integer[] roles_) Deprecated.getGroupsForUserByRolesPaging(String username_, Integer[] roles_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Retrieves a ResultPage containing the list of groups for which the given user has any of the given roles.getGroupsList(Long[] groupIds_) Returns a ResultListResultListcontaining error codes for all Ids andGroups for valid IdsGroup[]getGroupsOfType(Long groupTypeId_) Deprecated.Group[]getGroupsOfTypeForMemberUser(Long[] groupTypeIds_, String username_) Deprecated.UsegetGroupsForUserByRolePaging(String, Integer, int, int, Integer, Integer)and extract groups of the desired types from the results.getGroupsOfTypePaging(Long groupTypeId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of groups for a given group typegetGroupSummaryForUser(String username_) Deprecated.getGroupSummaryForUserPaging(String username_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) RetrievesGroupSummarybeans for every group for which the givenUseris a member or administrator.Long[]getGroupTypeForGroup(Long[] groupIds_) Gets group types for a list of groups.intgetMemberGroupCount(Long groupId_) Gets the number of distinct groups {that are members of the specified group.Group[]getMemberGroups(Long groupId_) Gets a list of members groups of a groupGroup[]getMemberGroupsDirect(Long groupId_) Gets group members of a group that are explicitly defined, no cascading (group members of subgroups are not included)getMemberGroupsDirectPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of groups that are direct members, i.e. group members of subgroups are not included in the result set.getMemberGroupsPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of group members of a groupintgetMemberUserCount(Long groupId_) Gets a count of distinct users that are members of the specified group.String[]getMemberUsernames(Long groupId_) Gets the usernames of all the member users for given groupString[]getMemberUsernamesDirect(Long groupId_) Deprecated.User[]getMemberUsers(Long groupId_) Gets a list of member users of the specified groupUser[]getMemberUsers(Long[] groupIds_) Gets a list of distinct users that are members of any of the specified groups.User[]getMemberUsersDirect(Long groupId_) Deprecated.getMemberUsersDirectPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of distinct users that are direct members of the specified group i.e user members of subgroups are not included.getMemberUsersPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage containing a list of member users of the specified groupLong[]Gets Ids for logged-in user's My Groups.getMyGroups(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.use getFavoriteGroupsGets the home page for the current user if he has set one, otherwise returns the global home page.Group[]Gets the groups for which the logged-in user is authorized to set as a parent when creating public child groups.getParentGroupsForDelegatedCreationPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage of parent groups for which the logged-in user is authorized to create public child groups.Group[]getParentGroupsForDelegatedUpdate(Long groupId_) Gets the groups for which the logged-in user is authorized to set as parent when updating public child groups.Tree[]getRootTrees(Long groupTypeId_, String relationshipType_, boolean singleGroupType_, int descendentDepth_) Get a set of groups structured into one or more trees.Tree[]getRootTrees(Long groupTypeId_, String relationshipType_, Long[] groupTypeIds_, int descendentDepth_) Get a set of groups structured into one or more treesTree[]getRootTreesSameTypeWithRoles(Long groupTypeId_, Integer[] roleTypes_, int descendantDepth_) getRuleSetForGroup(Long groupId_) Gets membership rule set for a GroupDeprecated.Use {@link ApplicationService.getDefaultApplication()}getTopLevelGroupsForHierarchy(Long groupTypeId_, boolean sameType_) getTopLevelGroupsForHierarchyPaging(Long groupTypeId_, boolean sameType_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets all top levelGroupHierarchyBeanobjects (Groups without a parent group) given theGrouptype.getTopLevelGroupsPaging(Long groupTypeId_, String relationshipType_, boolean singleGroupType_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Get a ResultPage containing a list of groups structured into one or more trees in theresultfield.getTreeViewForGroup(Long groupId_, boolean singleGroupType_, String relationshipType_, int descendentDepth_) Get a view into the tree pivoted at a particular group.getTreeViewForGroup(Long groupId_, Long[] groupTypeIds_, String relationshipType_, int descendentDepth_) Get a view into the tree pivoted at a particular group Each node in the tree will represent a group.getTreeViewForGroupSameTypeWithRoles(Long groupId_, Integer[] roleTypes_, int descendantDepth_) Get a view into the tree pivoted at a particular group Each node in the tree will represent a group.getUserDefaultApplication(String username) Deprecated.Use {@link ApplicationService.getDefaultApplication()} for the site-wide default.String[]Gets the current memory profile for the workspace.booleanisGroupDescendant(Long groupId_, Long parentGroupId_) Checks if a group is a descendant of another group (by parent-child relationship).booleanisGroupSystemGroup(Long groupId_) Checks to see if a given group is a system group.boolean[]isMemberOfGroups(Long[] groupId_) Determines if the current user is a member of each of the specified groups.boolean[]isMemberOfGroups(String[] groupUuid_) Determines if the current user is a member of each of the specified groups.booleanisUserMember(String[] username_, Long groupId_) Checks multiple potential usernames to determine if a user is a member of a groupbooleanisUserMember(String[] username_, String groupUuid_) Checks multiple potential usernames to determine if a user is a member of a groupbooleanisUserMember(String username_, Long groupId_) Checks if a user is a member of a groupbooleanisUserMember(String username_, String groupUuid_) Checks if a user is a member of a groupboolean[]isUserMemberOfGroups(String[] usernames, Long[] groupId_) Determines if the specified user is a member of each of the specified groups.boolean[]isUserMemberOfGroups(String[] usernames, String[] groupUuid_) Determines if the specified user is a member of each of the specified groups.boolean[]isUserMemberOfGroups(String username_, Long[] groupId_) Determines if the specified user is a member of each of the specified groups.boolean[]isUserMemberOfGroups(String username_, String[] groupUuid_) Determines if the specified user is a member of each of the specified groups.voidremoveAdminGroups(Long[] adminGroupIds_, Long groupId_) Removes the groups specified by adminGroupIds_ as administrators of groupvoidremoveAdminUsers(String[] usernames_, Long groupId_) Removes the users specified byusernames_as administrators of groupvoidremoveGroupFromFavorites(Long groupId_) Deprecated.favorites marking is deprecatedvoidremoveGroupsFromMyGroups(Long[] groupIds_) Removes a list of groups from My Groups for logged-in user.voidremoveMemberGroup(Long memgroupId_, Long groupId_) Removes a member group from a groupvoidremoveMemberGroups(Long[] memgroupIds_, Long groupId_) Removes a list of member groups from a groupvoidremoveMemberUser(String username_, Long groupId_) Deprecated.UseremoveMemberUsers(String[], Long)and pass a single user in the array.voidremoveMemberUsers(String[] usernames_, Long groupId_) Removes a list of member users from a groupvoidremoveMyselfFromGroup(Long groupId_) Removes oneself from the given groupresolveEmailAddress(LocalObject emailRecipient_) resolveEmailAddresses(LocalObject[] emailRecipients_) resolveEmailDestinations(LocalObject[] to_, LocalObject[] cc_, LocalObject[] bcc_) Resolves three sets of email recipients, which form the email destination, into email addresses.voidsetGlobalHomePage(String url) Sets home page for all users (default).voidsetHomePageForUser(String username_, String url_) voidsetMyHomePage(String url) Sets home page for current user, overriding the system default for this user.suggest(String query, int maxItems, SuggestParam[] params, Boolean groupResults) suggest(String query, int maxItems, SuggestParam[] params, Boolean groupResults, Long[] allowList) suggestGroups(String query_, int maxSuggestions_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadSuggestion[][]suggestGroupsBulk(String[] queries_, int maxSuggestionsPerQuery_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadsuggestUsersAndGroups(String query_, int maxSuggestions_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadSuggestion[][]suggestUsersAndGroupsBulk(String[] queries_, int maxSuggestionsPerQuery_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadvoidupdateGroup(Group group_) Updates aGroup.voidupdateGroups(Group[] groups_) Updates multipleGroupobjects.voidupdateRuleSetForGroup(RuleSet ruleSet_) Updates the membership rule set for aGroup.booleanvalidateTypedValues(TypedValue[] typedValues) Validates given TypedValues.Methods inherited from interface com.appiancorp.services.ContextSensitiveSingletonService
configureContextSensitiveSingletonService
-
Field Details
-
USER_ROLE_SUPERADMIN
-
USER_ROLE_CREATOR
-
USER_ROLE_ADMINISTRATOR
-
USER_ROLE_VIEWER
-
USER_ROLE_MEMBER
-
USER_ROLE_NONMEMBER
-
RELATIONSHIP_TYPE_HEIRARCHY
Deprecated.- See Also:
-
RELATIONSHIP_TYPE_HIERARCHY
- See Also:
-
ACTION_GROUP_DELETE_GROUP
Constant for whether the user can delete the group -
ACTION_GROUP_EDIT_GROUP_ATTRIBUTES
Constant for whether the user can edit group attributes -
ACTION_GROUP_ADD_GROUP_MEMBERS
Constant for whether the user can add members to the group -
ACTION_GROUP_DELETE_GROUP_MEMBERS
Constant for whether the user can remove group members -
ACTION_GROUP_ADD_GROUP_RULES
Constant for whether the user can add group membership rules -
ACTION_GROUP_DELETE_GROUP_RULES
Constant for whether the user can delete group membership rules -
ACTION_GROUP_VIEW_GROUP_EXISTENCE
Constant for whether the user can check the existence of the group -
ACTION_GROUP_VIEW_GROUP_ATTRIBUTES
Constant for whether the user can view the group attributes -
ACTION_GROUP_VIEW_GROUP_MEMBERS
Constant for whether the user can view group members -
ACTION_GROUP_VIEW_GROUP_RULES
Constant for whether the user can view the membership rules of the group -
ACTION_GROUP_ADD_SELF_TO_GROUP
Constant for whether the user can add self to group -
ACTION_GROUP_REMOVE_SELF_FROM_GROUP
Constant for whether the user can remove his/her membership from group -
ACTION_GROUP_UPDATE_DELEGATED_ADMINISTRATION
Constant for whether the user can delegate group administration -
ACTION_GROUP_USE_GROUP_AS_DELEGATED_PARENT
Constant for whether the group can be delegated to be a parent group for creation of new groups -
GROUP_TYPE_CHANGE_SUCCESS
Constant for whether changing the group type of group was successful -
GROUP_TYPE_CHANGE_NO_PRIVILEGE
Constant for PrivilegeException where user cannot change group type of group -
GROUP_TYPE_CHANGE_INVALID_GROUP
Constant for InvalidGroupException where group Id is invalid. -
GROUP_TYPE_CHANGE_INVALID_GROUPTYPE
Constant for InvalidGroupTypeException when grouptype of group is invalid -
createGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
createGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
deleteGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupName$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupNames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupNamesList$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupAttribute$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCredentials$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getCachedCredentials$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsOfType$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsOfTypePaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupTypeForGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupIdsForUserByRole$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsForUserByRole$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsForUserByRolePaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsOfTypeForMemberUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUsers$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUsersPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUserCount$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberGroupCount$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addMemberGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addMemberGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addMemberUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addMemberUsers$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addMyselfToGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeMemberGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeMemberGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeMemberUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeMemberUsers$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeMyselfFromGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isGroupDescendant$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isUserMember$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRootTrees$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRootTreesSameTypeWithRoles$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopLevelGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTreeViewForGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTreeViewForGroupSameTypeWithRoles$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
doesGroupExist$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addGroupsToMyGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeGroupsFromMyGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMyGroupIds$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMyGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupSecurityTypes$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupMembershipPolicyTypes$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupMemberViewingPolicyTypes$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAllAttributeTypes$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findNonMemberAncestorGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findAvailableParentGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findAdminGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getRuleSetForGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
updateRuleSetForGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupSummaryForUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupSummaryForUserPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isGroupSystemGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsForUserByRoles$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsForUserByRolesPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupActions$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
canUseGroupName$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getParentGroupsForDelegatedCreation$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getParentGroupsForDelegatedUpdate$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getParentGroupsForDelegatedCreationPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findNonMemberAncestorGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findAvailableParentGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
findAdminGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getApplicationName$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getWorkspace$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUsernames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupIdsForUserByRoles$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGroupsList$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberGroupsDirect$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberGroupsDirectPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUsersDirect$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUsersDirectPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdminUsersDirectPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMemberUsernamesDirect$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopLevelGroupsForHierarchy$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getTopLevelGroupsForHierarchyPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
areUsersAddedByRule$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
areGroupsAddedByRule$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
suggestGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
suggestUsersAndGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
suggestGroupsBulk$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
suggestUsersAndGroupsBulk$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getUserDefaultApplication$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getSystemDefaultApplication$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getMyHomePage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setGlobalHomePage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setHomePageForUser$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
setMyHomePage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getGlobalHomePage$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addGroupToFavorites$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeGroupFromFavorites$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getFavoriteGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addAdminUsers$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeAdminUsers$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
addAdminGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
removeAdminGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdminGroupsPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdminUsersPaging$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdminUserCount$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getAdminGroupCount$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isMemberOfGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
isUserMemberOfGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
areUsersMembersOfGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDirectMemberGroupIds$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDirectMemberUsernames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDirectAdminGroupIds$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
getDirectAdminUsernames$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
suggest$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
resolveEmailAddress$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
resolveEmailAddresses$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
resolveEmailDestinations$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
changeGroupTypeOfGroup$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
changeGroupTypesOfGroups$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
validateTypedValues$UPDATES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
createGroup
@Write(K_PERSONALIZATION) Long createGroup(Group group_) throws DuplicateNameException, UnsupportedAttributeTypeException, InvalidAttributeException, InvalidGroupTypeException, InvalidParentException, InvalidNameException, InvalidCreatorException, InvalidSecurityMapException, InvalidMemberPolicyException, InvalidViewingPolicyException, InvalidAttributeValueException, PrivilegeException, DuplicateUuidException Create a new group.
groupNamemust be unique for public and team groups. If theGroupis of a group type with attributes, you must pass the correctAttributelist with the correctnameandtypefor eachAttributewith theGroup. Should be used in conjunction withGroupTypeService.getGroupTypeAttributes(Long groupTypeId)in order to properly fill thesetAttributes(Attribute[])field of theGrouppassed in. If theAttribute[]does not match the group type's attributes, then anInvalidAttributeExceptionwill be thrown.Note that when a
Groupspecifies a parent, it automatically becomes a memberGroupof its parent.The
Groupfields required for creation are:groupName,groupTypeId,creatorName,securityMapId. IfgroupTypeIdpoints to aGroupTypewith attributes, then all the attributes fields are required.In order to minimize possible breaks with the user interface, it is HIGHLY recommended that the
groupNamein theGroupobject be validated for illegal characters (only allow alphanumeric symbols and underscores).Note: Personal Groups must have CLOSED membership policy and HIGH member viewing policy and Team Groups cannot have an AUTOMATIC membership policy; otherwise
InvalidMemberPolicyExceptionorInvalidViewingPolicyExceptionwill be thrown- Parameters:
group_- theGroupto create- Returns:
- the id of the
Groupcreated - Throws:
DuplicateNameException- Thrown when the group is a public or team group and its name is not unique.UnsupportedAttributeTypeException- Thrown when trying to create or update an attribute type that is not supported by theGroupService.InvalidAttributeException- Thrown when trying to get, update, or delete anattributefor aGroupTypethat does not exist.InvalidGroupTypeException- This exception may be thrown by service methods detecting that a givenGroupTypedoes not exist.InvalidParentException- Thrown when user passes in invalidGroupas parent.InvalidNameException- thrown when the groupname is null or empty.InvalidCreatorException- Thrown when a invalid user is passed as creator ofGroup.InvalidSecurityMapException- thrown if the securitymapId field passed inGroupobject is invalid.InvalidMemberPolicyException- Thrown when membership policy is invalid or not applicable to theGroup.InvalidViewingPolicyException- Thrown when viewing policy is invalid or not applicable to theGroup.InvalidAttributeValueException- Thrown when incorrect attributes values are passed.PrivilegeException- Thrown when the user does not have privileges to create aGroup.DuplicateUuidException- Thrown when the UUID passed in already exists in the system.
-
createGroups
@Write(K_PERSONALIZATION) Long[] createGroups(Group[] groups_) throws UnsupportedAttributeTypeException, InvalidGroupTypeException, InvalidParentException, InvalidNameException, InvalidCreatorException, InvalidSecurityMapException, InvalidMemberPolicyException, InvalidViewingPolicyException, PrivilegeException, InvalidAttributeException, InvalidAttributeValueException, DuplicateUuidException Create new groups.
groupNamemust be unique for public and team groups. It does not support creating groups with group types having attributes. If groups with group type having attributes are passed, it simply returnsnullids in the corresponding entries for those groups in the return list, as no groups are created for these cases.Note that when a
Groupspecifies a parent, it automatically becomes a memberGroupof its parent.The
Groupfields required for creation are:groupName,groupTypeId,creatorName,securityMapId.In order to minimize possible breaks with the user interface, it is HIGHLY recommended that
groupNamein theGroupobject be validated for illegal characters (only allow alphanumeric symbols and underscores).Note: Personal Groups must have CLOSED membership policy and HIGH member viewing policy and Team Groups cannot have AUTOMATIC membership policy; otherwise
InvalidMemberPolicyExceptionorInvalidViewingPolicyExceptionwill be thrown- Parameters:
groups_- the groups to create- Returns:
- the ids of the groups created; null entries for the corresponding groups with group type having attributes.
- Throws:
UnsupportedAttributeTypeException- Thrown when trying to create or update an attribute type that is not supported by the Personalization service.InvalidGroupTypeException- This exception may be thrown by service methods detecting that a givenGroupTypedoes not exist.InvalidParentException- Thrown when user passes in invalidGroupas parent.InvalidNameException- thrown when the groupname is null or empty.InvalidCreatorException- Thrown when a invalid user is passed as creator ofGroup.InvalidSecurityMapException- thrown if the securitymapId field passed inGroupobject is invalid.InvalidMemberPolicyException- Thrown when membership policy is invalid or not applicable to theGroup.InvalidViewingPolicyException- Thrown when viewing policy is invalid or not applicable to theGroup.PrivilegeException- Thrown when the user does not have privileges to create one or more of theGroups.InvalidAttributeException- Never thrown. Is only declared for backwards compatibility.InvalidAttributeValueException- Never thrown. Is only declared for backwards compatibility.DuplicateUuidException- Thrown when the UUID of any of the groups already exists or if the same UUID is passed in for several groups
-
updateGroup
@Write(K_PERSONALIZATION) void updateGroup(Group group_) throws InvalidGroupException, DuplicateNameException, RecursiveRelationshipException, InvalidParentException, UnsupportedAttributeTypeException, InvalidAttributeException, InvalidGroupTypeException, InvalidSecurityMapException, InvalidMemberPolicyException, InvalidViewingPolicyException, InvalidAttributeValueException, PrivilegeException Updates aGroup.groupNamemust be unique for public and team groups. If thegroupis of a group type with attributes, you must pass the correctAttributelist with the correctnameandtypefor eachAttributewith theGroup. Should be used in conjunction withGroupTypeService.getGroupTypeAttributes(Long groupTypeId)in order to properly fill thesetAttributes(Attribute[])field of theGrouppassed in. If theAttribute[]does not match the Group Type's attributes, then anInvalidAttributeExceptionwill be thrown.The following fields are set when a
Groupis created and cannot be changed using this method:idandgroupTypeId.Only the following fields can be changed:
groupName,description,parentId,securityMapId,attributes,memberPolicyId,viewingPolicyId,delegatedCreation.
If the group does not have a parent thenparentIdshould be set to -1.
Note that when agroupspecifies a parent, it automatically becomes a membergroupof its parent.In order to minimize possible breaks with the user interface, it is HIGHLY recommended that the
groupNamebe validated for illegal characters (only allow alphanumeric symbols and underscores).- Parameters:
group_- thegroupto update. Groupidmust be populated as well asgroupName,groupTypeId,creatorName,securityMapId,viewingPolicyId,memberPolicyId, andparentId. IfgroupTypeIdpoints to aGroupTypewithattributes, then all theattributesfields are required.- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id or group name is passed into a service method.DuplicateNameException- This exception may be thrown by service methods detecting that a given name is not unique.RecursiveRelationshipException- Thrown when a relationship is trying to be created that will result in a recursive loop (for instance, if the group is being updated to be a child of itself).InvalidParentException- Thrown when user passes in invalid group as parent.UnsupportedAttributeTypeException- Thrown when trying to create or update an attribute type that is not supported by the Personalization service.InvalidAttributeException- Thrown when trying to get, update, or delete an attribute for a group type that does not exist.InvalidGroupTypeException- This exception may be thrown by service methods detecting that a given group type does not exist.InvalidSecurityMapException- thrown if the securitymap Id field passed in Group object is invalid.InvalidMemberPolicyException- Thrown when membership policy is invalid or not applicable to the group.InvalidViewingPolicyException- Thrown when viewing policy is invalid or not applicable to the group.InvalidAttributeValueException- Thrown when incorrect attributes values are passed.PrivilegeException- Thrown when the user does not have privileges to update the group.
-
updateGroups
@Write(K_PERSONALIZATION) void updateGroups(Group[] groups_) throws InvalidGroupException, RecursiveRelationshipException, InvalidParentException, UnsupportedAttributeTypeException, InvalidAttributeException, InvalidGroupTypeException, InvalidSecurityMapException, InvalidMemberPolicyException, InvalidViewingPolicyException, InvalidAttributeValueException, PrivilegeException Updates multipleGroupobjects.groupNamemust be unique for public and team groups. If thegroupis of a group type with attributes, you must pass the correctAttributelist with the correctnameandtypefor eachAttributewith thegroup. Should be used in conjunction withGroupTypeService.getGroupTypeAttributes(Long groupTypeId)in order to properly fill thesetAttributes(Attribute[])field of theGrouppassed in. If theAttribute[]does not match the Group Type's attributes, then anInvalidAttributeExceptionwill be thrown.The following fields are set when a
Groupis created and cannot be changed using this method:idandgroupTypeId.Only the following fields can be changed:
groupName,description,parentId,securityMapId,attributes,memberPolicyId,viewingPolicyId,delegatedCreation.
If the group does not have a parent thenparentIdshould be set to -1.
Note that when agroupspecifies a parent, it automatically becomes a membergroupof its parent.In order to minimize possible breaks with the user interface, it is HIGHLY recommended that the
groupNamebe validated for illegal characters (only allow alphanumeric symbols and underscores).- Parameters:
groups_- thegroupsto update. Groupidmust be populated as well asgroupName,groupTypeId,creatorName,securityMapId,viewingPolicyId,memberPolicyId, andparentId. IfgroupTypeIdpoints to aGroupTypewithattributes, then all theattributesfields are required.- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id, group name is passed into a service method or when the group passed is a null value.RecursiveRelationshipException- Thrown when a relationship is trying to be created that will result in a recursive loop (for instance, if the group is being updated to be a child of itself).InvalidParentException- Thrown when user passes in invalid group as parent.UnsupportedAttributeTypeException- Thrown when trying to create or update an attribute type that is not supported by the Personalization service.InvalidAttributeException- Thrown when trying to get, update, or delete an attribute for a group type that does not exist.InvalidGroupTypeException- This exception may be thrown by service methods detecting that a given group type does not exist.InvalidSecurityMapException- thrown if the securitymap Id field passed in Group object is invalid.InvalidMemberPolicyException- Thrown when membership policy is invalid or not applicable to the group.InvalidViewingPolicyException- Thrown when viewing policy is invalid or not applicable to the group.InvalidAttributeValueException- Thrown when incorrect attributes values are passed.PrivilegeException- Thrown when the user does not have privileges to update one or more of the groups.
-
deleteGroup
@Write(K_PERSONALIZATION) void deleteGroup(Long groupId_) throws InvalidGroupException, SystemGroupException, GroupIsAttributeException Deletes a single group. NOTE: To register in the other (non-personalization) portal applications that agrouphas been deleted, this call must be followed by a call toAdministrationService.notifyGroupDeletion(java.lang.Long)- Parameters:
groupId_- the id of the group to delete- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.SystemGroupException- Thrown when trying to delete a group that is core to the Personalization service such as Portal Administrators or Collaboration Administrators.GroupIsAttributeException- Thrown when trying to delete a group that is being used as an attribute for another group.
-
getGroupName
Gets a group name for a given group id.- Parameters:
groupId_- the id of the group- Returns:
- the name of the group
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
getGroupNames
Gets a list of group names for a given list of group ids.- Parameters:
groupIds_- the ids of groups- Returns:
- the matching list of group names
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
getGroupNamesList
Gets a list of group names for a given list of group ids.- Parameters:
groupIds_- the ids of groups- Returns:
ResultListcontaining group names and result codes. Each result code will be eitherCODE_VALID(for valid group ids) orCODE_INVALID(for invalid group ids) fromResultList. The results will only contain the names of the valid groups and thus may have a length less than the number of group ids passed in.
-
getGroupAttribute
@Read(K_PERSONALIZATION) Attribute getGroupAttribute(Long groupId_, String attributeName_) throws InvalidGroupException Gets a group attribute for a given group id.- Parameters:
groupId_- the id of the groupattributeName_- the name of the desired attribute- Returns:
- the requested Attribute, or null if the attribute does not exists
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.NullPointerException- if the passed group id and/or the attribute name are null.
-
getGroup
@Read(K_PERSONALIZATION) Group getGroup(Long groupId_) throws InvalidGroupException, PrivilegeException Get a group by id.- Parameters:
groupId_- the group id- Returns:
- the requested group
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the currentUserdoes not have rights to view the group
-
getGroups
@Read(K_PERSONALIZATION) Group[] getGroups(Long[] groupIds_) throws InvalidGroupException, PrivilegeException Gets a list of groups for a given list of group ids.- Parameters:
groupIds_- the group ids- Returns:
- the list of groups
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the current user does not have rights to view the one or more of groups.
-
getCredentials
Returns a Credentials bean directly from the back-end, containing the group membership relations for the user in this Service Context. This is a System-level call not meant to be used externally.- Returns:
- Credentials bean with the user's membership data.
- Throws:
InvalidUserException- if the credentials for that user cannot be retrieved.
-
getCachedCredentials
Returns the cached Credentials bean containing the group membership relations for the user in this Service Context. If the user does not have an entry in the cache, then the Credentials are retrieved from the back-end. Also note that changes made directly on this bean won't be persisted in the system. TheCredentialsbean is for practical purposed read only. This is a System-level call not meant to be used externally.- Returns:
Credentialsbean with the user's membership data.- Throws:
InvalidUserException- if the credentials for that user cannot be retrieved.
-
getGroupsOfType
@Deprecated @Read(K_PERSONALIZATION) Group[] getGroupsOfType(Long groupTypeId_) throws InvalidGroupTypeException Deprecated.Gets a list of groups for a given group type.- Parameters:
groupTypeId_- the group type id- Returns:
- the groups
- Throws:
ServiceException- if any system-level error occursInvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.
-
getGroupsOfTypePaging
@Read(K_PERSONALIZATION) ResultPage getGroupsOfTypePaging(Long groupTypeId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupTypeException Gets a ResultPage containing a list of groups for a given group type- Parameters:
groupTypeId_- the group type idstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a ResultPage containing a list of
Groupobjects - Throws:
InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.
-
getGroupTypeForGroup
Gets group types for a list of groups.- Parameters:
groupIds_- the group ids- Returns:
- group type ids. should have always have a type, even if just default.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group ids are passed into a service method.
-
getGroupIdsForUserByRole
@Read(K_PERSONALIZATION) Long[] getGroupIdsForUserByRole(String username_, Integer role_) throws InvalidUserException, UnsupportedRoleException, PrivilegeException Gets a list of group ids for which a given user has a given role. Supported roles are:USER_ROLE_CREATORUSER_ROLE_ADMINISTRATOR- Note that when using this role, if the user is a System Administrator, only system groups will be returned.USER_ROLE_MEMBER
- Parameters:
username_- the unique key for the userrole_- the role id- Returns:
- the list of group ids
- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.UnsupportedRoleException- This exception is thrown whenever an invalid role id is passed into a service method.PrivilegeException
-
getGroupsForUserByRole
@Read(K_PERSONALIZATION) Group[] getGroupsForUserByRole(String username_, Integer role_) throws InvalidUserException, UnsupportedRoleException, PrivilegeException Gets a list of groups for which a given user has a given role. Supported roles are:USER_ROLE_CREATORUSER_ROLE_ADMINISTRATOR- Note that when using this role, if the user is a System Administrator, only system groups will be returned.USER_ROLE_MEMBER
- Parameters:
username_- the userrole_- the role id- Returns:
- the list of groups
- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.UnsupportedRoleException- This exception is thrown whenever an invalid role id is passed into a service method.PrivilegeException
-
getGroupsForUserByRolePaging
@Read(K_PERSONALIZATION) ResultPage getGroupsForUserByRolePaging(String username_, Integer role_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, UnsupportedRoleException, PrivilegeException Gets a ResultPage containing list of groups for which a given user has a given role. Supported roles are:- Parameters:
username_- the userrole_- the rolestartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list group objects - Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.UnsupportedRoleException- thrown when an invalid role id is passed.PrivilegeException
-
getGroupsOfTypeForMemberUser
@Deprecated @Read(K_PERSONALIZATION) Group[] getGroupsOfTypeForMemberUser(Long[] groupTypeIds_, String username_) throws InvalidGroupTypeException, InvalidUserException Deprecated.UsegetGroupsForUserByRolePaging(String, Integer, int, int, Integer, Integer)and extract groups of the desired types from the results.Gets a list of groups, for a given list of group types, of which a given user is a memeber- Parameters:
groupTypeIds_- the group type idsusername_- the username of the user to get groups for- Returns:
- the list of groups
- Throws:
InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.
-
getMemberGroups
@Read(K_PERSONALIZATION) Group[] getMemberGroups(Long groupId_) throws InvalidGroupException, PrivilegeException Gets a list of members groups of a group- Parameters:
groupId_- the group for which to get members- Returns:
- the member groups. Note: If the user can see the group but cannot view members of group, the returned array will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user is not the administrator of the group and the group is not public.
-
getMemberGroupsPaging
@Read(K_PERSONALIZATION) ResultPage getMemberGroupsPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Gets a ResultPage containing a list of group members of a group- Parameters:
groupId_- the group for which to get group membersstartIndex_- the index of the firstGroupthat will be returnedbatchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which theGroupobjects will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a ResultPage containing
Groupobjects, representing the member groups. Note: If the user can see the group but cannot view members of group, the results array will be of length 0. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user is not the administrator of the group and the group is not public.
-
getMemberUsers
@Read(K_PERSONALIZATION) User[] getMemberUsers(Long groupId_) throws InvalidGroupException, PrivilegeException Gets a list of member users of the specified group- Parameters:
groupId_- the group to get members from.- Returns:
- the member users. Note: If the current user can see the group but cannot view members of group, the returned array will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user is not the administrator of the group and the group is not public.
-
getMemberUsersPaging
@Read(K_PERSONALIZATION) ResultPage getMemberUsersPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Gets a ResultPage containing a list of member users of the specified group- Parameters:
groupId_- the group for which to get membersstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inUsersortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofUserobjects. Note: If the current user can see the group but cannot view members of group, the results array will be of length 0. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user is not the administrator of the group and the group is not public.
-
getMemberUsers
@Read(K_PERSONALIZATION) User[] getMemberUsers(Long[] groupIds_) throws InvalidGroupException, PrivilegeException Gets a list of distinct users that are members of any of the specified groups.- Parameters:
groupIds_- the groups to get members from.- Returns:
- the member users. Note: If the current user can see a group but cannot view members of the group, the returned list will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method. *PrivilegeException- if the user is not the administrator of one of the groups and the group is not public.
-
getMemberUserCount
@Read(K_PERSONALIZATION) int getMemberUserCount(Long groupId_) throws InvalidGroupException, PrivilegeException Gets a count of distinct users that are members of the specified group.- Parameters:
groupId_- the group whose user members are to be counted- Returns:
- the count of member users. Note: If the user can see the group but cannot view members of group, the returned member count will be 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user does not have sufficient privileges
-
getMemberGroupCount
@Read(K_PERSONALIZATION) int getMemberGroupCount(Long groupId_) throws InvalidGroupException, PrivilegeException Gets the number of distinct groups {that are members of the specified group.- Parameters:
groupId_- the group to count group members of.- Returns:
- the count. Note: If the current user can see the group but cannot view members of group, the returned member count will be 0.
- Throws:
ServiceException- if any system-level error occursInvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user does not have sufficient privileges
-
addMemberGroup
@Write(K_PERSONALIZATION) void addMemberGroup(Long memgroupId_, Long groupId_) throws InvalidGroupException, RecursiveRelationshipException, PrivilegeException Adds a member group to a group.- Parameters:
memgroupId_- id of the group to addgroupId_- the group to add the member to- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.RecursiveRelationshipException- Thrown when a relationship is trying to be created that will result in a recursive loop (eg if the member group ID and the group ID refer to the same group).PrivilegeException- Thrown when the user does not have privileges to add the group as a member
-
addMemberGroups
@Write(K_PERSONALIZATION) void addMemberGroups(Long[] memgroupIds_, Long groupId_) throws InvalidGroupException, RecursiveRelationshipException, PrivilegeException Adds member groups to a group- Parameters:
memgroupIds_- ids of the groups to addgroupId_- the group to add members to- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.RecursiveRelationshipException- Thrown when a relationship is trying to be created that will result in a recursive loop (eg if a member group ID and the group ID refer to the same group)..PrivilegeException- Thrown when the user does not have privileges to add one or more of the groups as members
-
addMemberUser
@Write(K_PERSONALIZATION) void addMemberUser(String username_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Adds a member user to a group .- Parameters:
username_- username of the user to add to the groupgroupId_- the group to add the member to- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to add the user as a member
-
addMemberUsers
@Write(K_PERSONALIZATION) void addMemberUsers(String[] usernames_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Adds member users to a group- Parameters:
usernames_- the usernames of the users to addgroupId_- the group to add members to- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to add one or more the users as members
-
addMyselfToGroup
@Write(K_PERSONALIZATION) void addMyselfToGroup(Long groupId_) throws InvalidGroupException, PrivilegeException Adds oneself to the given group- Parameters:
groupId_- the id of the group which the current user wishes to join- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to add himself or herself as a member of the group
-
removeMemberGroup
@Write(K_PERSONALIZATION) void removeMemberGroup(Long memgroupId_, Long groupId_) throws InvalidGroupException, PrivilegeException Removes a member group from a group- Parameters:
memgroupId_- id of the member to removegroupId_- id of the group to remove member from- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to remove the group's membership
-
removeMemberGroups
@Write(K_PERSONALIZATION) void removeMemberGroups(Long[] memgroupIds_, Long groupId_) throws InvalidGroupException, PrivilegeException Removes a list of member groups from a group- Parameters:
memgroupIds_- the ids of members to removegroupId_- id of thegroupto remove member from- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to remove any of the group's memberships
-
removeMemberUser
@Deprecated @Write(K_PERSONALIZATION) void removeMemberUser(String username_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Deprecated.UseremoveMemberUsers(String[], Long)and pass a single user in the array.Removes a member user from a group- Parameters:
username_- the username of the member to removegroupId_- the id of the group to remove the member from- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to remove the user's membership
-
removeMemberUsers
@Write(K_PERSONALIZATION) void removeMemberUsers(String[] usernames_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Removes a list of member users from a group- Parameters:
usernames_- the usernames of the members to removegroupId_- the id of the group to remove members from- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- Thrown when the user does not have privileges to remove any of the users' membership
-
removeMyselfFromGroup
Removes oneself from the given group- Parameters:
groupId_- the id of the group from which one wants to remove oneself- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
findGroups
@Deprecated @Read(K_PERSONALIZATION) Group[] findGroups(GroupSearch groupSearch_, boolean caseSensitive_) throws UnsupportedOperatorException Deprecated.Finds groups based on criteria submitted in theGroupSearchThe supported search operators are specified inGroupSearchfor agroupSeegetOperatorsForAttributeType()inGroupTypeServiceto obtain a list of possible operatorsOperatorfor a given data type. TheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search beancaseSensitive_-falsefor case insensitive,truefor case sensitive.- Returns:
- a list of groups that matched the search criteria
- Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
isGroupDescendant
@Read(K_PERSONALIZATION) boolean isGroupDescendant(Long groupId_, Long parentGroupId_) throws InvalidGroupException Checks if a group is a descendant of another group (by parent-child relationship).- Parameters:
groupId_- the id of the groupparentGroupId_- id of the group for which to check the descendants- Returns:
- true if given group was descendant of passed in parent group, else false.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
isUserMember
@Read(K_PERSONALIZATION) boolean isUserMember(String username_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Checks if a user is a member of a group- Parameters:
username_- the usernamegroupId_- the group id to check- Returns:
- true if passed in user is member of given group, else false
- Throws:
InvalidUserException- This exception is thrown whenever a non-empty invalid username is passed into the service method.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into the service method.NullPointerException- If the passed username is either null or empty.PrivilegeException
-
isUserMember
@Read(K_PERSONALIZATION) boolean isUserMember(String[] username_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Checks multiple potential usernames to determine if a user is a member of a group- Parameters:
username_- the usernamesgroupId_- the group id to check- Returns:
- true if passed in user is member of given group, else false
- Throws:
InvalidUserException- This exception is thrown whenever all non-empty/non-null usernames passed into the service method are invalid.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into the service method.NullPointerException- If all passed usernames are either null or empty.PrivilegeException
-
isUserMember
@Read(K_PERSONALIZATION) boolean isUserMember(String username_, String groupUuid_) throws InvalidUserException, InvalidGroupException, PrivilegeException Checks if a user is a member of a group- Parameters:
username_- the usernamegroupUuid_- the group UUID to check- Returns:
- true if passed in user is member of given group, else false
- Throws:
InvalidUserException- This exception is thrown whenever all non-empty/non-null usernames passed into the service method are invalid.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into the service method.NullPointerException- If all passed usernames are either null or empty.PrivilegeException
-
isUserMember
@Read(K_PERSONALIZATION) boolean isUserMember(String[] username_, String groupUuid_) throws InvalidUserException, InvalidGroupException, PrivilegeException Checks multiple potential usernames to determine if a user is a member of a group- Parameters:
username_- the usernamesgroupUuid_- the group UUID to check- Returns:
- true if passed in user is member of given group, else false
- Throws:
InvalidUserException- This exception is thrown whenever all non-empty/non-null usernames passed into the service method are invalid.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into the service method.NullPointerException- If all passed usernames are either null or empty.PrivilegeException
-
getRootTrees
@Read(K_PERSONALIZATION) Tree[] getRootTrees(Long groupTypeId_, String relationshipType_, boolean singleGroupType_, int descendentDepth_) throws InvalidGroupTypeException Get a set of groups structured into one or more trees. Each node in the tree will represent a group. Theid,nameof the node will beidandgroupNameof the group, anddatafield of the node will be the group itself.- Parameters:
groupTypeId_- The group type of the root node groups.relationshipType_- The relationship connecting the groups. Currently, the only permissible value isRELATIONSHIP_TYPE_HEIRARCHY.singleGroupType_-trueif only groups of the same group type as the root should be returned;falseif all groups, regardless of group type, should be returned.descendentDepth_- The number of levels below the root that should be returned.- Returns:
- The
treerepresenting the root level groups - Throws:
InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.
-
getRootTreesSameTypeWithRoles
@Read(K_PERSONALIZATION) Tree[] getRootTreesSameTypeWithRoles(Long groupTypeId_, Integer[] roleTypes_, int descendantDepth_) throws InvalidGroupTypeException Get a set of groupsGroupstructured into one or more treesTree. Only those groups are returned for which the user's privilege matches the specified roles- Parameters:
groupTypeId_- The group typeGroupTypeof the root node groups.roleTypes_- array of roles which should match user's privilegedescendantDepth_- The number of levels below the root that should be returned.- Returns:
- The
treerepresenting the root level groups - Throws:
InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.
-
getTopLevelGroupsPaging
@Read(K_PERSONALIZATION) ResultPage getTopLevelGroupsPaging(Long groupTypeId_, String relationshipType_, boolean singleGroupType_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupTypeException Get a ResultPage containing a list of groups structured into one or more trees in theresultfield. Each node in the tree will represent a group. Theid,nameof the node will beidandgroupNameof the group, anddatafield of the node will be the group itself.- Parameters:
groupTypeId_- The group type of the root node groups.relationshipType_- The relationship connecting the groups. Currently, the only permissible value isRELATIONSHIP_TYPE_HEIRARCHY.singleGroupType_-trueif only groups of the same group type as the root should be returned;falseif all groups, regardless of group type, should be returned.startIndex_- the index of the firstGroupthat will be returnedbatchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which theGroupobjects will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining batchSize_Groupobjects. - Throws:
InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.
-
getRootTrees
@Read(K_PERSONALIZATION) Tree[] getRootTrees(Long groupTypeId_, String relationshipType_, Long[] groupTypeIds_, int descendentDepth_) throws InvalidGroupTypeException Get a set of groups structured into one or more trees. * Each node in the tree will represent a group. Theid,nameof the node will beidandgroupNameof the group, anddatafield of the node will be the group itself.- Parameters:
groupTypeId_- The group type of the root node groups.relationshipType_- The relationship connecting the groups. Currently, the only permissible value isRELATIONSHIP_TYPE_HEIRARCHY.groupTypeIds_- Only groups of these group types should be returned in the tree.descendentDepth_- The number of levels below the root that should be returned.- Returns:
- The
Trees - Throws:
InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.
-
getTreeViewForGroup
@Read(K_PERSONALIZATION) TreePivot getTreeViewForGroup(Long groupId_, boolean singleGroupType_, String relationshipType_, int descendentDepth_) throws InvalidGroupException, PrivilegeException Get a view into the tree pivoted at a particular group. Breadcrumbs will be returned in theTreePivotEach node in the tree will represent a group. Theid,nameof the node will beidandgroupNameof the group, anddatafield of the node will be the group itself.- Parameters:
groupId_- The id of thegroupto use as the root of thetree.singleGroupType_-trueif only groups of the same group type as the root should be returned;falseif all groups, regardless of group type, should be returned.relationshipType_- The relationship connecting the groups. Currently, the only permissible value isRELATIONSHIP_TYPE_HEIRARCHYdescendentDepth_- The number of levels below the root that should be returned.- Returns:
- The view into the tree.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- This exception is thrown when the user is not a member of the received group- See Also:
-
getTreeViewForGroup
@Read(K_PERSONALIZATION) TreePivot getTreeViewForGroup(Long groupId_, Long[] groupTypeIds_, String relationshipType_, int descendentDepth_) throws InvalidGroupException, InvalidGroupTypeException, PrivilegeException Get a view into the tree pivoted at a particular group Each node in the tree will represent a group. Theid,nameof the node will beidandgroupNameof the group, anddatafield of the node will be the group itself.- Parameters:
groupId_- The id of thegroupto use as the root of thetree.groupTypeIds_- Only groups of these group types should be returned in the tree.relationshipType_- The relationship connecting the groups. Currently, the only permissible value isRELATIONSHIP_TYPE_HEIRARCHY.descendentDepth_- The number of levels below the root that should be returned.- Returns:
- The view into the tree.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.InvalidGroupTypeException- This exception is thrown whenever an invalid group type id is passed into a service method.PrivilegeException- This exception is thrown when the user is not a member of the received group- See Also:
-
getTreeViewForGroupSameTypeWithRoles
@Read(K_PERSONALIZATION) TreePivot getTreeViewForGroupSameTypeWithRoles(Long groupId_, Integer[] roleTypes_, int descendantDepth_) throws InvalidGroupException Get a view into the tree pivoted at a particular group Each node in the tree will represent a group. Only those groups are returned for which the user's privilege matches the specified roles. Theid,nameof the node will beidandgroupNameof the group, anddatafield of the node will be the group itself.- Parameters:
groupId_- The id of thegroupto use as the root of thetree.roleTypes_- array of roles which should match user's privilegedescendantDepth_- The number of levels below the root that should be returned.- Returns:
- The view into the tree.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
doesGroupExist
Checks to see if a given group exists. Returns true if it exists, false if not.- Parameters:
groupId_- id of the group to check for existence in system.- Returns:
- true if given group exists, else false.
-
addGroupsToMyGroups
Adds a list of groups to My Groups for logged in user. My Groups is a list of groups that the user is tracking and not groups that the user belongs to or administrates- Parameters:
groupIds_- groups to add to My Groups- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
removeGroupsFromMyGroups
Removes a list of groups from My Groups for logged-in user. My Groups is a bookmarked list of groups, and ARE NOT groups that the user is a member of or an administrator of.- Parameters:
groupIds_- groups to remove from My Groups- See Also:
-
getMyGroupIds
Gets Ids for logged-in user's My Groups. My Groups is a bookmarked list of groups, and ARE NOT groups that the user is a member of or an administrator of.- Returns:
- group Ids in users's My Groups list
-
getMyGroups
@Deprecated @Read(K_PERSONALIZATION) ResultPage getMyGroups(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.use getFavoriteGroupsGets a ResultPage containing a list of groups for logged-in user's My Groups. My Groups is a bookmarked list of groups, and ARE NOT groups that the user is a member of or an administrator of.- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining theGroupobjects.
-
getGroupSecurityTypes
Gets the list of group security types that are available for a particular action. For example, a basic user will only be able to create personal and team groups.- Parameters:
actionId_- id of the action for which security types are needed. This is one of theACTION_GROUP_XXXconstants- Returns:
- the list of group security types for a particular action
-
getGroupMembershipPolicyTypes
@Read(K_PERSONALIZATION) GroupMemberPolicy[] getGroupMembershipPolicyTypes(Long groupSecurityTypeId_) Gets the list of group membership policy types for a particular group security type. Supported security types are:- Parameters:
groupSecurityTypeId_- id of group security type.- Returns:
- the list of group membership policy types for a particular group security type
-
getGroupMemberViewingPolicyTypes
@Read(K_PERSONALIZATION) GroupMemberViewingPolicy[] getGroupMemberViewingPolicyTypes(Long groupSecurityTypeId_) Gets the list of group member viewing policies for a particular group security type. Supported security types are:- Parameters:
groupSecurityTypeId_- id of group security type.- Returns:
- the list of group member viewing policies for a particular group security type
-
getAllAttributeTypes
Gets the list of group attribute types in the system- Returns:
- the list of group attribute types
-
findNonMemberAncestorGroups
@Deprecated @Read(K_PERSONALIZATION) Group[] findNonMemberAncestorGroups(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_) throws UnsupportedOperatorException Deprecated.Retrieves a result set that consists list of groups for a group search that are not ancestors (by parent-member relationship) of the given group. This is used to prevent circular member relationships. TheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup". The supported search operators are specified in GroupSearch for a group- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitivegroupId_- the group id- Returns:
- the found groups
- Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
findAvailableParentGroups
@Deprecated @Read(K_PERSONALIZATION) Group[] findAvailableParentGroups(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_) throws UnsupportedOperatorException Deprecated.Finds all groups available for setting as parent. These will be groups over which the current user has administrative privileges that are also not members of the given group or members of members of the given group. The supported search operatorsOperatorare specified in GroupSearchGroupSearchTheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitivegroupId_- the group id- Returns:
- the found groups
- Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
findAdminGroups
@Deprecated @Read(K_PERSONALIZATION) Group[] findAdminGroups(GroupSearch groupSearch_, boolean caseSensitive_) throws UnsupportedOperatorException Deprecated.Finds groups of which the current user is administrator Supported operators are listed inGroupSearchTheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitive- Returns:
- the list of groups meeting the search criteria
- Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
getRuleSetForGroup
Gets membership rule set for a Group- Parameters:
groupId_- the group id of the group that all these rules belong to.- Returns:
RuleSetfor the given roup.- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
updateRuleSetForGroup
Updates the membership rule set for aGroup. Note that there is only oneRuleSetfor eachGroup, but eachRuleSetmay contain multiple rules. This method will replace the currentRuleSetwith the one passed in.- Parameters:
ruleSet_- adds the givenRuleSetto the group.- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
getGroupSummaryForUser
@Deprecated @Read(K_PERSONALIZATION) GroupSummary[] getGroupSummaryForUser(String username_) throws InvalidUserException, PrivilegeException Deprecated.Gets summaries for the groups of which the given user is a member or administrator. Note: the security on personal groups will further filter out groups of which the user is a member but not an administrator as only administrators of personal groups have permissions to see those groups.- Parameters:
username_- the username- Returns:
- list of
GroupSummary - Throws:
InvalidUserException- thrown when an invalid username is passed in.PrivilegeException
-
getGroupSummaryForUserPaging
@Read(K_PERSONALIZATION) ResultPage getGroupSummaryForUserPaging(String username_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidUserException, PrivilegeException RetrievesGroupSummarybeans for every group for which the givenUseris a member or administrator. Note: the security on personal groups will further filter out groups of which the user is a member but not an administrator as only administrators of personal groups have permissions to see those groups.- Parameters:
username_- The username of theUserfor which to retrieve the groups.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. UseConstants.COUNT_ALLto return the entire collection, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted.sortOrder_- the order in which to sort the results. This is one ofConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING- Returns:
- A
ResultPagewhich contains an array ofGroupSummaryobjects. - Throws:
InvalidUserException- if the specifiedUserdoes not existPrivilegeException
-
isGroupSystemGroup
Checks to see if a given group is a system group. System groups cannot be deleted, and their names may not be edited.- Parameters:
groupId_- the group ID- Returns:
- true if the given group is a System group, else false.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
getGroupsForUserByRoles
@Deprecated @Read(K_PERSONALIZATION) Group[] getGroupsForUserByRoles(String username_, Integer[] roles_) throws UnsupportedRoleException, InvalidUserException, PrivilegeException Deprecated.Retrieves a list of groups for which the given user has any of the given roles. Supported roles are:- Parameters:
username_- the userroles_- ids of roles- Returns:
- the list of groups
- Throws:
InvalidUserException- thrown when an invalid username is passed to this service method.UnsupportedRoleException- thrown when an invalid role id is passed.PrivilegeException
-
getGroupsForUserByRolesPaging
@Read(K_PERSONALIZATION) ResultPage getGroupsForUserByRolesPaging(String username_, Integer[] roles_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws UnsupportedRoleException, InvalidUserException, PrivilegeException Retrieves a ResultPage containing the list of groups for which the given user has any of the given roles. Supported roles are:- Parameters:
username_- the userroles_- ids of rolesstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining list ofGroupobjects. - Throws:
UnsupportedRoleException- thrown when an invalid role id is passed.InvalidUserException- thrown when an invalid username is passed to this service method.PrivilegeException
-
getGroupActions
@Read(K_PERSONALIZATION) Boolean[] getGroupActions(Long groupId_, Integer[] actionIds_) throws InvalidGroupException Gets s Boolean array, representing whether actions with the given ids can be performed on a given group by the current user- Parameters:
groupId_- id of the groupactionIds_- ids of actions that are requested to be checked. Each of these is one of theACTION_GROUP_XXXconstants- Returns:
- Boolean array. An index in the array is
Boolean.TRUEif the current user can perform the action at the corresponding index inactionIds_on the given group - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
canUseGroupName
@Read(K_PERSONALIZATION) boolean canUseGroupName(String groupName_, Long groupSecurityType_) throws InvalidSecurityMapException Indicates whether a user can create a new group with the given name of the given group security type. Public group names must be unique.- Parameters:
groupName_- name of the groupgroupSecurityType_- group security type can be one of the following:- Returns:
- true if the passed in group name can be used for a group of the given group security type, else false.
- Throws:
InvalidSecurityMapException- thrown when a invalid groupSecurity Type is passed.- See Also:
-
getParentGroupsForDelegatedCreation
Gets the groups for which the logged-in user is authorized to set as a parent when creating public child groups. In order to create the public child group, the user must have administrator privileges to the parent group and the parent group must have delegated creation turned on.- Returns:
- list of groups that can be used as parent groups.
-
getParentGroupsForDelegatedUpdate
Gets the groups for which the logged-in user is authorized to set as parent when updating public child groups. This function is similar togetParentGroupsForDelegatedCreation()except that it filters out groups that are members of the passed in group and those that are children or sub-children of the passed in group.- Parameters:
groupId_- the id of the group- Returns:
- list of groups that can be used as parent groups.
-
getParentGroupsForDelegatedCreationPaging
@Read(K_PERSONALIZATION) ResultPage getParentGroupsForDelegatedCreationPaging(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Gets a ResultPage of parent groups for which the logged-in user is authorized to create public child groups.- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofGroupobjects.
-
findGroupsPaging
@Read(K_PERSONALIZATION) ResultPage findGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws UnsupportedOperatorException Finds groups based on criteria submitted in the GroupSearch The supported search operators are specified in GroupSearch for agroupSeegetOperatorsForAttributeType()inGroupTypeServiceto obtain a list of possible operatorsOperatorfor a given data type. TheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitivestartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list of groups matching search criteria - Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
findNonMemberAncestorGroupsPaging
@Read(K_PERSONALIZATION) ResultPage findNonMemberAncestorGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws UnsupportedOperatorException Retrieves aResultPageof list of groups for a group search that are not ancestors (by parent-member relationship) of the given group. This is used to prevent circular member relationships. The supported search operators are specified in GroupSearch for a group TheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitivegroupId_- the id of a groupstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a ResultPage containing a list of
Groupobjects - Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
findAvailableParentGroupsPaging
@Read(K_PERSONALIZATION) ResultPage findAvailableParentGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws UnsupportedOperatorException Gets a ResultPage containing a list of all groups available for setting as parent. These will be groups that the user have administrative privileges and are not members of the given group or members of members of the given group. The supported search operators are specified in GroupSearch TheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitivegroupId_- the id of a GroupstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofGroupsobjects, representing those groups available to be used as parent groups. - Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
findAdminGroupsPaging
@Read(K_PERSONALIZATION) ResultPage findAdminGroupsPaging(GroupSearch groupSearch_, boolean caseSensitive_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws UnsupportedOperatorException Finds all groups of which you are administrator and which also match the given search criteria. The supported search operators are specified in GroupSearch TheGroupSearchobject should be populated with the group fields to be searched on, and the criteria to be used in performing the search. For example, theGroupSearchmight have thegroupNamefield set to "myGroup" and theoperatorGroupNamefield set toOperator#EQUALS. Such a search will return all groups whosegroupNameis "myGroup".- Parameters:
groupSearch_- the group search formcaseSensitive_- true if search is case sensitivestartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofGroupobjects matching the search criteria. - Throws:
UnsupportedOperatorException- Thrown when a given operation is not supported by the Personalization service.
-
getApplicationName
Gets the name of the application on which this service is running.- Returns:
- the name of the application
-
getWorkspace
Gets the current memory profile for the workspace.- Returns:
- array of Strings of length 4 describing memory usage:
- [0]Used - Memory Used by the Server so far for storage
- [1]Allocated - Memory allocated for use. Often if a large data item was allocated by a server and subsequently freed, this value will be large compared to "Used". If nearly all memory allocated is in use, this value will be close to (but always higher than) "Used"
- [2]Mapped - is the space used by memory-mapped files
- [3]Available - is the total available memory for the Server process
-
getMemberUsernames
@Read(K_PERSONALIZATION) String[] getMemberUsernames(Long groupId_) throws InvalidGroupException, PrivilegeException Gets the usernames of all the member users for given group- Parameters:
groupId_- id of the group to get users for- Returns:
- a string array of usernames. Note: If the user can see the group but cannot view members of group, the returned array will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException
-
getGroupIdsForUserByRoles
@Read(K_PERSONALIZATION) Long[][] getGroupIdsForUserByRoles(String username_, Integer[] roles_) throws InvalidUserException, UnsupportedRoleException, PrivilegeException Gets the group Ids for which the specified user has any of the specified roles- Parameters:
username_- the userroles_- ids of roles- Returns:
- ids of groups where user has any of the given roles.
- Throws:
InvalidUserException- This exception is thrown whenever an invalid username is passed into a service method.UnsupportedRoleException- This exception is thrown whenever an invalid role id is passed into a service method.PrivilegeException
-
getGroupsList
Returns a ResultListResultListcontaining error codes for all Ids andGroups for valid Ids- Parameters:
groupIds_- Ids of groups to retrieve- Returns:
ResultListcontainingGroupgroup objects, and error codes. Each error code will be one of theCODE_XXXconstants inResultList
-
getMemberGroupsDirect
@Read(K_PERSONALIZATION) Group[] getMemberGroupsDirect(Long groupId_) throws InvalidGroupException, PrivilegeException Gets group members of a group that are explicitly defined, no cascading (group members of subgroups are not included)- Parameters:
groupId_- the group to get group members for- Returns:
- array of member groups. Note: If the user can see the group but cannot view members of groupg, the returned array will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if there is a security violation
-
getMemberGroupsDirectPaging
@Read(K_PERSONALIZATION) ResultPage getMemberGroupsDirectPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Gets a ResultPage containing a list of groups that are direct members, i.e. group members of subgroups are not included in the result set.- Parameters:
groupId_- the group to get members forstartIndex_- the index of the firstGroupthat will be returnedbatchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which theGroupobjects will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a ResultPage containing
Groupobjects, representing the group member. Note: If the user can see the group but cannot view members of the group, the results array will be of length 0. - Throws:
ServiceException- if any system-level error occursInvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if there is a security violation
-
getMemberUsersDirect
@Deprecated @Read(K_PERSONALIZATION) User[] getMemberUsersDirect(Long groupId_) throws InvalidGroupException, PrivilegeException Deprecated.Gets a list of distinct users that are direct members of the specified group, i.e user members of subgroups are not included.- Parameters:
groupId_- the group to get members for.- Returns:
- array of member users. Note: If the current user can see the group but cannot view members of group, the returned array will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if there is a security violation
-
getMemberUsersDirectPaging
@Read(K_PERSONALIZATION) ResultPage getMemberUsersDirectPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Gets a ResultPage containing a list of distinct users that are direct members of the specified group i.e user members of subgroups are not included.- Parameters:
groupId_- the group to get members for.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inUsersortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofUserobjects, representing the direct member users of the group. Note: If the current user can see the group but cannot view members of group, the results array will be of length 0. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if there is a security violation
-
getAdminUsersDirectPaging
@Read(K_PERSONALIZATION) ResultPage getAdminUsersDirectPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Gets a ResultPage containing a list of distinct users that are direct admins of the specified group ie user admins of subgroups are not included.- Parameters:
groupId_- the group to get admins for.startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inUsersortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining a list ofUserobjects, representing the direct user admins of the group. Note: If the current user can see the group but cannot view members of group, the results array will be of length 0. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if there is a security violation
-
getMemberUsernamesDirect
@Deprecated @Read(K_PERSONALIZATION) String[] getMemberUsernamesDirect(Long groupId_) throws InvalidGroupException, PrivilegeException Deprecated.Gets the usernames of all the direct member users for given group ie user members of subgroups are not included.- Parameters:
groupId_- id of the Group to get users for- Returns:
- a string array of usernames. Note: If the current user can see the group but cannot view members of the group, the returned array will be of length 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if there is a security violation
-
getTopLevelGroupsForHierarchy
@Read(K_PERSONALIZATION) GroupHierarchyBean[] getTopLevelGroupsForHierarchy(Long groupTypeId_, boolean sameType_) throws InvalidGroupTypeException - Parameters:
groupTypeId_-sameType_-- Returns:
- Throws:
InvalidGroupTypeException- This exception may be thrown by service methods detecting that a givenGroupTypedoes not exist.SecurityException- if there is a security violation
-
getTopLevelGroupsForHierarchyPaging
@Read(K_PERSONALIZATION) ResultPage getTopLevelGroupsForHierarchyPaging(Long groupTypeId_, boolean sameType_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupTypeException Gets all top levelGroupHierarchyBeanobjects (Groups without a parent group) given theGrouptype.- Parameters:
groupTypeId_- The type of theGroupto retrieve.sameType_- Affects the value of thehasChildrenfield. Iftrue, thenhasChildrenis only true if theGrouphas children of the sameGrouptype. Iffalse, thenhasChildrenis true if theGrouphas any children at all.startIndex_- The index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- The number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- The property by which the results will be sorted. This should be one of the SORTY_BY_XXX constants inGroupHierarchyBean.sortOrder_- The order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- A
ResultPagecontaining an array ofGroupobjects. - Throws:
InvalidGroupTypeException- If thegroupTypeId_parameter does not correspond to an existingGrouptype.
-
areUsersAddedByRule
@Read(K_PERSONALIZATION) boolean[] areUsersAddedByRule(Long groupId_, String[] userIds_) throws InvalidUserException, InvalidGroupException Checks to see if the given users where added to the group by a rule.- Parameters:
groupId_- The id of the group that contains the users that are being checked.userIds_- The ids of the users being checked to see if they were added by a rule.- Returns:
- A Boolean array the length of
userIds_that contains as a value in each element either true or false. true means the user was added by a rule, while false means it was not. - Throws:
InvalidUserException- This exception is thrown whenever an invalid user id is passed into a service method.InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
areGroupsAddedByRule
@Read(K_PERSONALIZATION) boolean[] areGroupsAddedByRule(Long groupId_, Long[] groupIds_) throws InvalidGroupException Checks to see if the given groups were added to the group by a rule.- Parameters:
groupId_- The id of the group that contains the users that are being checked.groupIds_- The ids of the groups being checked to see if they were added by a rule.- Returns:
- A Boolean array the length of
groupIds_that contains as a value in each element either true or false. true means the user was added by a rule, while false means it was not. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.
-
suggestGroups
Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadReturns a String in a specified format that containsGroups whose name matches or partially matches the query string. The number of suggestions is limited. Format (forUsers andGroups: [[4, 'john.user', John User],[5, 32, 'Finance']]- Parameters:
query_- The search query.maxSuggestions_- The maximum number of suggestions to return.- Returns:
- A String of suggestions in the specified format.
-
suggestUsersAndGroups
@Deprecated @Read(K_PERSONALIZATION) String suggestUsersAndGroups(String query_, int maxSuggestions_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadReturns a String in a format specified by UI that containsUsers whose first, last, or username match or partially match the query string andGroups whose name matches or partially matches the query string. The number of suggestions is limited. Format (forUsers andGroups: [[4, 'john.user', John User],[5, 32, 'Finance']]- Parameters:
query_- The search query.maxSuggestions_- The maximum number of suggestions to return.- Returns:
- A String of suggestions in the specified format.
-
suggestGroupsBulk
@Deprecated @Read(K_PERSONALIZATION) Suggestion[][] suggestGroupsBulk(String[] queries_, int maxSuggestionsPerQuery_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadSuggestsGroups whose name matches each query.- Parameters:
queries_- An array of queries by which to search forGroups.maxSuggestionsPerQuery_- The maximum number of suggestions to return for each query.- Returns:
- An array of
Suggestion[]which are the suggestions corresponding to each query string. The first dimension of the array is equal to the number of queries. The second dimension of the array is less than or equal to the max suggestions per query.
-
suggestUsersAndGroupsBulk
@Deprecated @Read(K_PERSONALIZATION) Suggestion[][] suggestUsersAndGroupsBulk(String[] queries_, int maxSuggestionsPerQuery_) Deprecated.usesuggest(String, int, SuggestParam[], Boolean)insteadSuggestsUsers whose first, last, and usernames match each query andGroups whose name matches each query.- Parameters:
queries_- An array of queries by which to search forGroups.maxSuggestionsPerQuery_- The maximum number of suggestions to return for each query.- Returns:
- An array of
Suggestion[]which are the suggestions corresponding to each query string. The first dimension of the array is equal to the number of queries. The second dimension of the array is less than or equal to the max suggestions per query.
-
getUserDefaultApplication
Deprecated.Use {@link ApplicationService.getDefaultApplication()} for the site-wide default.There are no user-specific default applications. The results of this method should not be used.- Parameters:
username- the user for which to fetch the application- Returns:
- null since there are no user-specific default applications.
-
getSystemDefaultApplication
Deprecated.Use {@link ApplicationService.getDefaultApplication()}Gets the preferred default application for the system- Returns:
- the default application chosen by the Administrator
-
getMyHomePage
Gets the home page for the current user if he has set one, otherwise returns the global home page.- Returns:
- the absolute url of the home page for the user (i.e. /portal/home.do).
-
setGlobalHomePage
Sets home page for all users (default). Only can be called by system administrators.- Parameters:
url- the absolute url of the default home page for all users (i.e. /portal/home.do).- Throws:
PrivilegeException- Thrown when the user does not have privileges to create aGroup.
-
setHomePageForUser
@Write(K_PERSONALIZATION) void setHomePageForUser(String username_, String url_) throws InvalidUserException, PrivilegeException -
setMyHomePage
Sets home page for current user, overriding the system default for this user.- Parameters:
url- the absolute url of the page- Throws:
Exception- if there is any error
-
getGlobalHomePage
Gets the global home page for the application.- Returns:
- the absolute url of the default home page for all users (i.e. /portal/home.do).
-
addGroupToFavorites
@Write(K_PERSONALIZATION) @Deprecated void addGroupToFavorites(Long groupId_) throws InvalidGroupException Deprecated.favorites marking is deprecatedAssociatesGroupas one of the currentUser's favorites- Parameters:
groupId_- the id of the group that is to be added to user's favorites- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id or group name is passed into a service method.
-
removeGroupFromFavorites
@Write(K_PERSONALIZATION) @Deprecated void removeGroupFromFavorites(Long groupId_) throws InvalidGroupException Deprecated.favorites marking is deprecatedremoves this group (groupId_) as one of the current user's favorites- Parameters:
groupId_- the id of the group that is to be removed from user's favorites- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id or group name is passed into a service method.
-
getFavoriteGroups
@Read(K_PERSONALIZATION) @Deprecated ResultPage getFavoriteGroups(int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) Deprecated.favorites marking is deprecatedGets a ResultPage containing a list of groups for the current user's Favorite Groups. Replaces getMyGroups.- Parameters:
startIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- a
ResultPagecontaining theGroupobjects.
-
addAdminUsers
@Write(K_PERSONALIZATION) void addAdminUsers(String[] usernames_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Adds the users by given username's as administrators of group given bygroupId_- Parameters:
usernames_- username's of the users to be added as administrators.groupId_- the group to add the administrator to.- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed for thegroupId_PrivilegeException- This exception is thrown when the user does not have privileges to add the group(s) as adminsitratorsInvalidUserException
-
removeAdminUsers
@Write(K_PERSONALIZATION) void removeAdminUsers(String[] usernames_, Long groupId_) throws InvalidUserException, InvalidGroupException, PrivilegeException Removes the users specified byusernames_as administrators of group- Parameters:
usernames_- username's of the users to be removed.groupId_- the target group whose administrators are updated- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed for thegroupId_PrivilegeException- This exception is thrown when the user does not have privileges to remove the user(s)InvalidUserException
-
addAdminGroups
@Write(K_PERSONALIZATION) void addAdminGroups(Long[] adminGroupIds_, Long groupId_) throws InvalidGroupException, PrivilegeException Adds the given groups as administrator groups for group given bygroupId_- Parameters:
adminGroupIds_- Ids of the group to be added as administrators.groupId_- the group to add the administrator to.- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed for either the groupId_ or the groups to be added as administratorPrivilegeException- This exception is thrown when the user does not have privileges to add the group(s) as adminsitrators
-
removeAdminGroups
@Write(K_PERSONALIZATION) void removeAdminGroups(Long[] adminGroupIds_, Long groupId_) throws InvalidGroupException, PrivilegeException Removes the groups specified by adminGroupIds_ as administrators of group- Parameters:
adminGroupIds_- Ids of the group to be removed.groupId_- the target group whose administrators are updated- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed for either the groupId_ or the groups to be removed as administratorsPrivilegeException- This exception is thrown when the user does not have privileges to remove the group(s)
-
getAdminGroupsPaging
@Read(K_PERSONALIZATION) ResultPage getAdminGroupsPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Retrieves the groups that are administrator groups for the givengroupId_- Parameters:
groupId_- Id of the group whose administrator groups are requestedstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inGroupsortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- ResultPage containing a list of
Groupobjects that are administrator groups. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed for thegroupId_PrivilegeException- This exception is thrown whenever the user does not have view privileges to group specified bygroupId_
-
getAdminUsersPaging
@Read(K_PERSONALIZATION) ResultPage getAdminUsersPaging(Long groupId_, int startIndex_, int batchSize_, Integer sortProperty_, Integer sortOrder_) throws InvalidGroupException, PrivilegeException Retrieves the users that are administrator users for the givengroupId_- Parameters:
groupId_- Id of the group whose administrator groups are requestedstartIndex_- the index into the collection of total results at which to start. Negative numbers are treated as zeros.batchSize_- the number of results to return. Negative numbers will result in the entire collection being returned, but this is STRONGLY discouraged.sortProperty_- the property by which the results will be sorted. This is one of theSORT_BY_XXXconstants inUsersortOrder_- the order in which to sort the results. This should be eitherConstants.SORT_ORDER_ASCENDINGorConstants.SORT_ORDER_DESCENDING.- Returns:
- ResultPage containing a list of
Userobjects that are administrator users. - Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed for thegroupId_PrivilegeException- This exception is thrown whenever the user does not have view privileges to group specified bygroupId_
-
getAdminUserCount
@Read(K_PERSONALIZATION) int getAdminUserCount(Long groupId_) throws InvalidGroupException, PrivilegeException Gets a count of distinct users that are administrators of the specified group.- Parameters:
groupId_- the group whose user members are to be counted- Returns:
- the count of member users. Note: If the user can see the group but cannot view members of group, the returned member count will be 0.
- Throws:
InvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user does not have sufficient privileges
-
getAdminGroupCount
@Read(K_PERSONALIZATION) int getAdminGroupCount(Long groupId_) throws InvalidGroupException, PrivilegeException Gets the number of distinct groups {that are administrators of the specified group.- Parameters:
groupId_- the group to count group members of.- Returns:
- the count. Note: If the current user can see the group but cannot view members of group, the returned member count will be 0.
- Throws:
ServiceException- if any system-level error occursInvalidGroupException- This exception is thrown whenever an invalid group id is passed into a service method.PrivilegeException- if the user does not have sufficient privileges
-
isMemberOfGroups
Determines if the current user is a member of each of the specified groups.- Parameters:
groupId_- array of group ids- Returns:
- a boolean array of same length as the input parameter. For each group in the list, if the current user is a member of the group a true is returned. If the user is not a member, cannot see the group, the passed group is null or it does not exist, false is returned. If groupId_ is null or empty, an empty boolean array is returned.
- Throws:
InvalidUserException
-
isMemberOfGroups
Determines if the current user is a member of each of the specified groups.- Parameters:
groupUuid_- array of group UUIDs.- Returns:
- a boolean array of same length as the input parameter. For each group in the list, if the current user is a member of the group a true is returned. If the user is not a member, cannot see the group, the passed group is null or it does not exist, false is returned. If groupId_ is null or empty, an empty boolean array is returned.
-
isUserMemberOfGroups
@Read(K_PERSONALIZATION) boolean[] isUserMemberOfGroups(String username_, Long[] groupId_) throws InvalidUserException, NullPointerException Determines if the specified user is a member of each of the specified groups.- Parameters:
username_- usernamegroupId_- array of group ids- Returns:
- a boolean array of same length as the input parameter. For each group in the list, if the current user is a member of the group a true is returned. If the user is not a member, cannot see the group, or the group does not exist, false is returned. If username_ is null or empty, or groupId_ is null or empty, an empty boolean array is returned.
- Throws:
NullPointerException- If the passed username is either null or empty.InvalidUserException- If the passed username is non-null and invalid.
-
isUserMemberOfGroups
@Read(K_PERSONALIZATION) boolean[] isUserMemberOfGroups(String username_, String[] groupUuid_) throws InvalidUserException Determines if the specified user is a member of each of the specified groups.- Parameters:
username_- usernamegroupUuid_- array of group uuids- Returns:
- a boolean array of same length as the input parameter. For each group in the list, if the current user is a member of the group a true is returned. If the user is not a member, cannot see the group, or the group does not exist, false is returned. If username_ is invalid, or groupId_ is null or empty, an empty boolean array is returned.
- Throws:
NullPointerException- If the passed username is either null or empty.InvalidUserException- If the passed username is non-null and invalid.
-
isUserMemberOfGroups
@Read(K_PERSONALIZATION) boolean[] isUserMemberOfGroups(String[] usernames, Long[] groupId_) throws InvalidUserException Determines if the specified user is a member of each of the specified groups.- Parameters:
usernames- usernamesgroupId_- array of group ids- Returns:
- a boolean array of same length as groupId_. This call presumes that all usernames are potential usernames for the same user. For each group in the list, if the specified user is a member of the group a true is returned. If the user is not a member, cannot see the group, or the group does not exist, false is returned. If all usernames are null, or groupId_ is null or empty, an empty boolean array is returned. Multiple passed usernames should not be valid (use areUsersMembersOfGroups to check multiple users), but if so, results for the first will be returned.
- Throws:
NullPointerException- If all passed usernames are null or empty.InvalidUserException- If all passed usernames are invalid.
-
isUserMemberOfGroups
@Read(K_PERSONALIZATION) boolean[] isUserMemberOfGroups(String[] usernames, String[] groupUuid_) throws InvalidUserException Determines if the specified user is a member of each of the specified groups.- Parameters:
usernames- usernamesgroupUuid_- array of group uuids- Returns:
- a boolean array of same length as groupId_. This call presumes that all usernames are potential usernames for the same user. For each group in the list, if the specified user is a member of the group a true is returned. If the user is not a member, cannot see the group, or the group does not exist, false is returned. If all usernames are null, or groupId_ is null or empty, an empty boolean array is returned. Multiple passed usernames should not be valid (use areUsersMembersOfGroups to check multiple users), but if so, results for the first will be returned.
- Throws:
NullPointerException- If all passed usernames are null or empty.InvalidUserException- If all passed usernames are invalid.
-
areUsersMembersOfGroups
@Read(K_PERSONALIZATION) boolean[][] areUsersMembersOfGroups(String[] usernames, Long[] groupIds) throws InvalidUserException Determines if the specified user is a member of each of the specified groups.- Parameters:
usernames-groupIds- array of group ids- Returns:
- a 2D boolean array of same length as the input parameter usernames. For each user in the list, for each group in the list, if the user is a member of the group a true is returned. If the user is not a member, cannot see the group, or the group does not exist, false is returned.
- Throws:
NullPointerException- If all passed usernames are null or empty.InvalidUserException- If all passed usernames are invalid.
-
areUsersMembersOfGroups
@Read(K_PERSONALIZATION) boolean[][] areUsersMembersOfGroups(String[] usernames, String[] groupUuid_) throws InvalidUserException Determines if the specified user is a member of each of the specified groups.- Parameters:
usernames-groupUuid_- array of group uuids- Returns:
- a 2D boolean array of same length as the input parameter usernames. For each user in the list, for each group in the list, if the user is a member of the group a true is returned. If the user is not a member, cannot see the group, or the group does not exist, false is returned.
- Throws:
NullPointerException- If all passed usernames are null or empty.InvalidUserException- If all passed usernames are invalid.
-
getDirectMemberGroupIds
@Read(K_PERSONALIZATION) Long[] getDirectMemberGroupIds(Long groupId) throws InvalidGroupException, PrivilegeException Gets the group IDs of all the member groups added directly to a given group (excludes those who are members via rule or via membership in a member group)- Parameters:
groupId- id of the group for which to get member groups- Returns:
- Long array of groupIds
- Throws:
InvalidGroupException- if the group ID is invalidPrivilegeException- if the user does not have rights to view the group
-
getDirectMemberUsernames
@Read(K_PERSONALIZATION) String[] getDirectMemberUsernames(Long groupId) throws InvalidGroupException, PrivilegeException Gets the usernames of all the member users added directly to a given group (excludes those who are members via rule or via membership in a member group)- Parameters:
groupId- id of the group for which to get member users- Returns:
- String array of usernames
- Throws:
InvalidGroupException- if the group ID is invalidPrivilegeException- if the user does not have rights to view the group
-
getDirectAdminGroupIds
@Read(K_PERSONALIZATION) Long[] getDirectAdminGroupIds(Long groupId) throws InvalidGroupException, PrivilegeException Gets the group IDs of all the administrator groups added directly to a given group (excludes those who are administrators via membership in an administrator group)- Parameters:
groupId- id of the group for which to get admin groups- Returns:
- Long array of groupIds
- Throws:
InvalidGroupException- if the group ID is invalidPrivilegeException- if the user does not have rights to view the group
-
getDirectAdminUsernames
@Read(K_PERSONALIZATION) String[] getDirectAdminUsernames(Long groupId) throws InvalidGroupException, PrivilegeException Gets the usernames of all the administrator users added directly to a given group (excludes those who are administrators via membership in an administrator group)- Parameters:
groupId- id of the group for which to get admin users- Returns:
- String array of usernames
- Throws:
InvalidGroupException- if the group ID is invalidPrivilegeException- if the user does not have rights to view the group
-
suggest
@Read(K_PERSONALIZATION) String suggest(String query, int maxItems, SuggestParam[] params, Boolean groupResults) - Parameters:
query-maxItems-params- list of information on what is being suggested and what format the results should be in. valid types are group, user.groupResults- if specifying more than one SuggestParam, would you like to group the results by type, or mixed together and sorted? Default is true. If grouped, order of types matches the order of the suggestParams passed in.- Returns:
- a JSON formatted string
-
suggest
@Read(K_PERSONALIZATION) String suggest(String query, int maxItems, SuggestParam[] params, Boolean groupResults, Long[] allowList) - Parameters:
query-maxItems-params- list of information on what is being suggested and what format the results should be in. valid types are group, user.groupResults- if specifying more than one SuggestParam, would you like to group the results by type, or mixed together and sorted? Default is true. If grouped, order of types matches the order of the suggestParams passed in.allowList- list of IDs that will be automatically added to returned results, filtered by query. Ignored if null or empty.- Returns:
- a JSON formatted string
-
resolveEmailAddress
@Deprecated @Read(K_PERSONALIZATION) ResolvedEmailAddresses resolveEmailAddress(LocalObject emailRecipient_) throws InvalidGroupException, InvalidUserException, PrivilegeException Resolves an email recipient into an email address. Only LocalObjects of types USER, GROUP, and EMAIL_ADDRESS are valid inputs; any other inputs will result in an IllegalArgumentException. All LocalObject inputs must be valid: they all must contain a non-null type and either a non-null id or stringId, depending on the type.- Parameters:
emailRecipient_- the LocalObject representing an email recipient for which to retrieve the email address information.- Returns:
- the resolved email addresses
- Throws:
InvalidGroupException- if the recipient type is GROUP and the id is not validInvalidUserException- if the recipient type is USER and the id is not validPrivilegeException- if the user doesn't have rights to see the address
-
resolveEmailAddresses
@Deprecated @Read(K_PERSONALIZATION) ResolvedEmailAddresses resolveEmailAddresses(LocalObject[] emailRecipients_) Resolves email recipients into email addresses. Only LocalObjects of types USER, GROUP, and EMAIL_ADDRESS are valid inputs; any other inputs will result in an IllegalArgumentException. All LocalObject inputs must be valid: they all must contain a non-null type and either a non-null id or stringId, depending on the type.- Parameters:
emailRecipients_- the LocalObject[] representing email recipients for which to retrieve the email address information.- Returns:
- resolved email addresses and information on recipients that failed to resolve
-
resolveEmailDestinations
@Read(K_PERSONALIZATION) ResolvedEmailAddresses[] resolveEmailDestinations(LocalObject[] to_, LocalObject[] cc_, LocalObject[] bcc_) Resolves three sets of email recipients, which form the email destination, into email addresses. Only LocalObjects of types USER, GROUP, and EMAIL_ADDRESS are valid inputs; any other inputs will result in an IllegalArgumentException. All LocalObject inputs must be valid: they all must contain a non-null type and either a non-null id or stringId, depending on the type.- Parameters:
to_- the LocalObject[] representing email recipients for the "to" fieldcc_- the LocalObject[] representing email recipients for the "cc" fieldbcc_- the LocalObject[] representing email recipients for the "bcc" field- Returns:
- the resolved email addresses
- See Also:
-
changeGroupTypeOfGroup
@Write(K_PERSONALIZATION) void changeGroupTypeOfGroup(Long groupId, Long newGroupTypeId) throws PrivilegeException, InvalidGroupException, InvalidGroupTypeException Changes the GroupType of a Group. NOTE: values of dynamic attributes for group will be lost -- group will have default values for dynamic attributes of new groupType.- Parameters:
groupId- id of group to change grouptype ofnewGroupTypeId- newGroupTypeId id of groupType to change group to- Throws:
PrivilegeException- if user is not a SystemAdministrator-type userInvalidGroupException- if groupId is invalidInvalidGroupTypeException- if newGroupTypeId is invalid
-
changeGroupTypesOfGroups
@Write(K_PERSONALIZATION) Integer[] changeGroupTypesOfGroups(Long[] groupIds, Long[] newGroupTypeIds) throws IllegalArgumentException Changes the GroupTypes of Groups. NOTE: groupIds should have same length as newGroupTypeIds NOTE: values of dynamic attributes for group will be lost -- groups will have default values for dynamic attributes of new groupTypes- Parameters:
groupIds- ids of groups to change grouptypes ofnewGroupTypeIds- ids of groupTypes to change groups to- Returns:
Integerarray containing success or error codes. This is one of the GROUP_TYPE_CHANGE_XXX Constants- Throws:
IllegalArgumentException- if groupIds not unique
-
validateTypedValues
@Read(K_PERSONALIZATION) boolean validateTypedValues(TypedValue[] typedValues) throws InvalidGroupException, InvalidUserException Validates given TypedValues. This method is free to throw an exception or to return false if any TypedValue passed is invalid for this engine. This engine supports: AppianType.GROUP AppianType.USERNAME AppianType.USER_OR_GROUP AppianType.EMAIL_RECIPIENT- Parameters:
typedValues-- Returns:
- true if valid, false if invalid
- Throws:
InvalidGroupExceptionInvalidUserException
-