Klasse GUIBaseController

java.lang.Object
de.dlr.proseo.ui.gui.GUIBaseController
Bekannte direkte Unterklassen:
GUIConfigurationController, GUIFacilityController, GUIMissionController, GUIOrbitController, GUIOrderController, GUIProcessorClassController, GUIProcessorController, GUIProductClassController, GUIProductController, GUISettingsController, GUISpaceCraftController, GUIStatisticsController, GUIWorkflowController

public class GUIBaseController extends Object
A base controller for the prosEO GUI, to be extended for specific entities
  • Konstruktordetails

    • GUIBaseController

      public GUIBaseController()
      A no-argument constructor
  • Methodendetails

    • proseoversion

      @ModelAttribute("proseoversion") public String proseoversion()
      Gets the current version of prosEO
      Gibt zurück:
      the prosEO version
    • facilities

      @ModelAttribute("facilitynames") public List<String> facilities()
      Retrieve the processing facilities
      Gibt zurück:
      a list with the names of available processing facilities
    • productclasses

      @ModelAttribute("productclassnames") public List<String> productclasses()
      Retrieve the product classes of mission
      Gibt zurück:
      A list of product class names
    • processorclassnames

      @ModelAttribute("processorclassnames") public List<String> processorclassnames()
      Retrieve the product classes of mission
      Gibt zurück:
      A list of parameter types in String format
    • configuredProcessors

      @ModelAttribute("configuredprocessornames") public List<String> configuredProcessors()
      Retrieve the configured processors of mission
      Gibt zurück:
      A list of parameter types in String format
    • workflows

      @ModelAttribute("workflownames") public List<String> workflows()
      Retrieve the workflows of mission
      Gibt zurück:
      A list of parameter types in String format
    • fileClasses

      @ModelAttribute("fileclasses") public List<String> fileClasses()
      Retrieve the file classes of mission
      Gibt zurück:
      A list of parameter types in String format
    • processingModes

      @ModelAttribute("processingmodes") public List<String> processingModes()
      Retrieve the processing modes of mission
      Gibt zurück:
      A list of parameter types in String format
    • spaceCrafts

      @ModelAttribute("spacecrafts") public List<String> spaceCrafts()
      Retrieve the space crafts of mission
      Gibt zurück:
      A list of parameter types in String format
    • productiontypes

      @ModelAttribute("productiontypes") public List<String> productiontypes()
      Retrieve the production type enum
      Gibt zurück:
      A list of parameter types in String format
    • processinglevels

      @ModelAttribute("processinglevels") public List<String> processinglevels()
      Retrieve the processing level enum
      Gibt zurück:
      A list of processing levels in String format
    • visibilities

      @ModelAttribute("visibilities") public List<String> visibilities()
      Retrieve the product visibility enum
      Gibt zurück:
      A list of visibility levels in String format
    • productqualities

      @ModelAttribute("productqualities") public List<String> productqualities()
      Retrieve the product quality levels
      Gibt zurück:
      A list of product quality types in String format
    • slicingtypes

      @ModelAttribute("slicingtypes") public List<String> slicingtypes()
      Retrieve the slicing type enum
      Gibt zurück:
      A list of slicing types in String format
    • parametertypes

      @ModelAttribute("parametertypes") public List<String> parametertypes()
      Retrieves the list of parameter types and returns it as a list of Strings.
      Gibt zurück:
      A list of parameter types in String format
    • checkClearCache

      public void checkClearCache()
      Checks if the cache needs to be cleared based on the user's login status.
    • missioncode

      @ModelAttribute("missioncode") public String missioncode()
      Returns the mission code of the authenticated user
      Gibt zurück:
      The mission code of the authenticated user
    • user

      @ModelAttribute("user") public String user()
      Returns the authenticated user
      Gibt zurück:
      The authenticated user
    • userroles

      @ModelAttribute("userroles") public List<String> userroles()
      Returns the roles of the authenticated user
      Gibt zurück:
      The roles of authenticated user
    • hasrolemissionreader

      @ModelAttribute("hasrolemissionreader") public Boolean hasrolemissionreader()
      Read access to missions, spacecrafts and orbits
      Gibt zurück:
      true, if the user has the mission reader role
    • hasrolemissionmgr

      @ModelAttribute("hasrolemissionmgr") public Boolean hasrolemissionmgr()
      Read and update access to missions, spacecrafts and orbits
      Gibt zurück:
      true, if the user has the mission manager role
    • hasroleproductclassreader

      @ModelAttribute("hasroleproductclassreader") public Boolean hasroleproductclassreader()
      Read access to product classes and selection rules
      Gibt zurück:
      true, if the user has the product class reader role
    • hasroleproductclassmgr

      @ModelAttribute("hasroleproductclassmgr") public Boolean hasroleproductclassmgr()
      Create, update and delete access to product classes and selection rules
      Gibt zurück:
      true, if the user has the product class manager role
    • hasroleproductreader

      @ModelAttribute("hasroleproductreader") public Boolean hasroleproductreader()
      Query and download public products
      Gibt zurück:
      true, if the user has the product reader role
    • hasroleproductrestrictedreader

      @ModelAttribute("hasroleproductrestrictedreader") public Boolean hasroleproductrestrictedreader()
      Query and download public and restricted products
      Gibt zurück:
      true, if the user has the restricted product reader role
    • hasroleproductreaderall

      @ModelAttribute("hasroleproductreaderall") public Boolean hasroleproductreaderall()
      Query and download all products
      Gibt zurück:
      true, if the user has the product reader (all) role
    • hasroleproductmgr

      @ModelAttribute("hasroleprodutcmgr") public Boolean hasroleproductmgr()
      Update and delete products and product files
      Gibt zurück:
      true, if the user has the product manager role
    • hasroleprocessorreader

      @ModelAttribute("hasroleprocessorreader") public Boolean hasroleprocessorreader()
      Read access to processor classes, processors, configurations, configured processors and any sub-objects of them
      Gibt zurück:
      true, if the user has the processor reader role
    • hasroleprocessorclassmgr

      @ModelAttribute("hasroleprocessorclassmgr") public Boolean hasroleprocessorclassmgr()
      Create, update and delete access to processor classes, processors and tasks
      Gibt zurück:
      true, if the user has the processor class manager role
    • hasroleconfigurationreader

      @ModelAttribute("hasroleconfigurationreader") public Boolean hasroleconfigurationreader()
      Read access to configurations and configured processors
      Gibt zurück:
      true, if the user has the configuration reader role
    • hasroleconfigurationmgr

      @ModelAttribute("hasroleconfigurationmgr") public Boolean hasroleconfigurationmgr()
      Create, update and delete access to configurations and configured processors
      Gibt zurück:
      true, if the user has the configuration manager role
    • hasrolefacilityreader

      @ModelAttribute("hasrolefacilityreader") public Boolean hasrolefacilityreader()
      Read access to processing facilities
      Gibt zurück:
      true, if the user has the facility reader role
    • hasrolefacilitymgr

      @ModelAttribute("hasrolefacilitymgr") public Boolean hasrolefacilitymgr()
      Create, update and delete access to processing facilities
      Gibt zurück:
      true, if the user has the facility manager role
    • hasrolefacilitymonitor

      @ModelAttribute("hasrolefacilitymonitor") public Boolean hasrolefacilitymonitor()
      Read access to facility monitoring data
      Gibt zurück:
      true, if the user has the facility monitoring role
    • hasroleorderreader

      @ModelAttribute("hasroleorderreader") public Boolean hasroleorderreader()
      Read access to processing order, jobs and job steps
      Gibt zurück:
      true, if the user has the order reader role
    • hasroleordermgr

      @ModelAttribute("hasroleordermgr") public Boolean hasroleordermgr()
      Create, update, close and delete orders
      Gibt zurück:
      true, if the user has the order manager role
    • hasroleorderapprover

      @ModelAttribute("hasroleorderapprover") public Boolean hasroleorderapprover()
      Approve orders
      Gibt zurück:
      true, if the user has the order approver role
    • hasroleorderplanner

      @ModelAttribute("hasroleorderplanner") public Boolean hasroleorderplanner()
      Plan, release, suspend, cancel and retry orders, jobs and job steps
      Gibt zurück:
      true, if the user has the order planner role
    • hasroleordermonitor

      @ModelAttribute("hasroleordermonitor") public Boolean hasroleordermonitor()
      Read access to order monitoring data
      Gibt zurück:
      true, if the user has the order monitoring role
    • hasrolejobstepprocessor

      @ModelAttribute("hasrolejobstepprocessor") public Boolean hasrolejobstepprocessor()
      Notify of job step completion
      Gibt zurück:
      true, if the user has the job step processor role
    • handleHTTPError

      protected void handleHTTPError(org.springframework.web.reactive.function.client.ClientResponse clientResponse, org.springframework.ui.Model model)
      Handles HTTP errors and sets the appropriate error message in the model.
      Parameter:
      clientResponse - The HTTP response from the client
      model - The model to hold the error message
    • handleHTTPWarning

      protected void handleHTTPWarning(org.springframework.web.reactive.function.client.ClientResponse clientResponse, org.springframework.ui.Model model, javax.servlet.http.HttpServletResponse httpResponse)
      Handles HTTP warnings and sets the appropriate warning message in the model and HTTP response headers.
      Parameter:
      clientResponse - The HTTP response from the client
      model - The model to hold the warning message
      httpResponse - The HTTP response to set the warning headers