Package de.dlr.proseo.procmgr.rest
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
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibung(Package privat) ProcessorManagerConfiguration
The processor manager configuration -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcountConfiguredProcessors
(String missionCode, String processorName, String processorVersion, String configurationVersion) Count the configuredProcessors matching the specified mission, processorName, processorVersion, configuration versioncreateConfiguredProcessor
(@Valid RestConfiguredProcessor configuredProcessor) Create a new configured processorvoid
Delete a configured processor by IDGet a configured processor by IDgetConfiguredProcessors
(String mission, String identifier, String processorName, String processorVersion, String configurationVersion, String uuid, Integer recordFrom, Integer recordTo) Get configured processors, filtered by mission, identifier, processor name, processor version and/or configuration versionmodifyConfiguredProcessor
(Long id, @Valid RestConfiguredProcessor configuredProcessor) Update a configured processor by ID
-
Felddetails
-
config
The processor manager configuration
-
-
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 codeidentifier
- the identifier for the configured processorprocessorName
- the processor nameprocessorVersion
- the processor versionconfigurationVersion
- the configuration versionuuid
- the UUID of the configured processorrecordFrom
- first record of filtered and ordered result to returnrecordTo
- 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 foundSecurityException
- 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 invalidSecurityException
- 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 givenjavax.persistence.NoResultException
- if no configured processor with the given ID existsSecurityException
- 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 updateconfiguredProcessor
- 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 existsIllegalArgumentException
- if any of the input data was invalidSecurityException
- if a cross-mission data access was attemptedConcurrentModificationException
- 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 databaseSecurityException
- if a cross-mission data access was attemptedRuntimeException
- 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 codeprocessorName
- the processor nameprocessorVersion
- the processor versionconfigurationVersion
- 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
-