Class ScreenService

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class ScreenService
    extends ServiceConfig
    Manage AWE screen access
    • Constructor Detail

      • ScreenService

        public ScreenService​(MenuService menuService,
                             MaintainService maintainService,
                             TemplateService templateService,
                             ScreenComponentGenerator screenComponentGenerator,
                             org.springframework.context.ApplicationEventPublisher eventPublisher)
        Autowired constructor
        Parameters:
        menuService - Menu service
        maintainService - Maintain service
        templateService - Template service
        screenComponentGenerator - Screen component generator
        eventPublisher - Event publisher
    • Method Detail

      • getScreenDataAction

        public ServiceData getScreenDataAction()
        Generates an screen data
        Returns:
        Screen data
      • generateEmptyScreen

        public String generateEmptyScreen()
        Generates an empty screen
        Returns:
        Empty screen
      • generateScreenData

        public ScreenData generateScreenData​(String optionId)
                                      throws AWException
        Generates an screen data
        Parameters:
        optionId - Option identifier
        Returns:
        Screen data
        Throws:
        AWException - Screen data generation failed
      • getScreenData

        public ScreenData getScreenData()
        Retrieve screen data
        Returns:
        Screen data
      • getScreenData

        public ScreenData getScreenData​(String optionId)
        Retrieve an option screen data
        Parameters:
        optionId - Option id
        Returns:
        Screen data
      • getScreenElementList

        public ServiceData getScreenElementList​(@NonNull
                                                @NonNull String screenId,
                                                String suggest)
                                         throws AWException
        Get screen component list names
        Parameters:
        screenId - Screen identifier
        suggest - Written suggest
        Returns:
        Screen component list
        Throws:
        AWException - Error retrieving screen element list
      • getAttributeNameList

        public ServiceData getAttributeNameList​(String suggest)
                                         throws AWException
        Get screen attribute list names
        Parameters:
        suggest - Written suggest
        Returns:
        Screen component list
        Throws:
        AWException - Error retrieving screen element list