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, String identifier, String processorName, String processorVersion, String configurationVersion, String uuid, Integer recordFrom, Integer recordTo) 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
      processorName - the processor name
      processorVersion - the processor version
      configurationVersion - the configuration version
      uuid - the UUID of the configured processor
      recordFrom - first record of filtered and ordered result to return
      recordTo - last record of filtered and ordered result to return
      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 missionCode, String processorName, String processorVersion, String configurationVersion)
      Count the configuredProcessors matching the specified mission, processorName, processorVersion, configuration version
      Parameter:
      missionCode - the mission code
      processorName - the processor name
      processorVersion - the processor version
      configurationVersion - the configuration version
      Gibt zurück:
      the number of configuredProcessors found as string
      Löst aus:
      SecurityException - if a cross-mission data access was attempted