Klasse ConfiguredProcessorManager

java.lang.Object
de.dlr.proseo.procmgr.rest.ConfiguredProcessorManager

@Component @Transactional(isolation=REPEATABLE_READ) public class ConfiguredProcessorManager extends Object
Service methods required to manage configured processor versions.
Autor:
Dr. Thomas Bassler
  • Felddetails

  • Konstruktordetails

    • ConfiguredProcessorManager

      public ConfiguredProcessorManager()
  • Methodendetails

    • getConfiguredProcessors

      public List<RestConfiguredProcessor> getConfiguredProcessors(String mission, Long id, String identifier, String[] processorClass, String processorVersion, String configurationVersion, String[] enabled, Integer recordFrom, Integer recordTo, String[] orderBy) throws javax.persistence.NoResultException, SecurityException
      Get configured processors, filtered by mission, identifier, processor name, processor version and/or configuration version
      Parameter:
      mission - the mission code
      identifier - the identifier for the configured processor
      processorVersion - the processor version
      configurationVersion - the configuration version
      recordFrom - first record of filtered and ordered result to return
      recordTo - last record of filtered and ordered result to return
      orderBy - an array of strings containing a column name and an optional sort direction (ASC/DESC), separated by white space
      processorName - the processor name
      uuid - the UUID of the configured processor
      Gibt zurück:
      a list of Json objects representing configured processors satisfying the search criteria
      Löst aus:
      javax.persistence.NoResultException - if no configured processors matching the given search criteria could be found
      SecurityException - if a cross-mission data access was attempted
    • createConfiguredProcessor

      public RestConfiguredProcessor createConfiguredProcessor(@Valid @Valid RestConfiguredProcessor configuredProcessor) throws IllegalArgumentException, SecurityException
      Create a new configured processor
      Parameter:
      configuredProcessor - a Json representation of the new configured processor
      Gibt zurück:
      a Json representation of the configured processor after creation (with ID and version number)
      Löst aus:
      IllegalArgumentException - if any of the input data was invalid
      SecurityException - if a cross-mission data access was attempted
    • getConfiguredProcessorById

      public RestConfiguredProcessor getConfiguredProcessorById(Long id) throws IllegalArgumentException, javax.persistence.NoResultException, SecurityException
      Get a configured processor by ID
      Parameter:
      id - the configured processor ID
      Gibt zurück:
      a Json object corresponding to the configured processor found
      Löst aus:
      IllegalArgumentException - if no configured processor ID was given
      javax.persistence.NoResultException - if no configured processor with the given ID exists
      SecurityException - if a cross-mission data access was attempted
    • modifyConfiguredProcessor

      public RestConfiguredProcessor modifyConfiguredProcessor(Long id, @Valid @Valid RestConfiguredProcessor configuredProcessor) throws javax.persistence.EntityNotFoundException, IllegalArgumentException, SecurityException, ConcurrentModificationException
      Update a configured processor by ID
      Parameter:
      id - the ID of the configured processor to update
      configuredProcessor - a Json object containing the modified (and unmodified) attributes
      Gibt zurück:
      a response containing a Json object corresponding to the configured processor after modification (with ID and version for all contained objects)
      Löst aus:
      javax.persistence.EntityNotFoundException - if no configured processor with the given ID exists
      IllegalArgumentException - if any of the input data was invalid
      SecurityException - if a cross-mission data access was attempted
      ConcurrentModificationException - if the configured processor has been modified since retrieval by the client
    • deleteConfiguredProcessorById

      public void deleteConfiguredProcessorById(Long id) throws javax.persistence.EntityNotFoundException, SecurityException, RuntimeException
      Delete a configured processor by ID
      Parameter:
      id - the ID of the configured processor to delete
      Löst aus:
      javax.persistence.EntityNotFoundException - if the configured processor to delete does not exist in the database
      SecurityException - if a cross-mission data access was attempted
      RuntimeException - if the deletion was not performed as expected
    • countConfiguredProcessors

      public String countConfiguredProcessors(String mission, Long id, String identifier, String[] processorClass, String processorVersion, String configurationVersion, String[] enabled)
      Count the configuredProcessors matching the specified mission, processorName, processorVersion, configuration version
      Parameter:
      processorVersion - the processor version
      configurationVersion - the configuration version
      missionCode - the mission code
      processorName - the processor name
      Gibt zurück:
      the number of configuredProcessors found as string
      Löst aus:
      SecurityException - if a cross-mission data access was attempted