Class ScreenService

java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.ScreenService
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

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

    • 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 Details

    • 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, boolean generateTemplate) throws AWException
      Generates an screen data
      Parameters:
      optionId - Option identifier
      generateTemplate - Generate template
      Returns:
      Screen data
      Throws:
      AWException - Screen data generation failed
    • getScreenData

      public ScreenData getScreenData(boolean generateTemplate) throws AWException
      Retrieve screen data
      Parameters:
      generateTemplate - Generate template
      Returns:
      Screen data
      Throws:
      AWException
    • getScreenData

      public ScreenData getScreenData(String optionId, boolean generateTemplate) throws AWException
      Retrieve an option screen data
      Parameters:
      optionId - Option id
      Returns:
      Screen data
      Throws:
      AWException
    • getErrorScreenData

      public ScreenData getErrorScreenData(String errorOptionId)
      Retrieve error screen data
      Parameters:
      errorOptionId - Error 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
    • getTaglistData

      public ServiceData getTaglistData(String option, String tagListId) throws AWException
      Generate taglist data
      Parameters:
      option - Option
      tagListId - TagList
      Returns:
      Taglist data
      Throws:
      AWException