Class UserGroupMenuServiceImpl
java.lang.Object
ch.cern.eam.wshub.core.services.administration.impl.UserGroupMenuServiceImpl
- All Implemented Interfaces:
UserGroupMenuService
-
Field Summary
Fields inherited from interface ch.cern.eam.wshub.core.services.administration.UserGroupMenuService
MENU_FUNCTION_CODE -
Constructor Summary
ConstructorsConstructorDescriptionUserGroupMenuServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.eamws.EAMWebServicesPT eamWebServicesToolkitClient) -
Method Summary
Modifier and TypeMethodDescriptionaddToMenuHierarchy(EAMContext context, MenuSpecification menuSpecification) Adds a full menu/submenu/function path to the menu hierarchy.addToMenuHierarchyBatch(EAMContext context, List<MenuSpecification> menuSpecificationList) Adds many full menu/submenu/function path to the menu hierarchy.addToMenuHierarchyManyUsergroups(EAMContext context, List<String> userGroups, MenuSpecification menuSpecification) Adds a full menu/submenu/function path to the menu hierarchy of different user groups.deleteFromMenuHierarchy(EAMContext context, MenuSpecification menuSpecification) If a function code is specified in menuSpecification, deletes all children functions with that function code from the specified path.deleteFromMenuHierarchyBatch(EAMContext context, List<MenuSpecification> menuSpecificationList) For each menu specification in the list: if a function code is specified in menuSpecification, deletes all children functions with that function code from the specified path.deleteFromMenuHierarchyManyUsergroups(EAMContext context, List<String> userGroups, MenuSpecification menuSpecification) For a each user group of a specific list of usergroups: if a function code is specified in menuSpecification, deletes all children functions with that function code from the specified path.getExtMenuHierarchyAsTree(EAMContext context, String userGroup, MenuRequestType requestType)
-
Constructor Details
-
UserGroupMenuServiceImpl
public UserGroupMenuServiceImpl(ApplicationData applicationData, Tools tools, net.datastream.wsdls.eamws.EAMWebServicesPT eamWebServicesToolkitClient)
-
-
Method Details
-
addToMenuHierarchy
public String addToMenuHierarchy(EAMContext context, MenuSpecification menuSpecification) throws EAMException Adds a full menu/submenu/function path to the menu hierarchy. If the path specified is not complete, it will be completed.- Specified by:
addToMenuHierarchyin interfaceUserGroupMenuService- Parameters:
context- the user credentialsmenuSpecification- the specified full path and function to add, for a specific user group- Returns:
- Throws:
EAMException
-
addToMenuHierarchyBatch
public BatchResponse<String> addToMenuHierarchyBatch(EAMContext context, List<MenuSpecification> menuSpecificationList) Adds many full menu/submenu/function path to the menu hierarchy. If the paths specified are not complete, they will be completed.- Specified by:
addToMenuHierarchyBatchin interfaceUserGroupMenuService- Parameters:
context- the user credentialsmenuSpecificationList- the list of menu specifications to add- Returns:
- the batch of eam responses
-
addToMenuHierarchyManyUsergroups
public BatchResponse<String> addToMenuHierarchyManyUsergroups(EAMContext context, List<String> userGroups, MenuSpecification menuSpecification) Adds a full menu/submenu/function path to the menu hierarchy of different user groups. If the path specified is not complete, it will be completed.- Specified by:
addToMenuHierarchyManyUsergroupsin interfaceUserGroupMenuService- Parameters:
context- the user credentialsuserGroups- the list of specific user groups to add the menu specificationmenuSpecification- the specified full path and function to add; the user group is not used- Returns:
- the batch of eam responses
-
deleteFromMenuHierarchyBatch
public BatchResponse<String> deleteFromMenuHierarchyBatch(EAMContext context, List<MenuSpecification> menuSpecificationList) For each menu specification in the list: if a function code is specified in menuSpecification, deletes all children functions with that function code from the specified path. If the function code provided is an empty string, deletes the last menu item with all its children from the path specified.- Specified by:
deleteFromMenuHierarchyBatchin interfaceUserGroupMenuService- Parameters:
context- the user credentialsmenuSpecificationList- the list of menu specifications to add- Returns:
- the batch of eam responses
-
deleteFromMenuHierarchyManyUsergroups
public BatchResponse<String> deleteFromMenuHierarchyManyUsergroups(EAMContext context, List<String> userGroups, MenuSpecification menuSpecification) For a each user group of a specific list of usergroups: if a function code is specified in menuSpecification, deletes all children functions with that function code from the specified path. If the function code provided is an empty string, deletes the last menu item with all its children from the path specified.- Specified by:
deleteFromMenuHierarchyManyUsergroupsin interfaceUserGroupMenuService- Parameters:
context- the user credentialsuserGroups- the list of specific user groups to delete the menu specificationmenuSpecification- the specified full path and function to delete; the user group is not used- Returns:
- the batch of eam responses
-
getExtMenuHierarchyAsTree
public MenuEntryNode getExtMenuHierarchyAsTree(EAMContext context, String userGroup, MenuRequestType requestType) throws EAMException - Specified by:
getExtMenuHierarchyAsTreein interfaceUserGroupMenuService- Throws:
EAMException
-
deleteFromMenuHierarchy
public String deleteFromMenuHierarchy(EAMContext context, MenuSpecification menuSpecification) throws EAMException If a function code is specified in menuSpecification, deletes all children functions with that function code from the specified path. If the function code provided is an empty string, deletes the last menu item with all its children from the path specified.- Specified by:
deleteFromMenuHierarchyin interfaceUserGroupMenuService- Parameters:
context- the user credentialsmenuSpecification- the specified path and function to delete, for a specific user group- Returns:
- Throws:
EAMException
-