Interface ContractRestOpenApi

  • All Known Implementing Classes:
    ContractRestController

    @RequestMapping("/v2.1.1/contract-manager/")
    public interface ContractRestOpenApi
    Swagger documentation for contract manager.
    Author:
    Mauricio Ruiz Beltrán <mauricio.ruiz@kuwaiba.org>
    • Method Detail

      • createContractPool

        @RequestMapping(method=POST,
                        value="createContractPool/{poolName}/{poolDescription}/{poolClassName}/{userName}/{sessionId}",
                        produces="application/json")
        String createContractPool​(@NotNull @Valid @PathVariable(value="poolName",required=true)
                                  @NotNull @Valid String poolName,
                                  @NotNull @Valid @PathVariable(value="poolDescription",required=true)
                                  @NotNull @Valid String poolDescription,
                                  @NotNull @Valid @PathVariable(value="poolClassName",required=true)
                                  @NotNull @Valid String poolClassName,
                                  @Valid @PathVariable(value="userName",required=true)
                                  @Valid String userName,
                                  @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                  @NotNull @Valid String sessionId)
      • updateContractPool

        @RequestMapping(method=PUT,
                        value="updateContractPool/{poolId}/{poolClassName}/{poolName}/{poolDescription}/{userName}/{sessionId}",
                        produces="application/json")
        void updateContractPool​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                                @NotNull @Valid String poolId,
                                @NotNull @Valid @PathVariable(value="poolClassName",required=true)
                                @NotNull @Valid String poolClassName,
                                @NotNull @Valid @PathVariable(value="poolName",required=true)
                                @NotNull @Valid String poolName,
                                @NotNull @Valid @PathVariable(value="poolDescription",required=true)
                                @NotNull @Valid String poolDescription,
                                @Valid @PathVariable(value="userName",required=true)
                                @Valid String userName,
                                @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                @NotNull @Valid String sessionId)
      • deleteContractPool

        @RequestMapping(method=DELETE,
                        value="deleteContractPool/{poolId}/{poolClassName}/{userName}/{sessionId}",
                        produces="application/json")
        void deleteContractPool​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                                @NotNull @Valid String poolId,
                                @NotNull @Valid @PathVariable(value="poolClassName",required=true)
                                @NotNull @Valid String poolClassName,
                                @Valid @PathVariable(value="userName",required=true)
                                @Valid String userName,
                                @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                @NotNull @Valid String sessionId)
      • getContractPools

        @RequestMapping(method=GET,
                        value="getContractPools/{sessionId}",
                        produces="application/json")
        List<InventoryObjectPool> getContractPools​(@NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                   @NotNull @Valid String sessionId)
      • getContractPool

        @RequestMapping(method=GET,
                        value="getContractPool/{poolId}/{poolClassName}/{sessionId}",
                        produces="application/json")
        InventoryObjectPool getContractPool​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                                            @NotNull @Valid String poolId,
                                            @NotNull @Valid @PathVariable(value="poolClassName",required=true)
                                            @NotNull @Valid String poolClassName,
                                            @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                            @NotNull @Valid String sessionId)
      • createContract

        @RequestMapping(method=POST,
                        value="createContract/{poolId}/{contractClassName}/{userName}/{sessionId}",
                        produces="application/json")
        String createContract​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                              @NotNull @Valid String poolId,
                              @NotNull @Valid @PathVariable(value="contractClassName",required=true)
                              @NotNull @Valid String contractClassName,
                              @Valid @RequestBody
                              @Valid HashMap<String,​String> attributes,
                              @Valid @PathVariable(value="userName",required=true)
                              @Valid String userName,
                              @NotNull @Valid @PathVariable(value="sessionId",required=true)
                              @NotNull @Valid String sessionId)
      • updateContract

        @RequestMapping(method=PUT,
                        value="updateContract/{contractClassName}/{contractId}/{userName}/{sessionId}",
                        produces="application/json")
        void updateContract​(@NotNull @Valid @PathVariable(value="contractClassName",required=true)
                            @NotNull @Valid String contractClassName,
                            @NotNull @Valid @PathVariable(value="contractId",required=true)
                            @NotNull @Valid String contractId,
                            @Valid @RequestBody
                            @Valid HashMap<String,​String> attributes,
                            @Valid @PathVariable(value="userName",required=true)
                            @Valid String userName,
                            @NotNull @Valid @PathVariable(value="sessionId",required=true)
                            @NotNull @Valid String sessionId)
      • deleteContract

        @RequestMapping(method=DELETE,
                        value="deleteContract/{contractClassName}/{contractId}/{userName}/{sessionId}",
                        produces="application/json")
        void deleteContract​(@NotNull @Valid @PathVariable(value="contractClassName",required=true)
                            @NotNull @Valid String contractClassName,
                            @NotNull @Valid @PathVariable(value="contractId",required=true)
                            @NotNull @Valid String contractId,
                            @Valid @PathVariable(value="userName",required=true)
                            @Valid String userName,
                            @NotNull @Valid @PathVariable(value="sessionId",required=true)
                            @NotNull @Valid String sessionId)
      • getAllContracts

        @RequestMapping(method=GET,
                        value="getAllContracts/{page}/{limit}/{sessionId}",
                        produces="application/json")
        List<BusinessObjectLight> getAllContracts​(@NotNull @Valid @PathVariable(value="page",required=true)
                                                  @javax.validation.constraints.NotNull,@javax.validation.Valid long page,
                                                  @NotNull @Valid @PathVariable(value="limit",required=true)
                                                  @javax.validation.constraints.NotNull,@javax.validation.Valid long limit,
                                                  @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                  @NotNull @Valid String sessionId)
      • getContractsInPool

        @RequestMapping(method=GET,
                        value="getContractsInPool/{poolId}/{limit}/{sessionId}",
                        produces="application/json")
        List<BusinessObjectLight> getContractsInPool​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                                                     @NotNull @Valid String poolId,
                                                     @NotNull @Valid @PathVariable(value="limit",required=true)
                                                     @javax.validation.constraints.NotNull,@javax.validation.Valid int limit,
                                                     @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                     @NotNull @Valid String sessionId)
      • getContract

        @RequestMapping(method=GET,
                        value="getContract/{contractClassName}/{contractId}/{sessionId}",
                        produces="application/json")
        BusinessObject getContract​(@NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                   @NotNull @Valid String contractClassName,
                                   @NotNull @Valid @PathVariable(value="contractId",required=true)
                                   @NotNull @Valid String contractId,
                                   @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                   @NotNull @Valid String sessionId)
      • relateObjectsToContract

        @RequestMapping(method=PUT,
                        value="relateObjectsToContract/{contractClassName}/{contractId}/{objectsClassNames}/{objectsIds}/{userName}/{sessionId}",
                        produces="application/json")
        void relateObjectsToContract​(@NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                     @NotNull @Valid String contractClassName,
                                     @NotNull @Valid @PathVariable(value="contractId",required=true)
                                     @NotNull @Valid String contractId,
                                     @NotNull @Valid @PathVariable(value="objectsClassNames",required=true)
                                     @NotNull @Valid String[] objectsClassNames,
                                     @NotNull @Valid @PathVariable(value="objectsIds",required=true)
                                     @NotNull @Valid String[] objectsIds,
                                     @Valid @PathVariable(value="userName",required=true)
                                     @Valid String userName,
                                     @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                     @NotNull @Valid String sessionId)
      • relateObjectToContract

        @RequestMapping(method=PUT,
                        value="relateObjectToContract/{contractClassName}/{contractId}/{objectClassName}/{objectId}/{userName}/{sessionId}",
                        produces="application/json")
        void relateObjectToContract​(@NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                    @NotNull @Valid String contractClassName,
                                    @NotNull @Valid @PathVariable(value="contractId",required=true)
                                    @NotNull @Valid String contractId,
                                    @NotNull @Valid @PathVariable(value="objectClassName",required=true)
                                    @NotNull @Valid String objectClassName,
                                    @NotNull @Valid @PathVariable(value="objectId",required=true)
                                    @NotNull @Valid String objectId,
                                    @Valid @PathVariable(value="userName",required=true)
                                    @Valid String userName,
                                    @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                    @NotNull @Valid String sessionId)
      • releaseObjectFromContract

        @RequestMapping(method=PUT,
                        value="releaseObjectFromContract/{objectClassName}/{objectId}/{contractClassName}/{contractId}/{userName}/{sessionId}",
                        produces="application/json")
        void releaseObjectFromContract​(@NotNull @Valid @PathVariable(value="objectClassName",required=true)
                                       @NotNull @Valid String objectClassName,
                                       @NotNull @Valid @PathVariable(value="objectId",required=true)
                                       @NotNull @Valid String objectId,
                                       @NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                       @NotNull @Valid String contractClassName,
                                       @NotNull @Valid @PathVariable(value="contractId",required=true)
                                       @NotNull @Valid String contractId,
                                       @Valid @PathVariable(value="userName",required=true)
                                       @Valid String userName,
                                       @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                       @NotNull @Valid String sessionId)
      • getContractResources

        @RequestMapping(method=GET,
                        value="getContractResources/{contractClassName}/{contractId}/{sessionId}",
                        produces="application/json")
        List<BusinessObjectLight> getContractResources​(@NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                                       @NotNull @Valid String contractClassName,
                                                       @NotNull @Valid @PathVariable(value="contractId",required=true)
                                                       @NotNull @Valid String contractId,
                                                       @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                       @NotNull @Valid String sessionId)
      • copyContractToPool

        @RequestMapping(method=PUT,
                        value="copyContractToPool/{poolId}/{contractClassName}/{contractId}/{userName}/{sessionId}",
                        produces="application/json")
        String copyContractToPool​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                                  @NotNull @Valid String poolId,
                                  @NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                  @NotNull @Valid String contractClassName,
                                  @NotNull @Valid @PathVariable(value="contractId",required=true)
                                  @NotNull @Valid String contractId,
                                  @Valid @PathVariable(value="userName",required=true)
                                  @Valid String userName,
                                  @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                  @NotNull @Valid String sessionId)
      • moveContractToPool

        @RequestMapping(method=PUT,
                        value="moveContractToPool/{poolId}/{contractClassName}/{contractId}/{userName}/{sessionId}",
                        produces="application/json")
        void moveContractToPool​(@NotNull @Valid @PathVariable(value="poolId",required=true)
                                @NotNull @Valid String poolId,
                                @NotNull @Valid @PathVariable(value="contractClassName",required=true)
                                @NotNull @Valid String contractClassName,
                                @NotNull @Valid @PathVariable(value="contractId",required=true)
                                @NotNull @Valid String contractId,
                                @Valid @PathVariable(value="userName",required=true)
                                @Valid String userName,
                                @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                @NotNull @Valid String sessionId)