Add collaboration feature
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / errors / OnboardingMethodErrorBuilder.java
index 8aad900..49785a3 100644 (file)
@@ -1,36 +1,18 @@
 package org.openecomp.sdc.vendorsoftwareproduct.errors;
 
-import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes
-    .VSP_INVALID_ONBOARDING_METHOD;
-import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes
-    .VSP_ONBOARD_METHOD_UPDATE_NOT_ALLOWED;
-
 import org.openecomp.sdc.common.errors.ErrorCategory;
 import org.openecomp.sdc.common.errors.ErrorCode;
 
+import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.VSP_INVALID_ONBOARDING_METHOD;
+
 /**
  * The type Onboarding method error builder.
  */
 public class OnboardingMethodErrorBuilder {
 
-  private static final String VSP_ONBOARD_METHOD_UPDATE_NOT_ALLOWED_MSG =
-      "onboardingMethod update is not allowed.";
   private static final String VSP_INVALID_ONBOARDING_METHOD_MSG =
       "The onboardingMethod value doesn't meet the expected attribute value.";
 
-  /**
-   * Gets onboarding update error.
-   *
-   * @return the onboarding update error
-   */
-  public static ErrorCode getOnboardingUpdateError() {
-    ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
-    builder.withId(VSP_ONBOARD_METHOD_UPDATE_NOT_ALLOWED);
-    builder.withCategory(ErrorCategory.APPLICATION);
-    builder.withMessage(String.format(VSP_ONBOARD_METHOD_UPDATE_NOT_ALLOWED_MSG));
-    return builder.build();
-  }
-
   /**
    * Get invalid onboarding method error builder error code.
    *
@@ -40,7 +22,7 @@ public class OnboardingMethodErrorBuilder {
     ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
     builder.withId(VSP_INVALID_ONBOARDING_METHOD);
     builder.withCategory(ErrorCategory.APPLICATION);
-    builder.withMessage(String.format(VSP_INVALID_ONBOARDING_METHOD_MSG));
+    builder.withMessage(VSP_INVALID_ONBOARDING_METHOD_MSG);
     return builder.build();
   }
 }