Package de.dlr.proseo.procmgr.rest
Klasse ProcessorClassControllerImpl
java.lang.Object
de.dlr.proseo.procmgr.rest.ProcessorClassControllerImpl
- Alle implementierten Schnittstellen:
ProcessorclassController
@Component
public class ProcessorClassControllerImpl
extends Object
implements ProcessorclassController
Spring MVC controller for the prosEO Processor Manager; implements the services required to manage processor classes.
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<String> countProcessorClasses
(String missionCode, String processorName) Count the processor classes matching the specified mission and processor name.org.springframework.http.ResponseEntity
<RestProcessorClass> createProcessorClass
(@Valid RestProcessorClass processorClass) Create a new processor classorg.springframework.http.ResponseEntity
<?> Delete a processor class by IDorg.springframework.http.ResponseEntity
<RestProcessorClass> Get a processor class by IDorg.springframework.http.ResponseEntity
<List<RestProcessorClass>> getProcessorClasses
(String mission, String processorName, Integer recordFrom, Integer recordTo) Get processor classes by mission and nameorg.springframework.http.ResponseEntity
<RestProcessorClass> modifyProcessorClass
(Long id, @Valid RestProcessorClass processorClass) Update a processor class by ID
-
Konstruktordetails
-
ProcessorClassControllerImpl
public ProcessorClassControllerImpl()
-
-
Methodendetails
-
getProcessorClasses
public org.springframework.http.ResponseEntity<List<RestProcessorClass>> getProcessorClasses(String mission, String processorName, Integer recordFrom, Integer recordTo) Get processor classes by mission and name- Angegeben von:
getProcessorClasses
in SchnittstelleProcessorclassController
- Parameter:
mission
- the mission code (optional)processorName
- the processor name (optional)recordFrom
- first record of filtered and ordered result to returnrecordTo
- last record of filtered and ordered result to return- Gibt zurück:
- HTTP status "OK" and a list of Json objects representing processor classes satisfying the search criteria or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "NOT_FOUND" and an error message, if no processor classes matching the search criteria were found HTTP status "TOO MANY REQUESTS" if the result list exceeds a configured maximum
-
createProcessorClass
public org.springframework.http.ResponseEntity<RestProcessorClass> createProcessorClass(@Valid @Valid RestProcessorClass processorClass) Create a new processor class- Angegeben von:
createProcessorClass
in SchnittstelleProcessorclassController
- Parameter:
processorClass
- a Json representation of the new processor class- Gibt zurück:
- HTTP status "CREATED" and a response containing a Json object corresponding to the processor class after persistence (with ID and version for all contained objects) or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "BAD_REQUEST", if any of the input data was invalid
-
getProcessorClassById
Get a processor class by ID- Angegeben von:
getProcessorClassById
in SchnittstelleProcessorclassController
- Parameter:
id
- the processor class ID- Gibt zurück:
- HTTP status "OK" and a Json object corresponding to the processor class found or HTTP status "BAD_REQUEST" and an error message, if no processor class ID was given, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "NOT_FOUND" and an error message, if no processor class with the given ID exists
-
modifyProcessorClass
public org.springframework.http.ResponseEntity<RestProcessorClass> modifyProcessorClass(Long id, @Valid @Valid RestProcessorClass processorClass) Update a processor class by ID- Angegeben von:
modifyProcessorClass
in SchnittstelleProcessorclassController
- Parameter:
id
- the ID of the processor class to updateprocessorClass
- a Json object containing the modified (and unmodified) attributes- Gibt zurück:
- HTTP status "OK" and a response containing a Json object corresponding to the processor class after modification (with ID and version for all contained objects) or HTTP status "NOT_MODIFIED" and the unchanged product, if no attributes were actually changed, or HTTP status "NOT_FOUND" and an error message, if no processor class with the given ID exists, or HTTP status "BAD_REQUEST" and an error message, if any of the input data was invalid, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "CONFLICT"and an error message, if the processor class has been modified since retrieval by the client
-
deleteProcessorClassById
Delete a processor class by ID- Angegeben von:
deleteProcessorClassById
in SchnittstelleProcessorclassController
- Parameter:
id
- the ID of the processor class to delete- Gibt zurück:
- a response entity with HTTP status "NO_CONTENT", if the deletion was successful, or HTTP status "NOT_FOUND", if the processor class did not exist, or HTTP status "NOT_MODIFIED", if the deletion was unsuccessful, or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "BAD_REQUEST", if the processor class ID was not given, or if dependent objects exist
-
countProcessorClasses
public org.springframework.http.ResponseEntity<String> countProcessorClasses(String missionCode, String processorName) Count the processor classes matching the specified mission and processor name.- Angegeben von:
countProcessorClasses
in SchnittstelleProcessorclassController
- Parameter:
missionCode
- the mission codeprocessorName
- the processor name- Gibt zurück:
- the number of matching configurations as a String (may be zero) or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted
-