Klasse FacmgrControllerImpl

java.lang.Object
de.dlr.proseo.facmgr.rest.FacmgrControllerImpl
Alle implementierten Schnittstellen:
FacilityController

@Component public class FacmgrControllerImpl extends Object implements FacilityController
Spring MVC controller for the prosEO Facility Manager; implements the services required to manage processing facilities
Autor:
Ranjitha Vignesh
  • Konstruktordetails

    • FacmgrControllerImpl

      public FacmgrControllerImpl()
  • Methodendetails

    • createFacility

      public org.springframework.http.ResponseEntity<RestProcessingFacility> createFacility(RestProcessingFacility restFacility)
      Create a facility from the given Json object
      Angegeben von:
      createFacility in Schnittstelle FacilityController
      Parameter:
      restFacility - the Json object to create the facility from
      Gibt zurück:
      HTTP status "CREATED" and a response containing a Json object corresponding to the facility after persistence (with ID and version for all contained objects) or HTTP status "BAD_REQUEST", if any of the input data was invalid
    • getFacilities

      public org.springframework.http.ResponseEntity<List<RestProcessingFacility>> getFacilities(String name)
      Retrieve a list of facilities filtered by mission and name.
      Angegeben von:
      getFacilities in Schnittstelle FacilityController
      Parameter:
      name - the name of the facility
      Gibt zurück:
      a response entity with either a list of facilities and HTTP status "OK" or an error message and HTTP status "NOT_FOUND" if no matching facilities were found
    • getFacilityById

      public org.springframework.http.ResponseEntity<RestProcessingFacility> getFacilityById(Long id)
      Find the facility with the given ID
      Angegeben von:
      getFacilityById in Schnittstelle FacilityController
      Parameter:
      id - the ID to look for
      Gibt zurück:
      a response entity corresponding to the found facility and HTTP status "OK" or an error message and HTTP status "NOT_FOUND", if no facility with the given ID exists
    • deleteFacilityById

      public org.springframework.http.ResponseEntity<?> deleteFacilityById(Long id)
      Delete a facility by ID
      Angegeben von:
      deleteFacilityById in Schnittstelle FacilityController
      Parameter:
      id - the ID of the facility to delete
      Gibt zurück:
      a response entity with HTTP status "NO_CONTENT", if the deletion was successful, "BAD_REQUEST", if the facility still has stored products, "NOT_FOUND", if the facility did not exist, or "NOT_MODIFIED", if the deletion was unsuccessful
    • modifyFacility

      public org.springframework.http.ResponseEntity<RestProcessingFacility> modifyFacility(Long id, RestProcessingFacility restFacility)
      Update the facility with the given ID with the attribute values of the given Json object. Both modified and unmodified attributes need to be provided.
      Angegeben von:
      modifyFacility in Schnittstelle FacilityController
      Parameter:
      id - the ID of the facility to update
      restFacility - a Json object containing the modified and unmodified attributes
      Gibt zurück:
      a response containing HTTP status "OK" and a Json object corresponding to the facility after modification (with ID and version for all contained objects) or HTTP status "NOT_MODIFIED" and the unchanged facility, if no attributes were actually changed, or HTTP status "NOT_FOUND" and an error message, if no facility with the given ID exists