Class UserGroupMenuServiceImpl

java.lang.Object
ch.cern.eam.wshub.core.services.administration.impl.UserGroupMenuServiceImpl
All Implemented Interfaces:
UserGroupMenuService

public class UserGroupMenuServiceImpl extends Object implements UserGroupMenuService
  • 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:
      addToMenuHierarchy in interface UserGroupMenuService
      Parameters:
      context - the user credentials
      menuSpecification - 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:
      addToMenuHierarchyBatch in interface UserGroupMenuService
      Parameters:
      context - the user credentials
      menuSpecificationList - 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:
      addToMenuHierarchyManyUsergroups in interface UserGroupMenuService
      Parameters:
      context - the user credentials
      userGroups - the list of specific user groups to add the menu specification
      menuSpecification - 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:
      deleteFromMenuHierarchyBatch in interface UserGroupMenuService
      Parameters:
      context - the user credentials
      menuSpecificationList - 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:
      deleteFromMenuHierarchyManyUsergroups in interface UserGroupMenuService
      Parameters:
      context - the user credentials
      userGroups - the list of specific user groups to delete the menu specification
      menuSpecification - 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:
      getExtMenuHierarchyAsTree in interface UserGroupMenuService
      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:
      deleteFromMenuHierarchy in interface UserGroupMenuService
      Parameters:
      context - the user credentials
      menuSpecification - the specified path and function to delete, for a specific user group
      Returns:
      Throws:
      EAMException