Update onboarding upload status during processing
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-software-products-rest / vendor-software-products-rest-services / src / main / java / org / openecomp / sdcrests / vsp / rest / services / OrchestrationTemplateCandidateUploadManager.java
index 0f33580..c4b3e2e 100644 (file)
@@ -51,6 +51,26 @@ public interface OrchestrationTemplateCandidateUploadManager {
     VspUploadStatusDto putUploadAsFinished(final String vspId, final String vspVersionId, final UUID lockId, final VspUploadStatus completionStatus,
                                            final String user);
 
+    /**
+     * Updates the upload status to a validation state.
+     *
+     * @param vspId        the Vendor Software Product id
+     * @param vspVersionId the Vendor Software Product version id
+     * @param user         the current user
+     * @return the updated upload status
+     */
+    VspUploadStatusDto putUploadInValidation(final String vspId, final String vspVersionId, final String user);
+
+    /**
+     * Updates the upload status to a processing state.
+     *
+     * @param vspId        the Vendor Software Product id
+     * @param vspVersionId the Vendor Software Product version id
+     * @param user         the current user
+     * @return the updated upload status
+     */
+    VspUploadStatusDto putUploadInProcessing(String vspId, String vspVersionId, String user);
+
     /**
      * Finds the latest upload status for a given Vendor Software Product version.
      *