Package com.appliedolap.essbase.impl
Class EssGroupImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssGroupImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Constructor Summary
ConstructorsConstructorDescriptionEssGroupImpl(ApiContext api, EssServer server, com.appliedolap.essbase.client.model.GroupBean groupBean) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds groups as members of this group.voidAdds users to this group.voiddelete()Removes this group.The description, fetching the group in full if the listing did not carry one.getName()Gets the name of this object.getRole()The service-level role this group grants its members -User,Power UserorService Administrator.getType()Gets the type of this object.getUsers()Gets the user members that are in this group.voidremoveGroups(String... groupNames) Removes member groups from this group.voidremoveUsers(String... usernames) Removal is a DELETE carrying a body - the array of user IDs - which is unusual enough to be worth naming: every query parameter form of this answers HTTP 500 "Request failed."voidsetDescription(String description) Changes the description, leaving the role alone.voidChanges the role this group grants.
-
Constructor Details
-
EssGroupImpl
public EssGroupImpl(ApiContext api, EssServer server, com.appliedolap.essbase.client.model.GroupBean groupBean)
-
-
Method Details
-
getName
Description copied from interface:EssObjectGets the name of this object. This will generally be the "nice" and "unique" name of this object, such as the application name, cube, member, variable, or whatever. -
getType
Description copied from interface:EssObjectGets the type of this object. -
getServer
-
getDescription
The description, fetching the group in full if the listing did not carry one.GET /groupsomits the description - withexpand=alltoo - whileGET /groups/{id}returns it. So a group that came from a listing reports null for a description it actually has, and anything that read that and wrote it back would erase it. That is not hypothetical: editing the role means sending the description alongside it.One extra call, once per group, and only when somebody asks for the field the listing left out.
- Specified by:
getDescriptionin interfaceEssGroup
-
getRole
Description copied from interface:EssGroupThe service-level role this group grants its members -User,Power UserorService Administrator. -
setDescription
Description copied from interface:EssGroupChanges the description, leaving the role alone.- Specified by:
setDescriptionin interfaceEssGroup- Parameters:
description- the new description
-
setRole
Description copied from interface:EssGroupChanges the role this group grants.- Specified by:
setRolein interfaceEssGroup- Parameters:
role- the role name, asEssGroup.getRole()reports it
-
delete
public void delete()Description copied from interface:EssGroupRemoves this group. Its members are not removed - they simply stop being in it. -
getUsers
Description copied from interface:EssGroupGets the user members that are in this group. -
addUsers
Description copied from interface:EssGroupAdds users to this group.A user cannot add or remove themselves: Essbase refuses with "not allowed to perform self provisioning/de-provisioning" even for a service administrator. That is a server rule, not a permission that can be granted.
-
removeUsers
Removal is a DELETE carrying a body - the array of user IDs - which is unusual enough to be worth naming: every query parameter form of this answers HTTP 500 "Request failed."- Specified by:
removeUsersin interfaceEssGroup- Parameters:
usernames- the user IDs to remove
-
getGroups
-
addGroups
Description copied from interface:EssGroupAdds groups as members of this group. Groups nest. -
removeGroups
Description copied from interface:EssGroupRemoves member groups from this group. They are not deleted, only unassigned.- Specified by:
removeGroupsin interfaceEssGroup- Parameters:
groupNames- the group names to remove
-