Esempio n. 1
0
 /**
  * Get Resource Url for DeletePackageFile
  *
  * @param applicationKey
  * @param filepath
  * @return String Resource Url
  */
 public static MozuUrl deletePackageFileUrl(String applicationKey, String filepath) {
   UrlFormatter formatter =
       new UrlFormatter("/api/platform/developer/packages/{applicationKey}/files/{filepath}");
   formatter.formatUrl("applicationKey", applicationKey);
   formatter.formatUrl("filepath", filepath);
   return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.HOME_POD);
 }
Esempio n. 2
0
 /**
  * Get Resource Url for GetPackageMetadata
  *
  * @param applicationKey
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @return String Resource Url
  */
 public static MozuUrl getPackageMetadataUrl(String applicationKey, String responseFields) {
   UrlFormatter formatter =
       new UrlFormatter(
           "/api/platform/developer/packages/{applicationKey}/metadata?responseFields={responseFields}");
   formatter.formatUrl("applicationKey", applicationKey);
   formatter.formatUrl("responseFields", responseFields);
   return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.HOME_POD);
 }
Esempio n. 3
0
 /**
  * Get Resource Url for GetAppVersions
  *
  * @param nsAndAppId
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @return String Resource Url
  */
 public static MozuUrl getAppVersionsUrl(String nsAndAppId, String responseFields) {
   UrlFormatter formatter =
       new UrlFormatter(
           "/api/platform/developer/applications/versions/{nsAndAppId}?responseFields={responseFields}");
   formatter.formatUrl("nsAndAppId", nsAndAppId);
   formatter.formatUrl("responseFields", responseFields);
   return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.HOME_POD);
 }
Esempio n. 4
0
 /**
  * Get Resource Url for UpsertPackageFile
  *
  * @param applicationKey
  * @param filepath
  * @param lastModifiedTime
  * @param responseFields A list or array of fields returned for a call. These fields may be
  *     customized and may be used for various types of data calls in Mozu. For example,
  *     responseFields are returned for retrieving or updating attributes, carts, and messages in
  *     Mozu.
  * @return String Resource Url
  */
 public static MozuUrl upsertPackageFileUrl(
     String applicationKey, String filepath, String lastModifiedTime, String responseFields) {
   UrlFormatter formatter =
       new UrlFormatter(
           "/api/platform/developer/packages/{applicationKey}/files/{filepath}?lastModifiedTime={lastModifiedTime}&responseFields={responseFields}");
   formatter.formatUrl("applicationKey", applicationKey);
   formatter.formatUrl("filepath", filepath);
   formatter.formatUrl("lastModifiedTime", lastModifiedTime);
   formatter.formatUrl("responseFields", responseFields);
   return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.HOME_POD);
 }