code
stringlengths
73
34.1k
label
stringclasses
1 value
public static MozuUrl getApplicationSummaryChildrenUrl(String appId) { UrlFormatter formatter = new UrlFormatter("/api/platform/appdev/apppackages/apps/{appId}/"); formatter.formatUrl("appId", appId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl clonePackageUrl(String applicationKey, String packageName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/appdev/apppackages/{applicationKey}/clone/{packageName}?responseFields={responseFields}"); formatter.formatUrl("applicationKey", applicationKey); ...
java
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", res...
java
public static MozuUrl getPackageFileMetadataUrl(String applicationKey, String filepath, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/developer/packages/{applicationKey}/filemetadata/{filepath}?responseFields={responseFields}"); formatter.formatUrl("applicationKey", applicati...
java
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}"); ...
java
public static MozuUrl renamePackageFileUrl(String applicationKey, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/developer/packages/{applicationKey}/files_rename?responseFields={responseFields}"); formatter.formatUrl("applicationKey", applicationKey); formatter.formatUrl("r...
java
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...
java
public static ScoreFunction illumina() { return new ScoreFunction() { @Override public double evaluate(final double relativePosition) { // TODO: this could use improvement; perhaps re-use quality profiles from ART if (relativePosition < 0.05d) { ...
java
public static MozuUrl getFacetUrl(Integer facetId, String responseFields, Boolean validate) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/facets/{facetId}?validate={validate}&responseFields={responseFields}"); formatter.formatUrl("facetId", facetId); formatter.formatUrl("responseFi...
java
public static MozuUrl getFacetCategoryListUrl(Integer categoryId, Boolean includeAvailable, String responseFields, Boolean validate) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/facets/category/{categoryId}?includeAvailable={includeAvailable}&validate={validate}&responseFields={response...
java
public static MozuUrl updateFacetUrl(Integer facetId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/facets/{facetId}?responseFields={responseFields}"); formatter.formatUrl("facetId", facetId); formatter.formatUrl("responseFields", responseFields); return n...
java
public static MozuUrl deleteFacetByIdUrl(Integer facetId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/facets/{facetId}"); formatter.formatUrl("facetId", facetId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
@Override public Interval<C> intersect(final Interval<C> that) { if(this == MAGIC || that == NULL) { return that; } if(this == NULL) { return NULL; } if(that == MAGIC) { return new Interval(this.dimension, this.range); } ...
java
public Interval<C> coalesce(final Interval<C> that) { if(this.overlaps(that)) { return new Interval(this.dimension, this.range.span(that.range)); } return NULL; }
java
public boolean isConnected(final Interval<C> that) { if(this.hasNone() || that.hasNone()) { return false; } return this.range.isConnected(that.range); }
java
@Beta public Difference<C> minus(final Interval<C> that) { return new Difference(this.intersect(that.ahead()), this.intersect(that.behind())); }
java
public Interval<C> ahead() { if(this.hasNone()) { return new Interval(this.dimension, Range.all()); } if(this.range.equals(Range.all())) { return new Interval(this.dimension); } return new Interval(this.dimension, Range.downTo(t...
java
public Interval<C> behind() { if(this.hasNone()) { return new Interval(this.dimension, Range.all()); } if(this.range.equals(Range.all())) { return new Interval(this.dimension); } return new Interval(this.dimension, Range.upTo(th...
java
public Interval<C> gap(final Interval<C> that) { if(this.before(that)) { return this.ahead().intersect(that.behind()); } if(this.after(that)) { return this.behind().intersect(that.ahead()); } return NULL; }
java
public boolean before(final Interval<C> that) { if(this.hasNone() || that.hasNone()) { return false; } return this.dimension == that.dimension && this.range.upperEndpoint().compareTo(that.range.lowerEndpoint()) < 0; }
java
public boolean after(final Interval<C> that) { if(this.hasNone() || that.hasNone()) { return false; } return that.before(this); }
java
public boolean between(final Interval<C> that, final Interval<C> other) { checkNotNull(this.range, that.range); checkNotNull(other.range); return this.after(that) && this.before(other); }
java
public boolean then(final Interval<C> that) { checkNotNull(this.range, that.range); return this.intersect(that).equals(this); }
java
public boolean ends(final Interval<C> that) { checkNotNull(this.range, that.range); return this.dimension == that.dimension && this.range.upperEndpoint().compareTo(that.range.upperEndpoint()) == 0 && this.range.lowerEndpoint().compareTo(that.range.lowerEndpoint()) > 0; ...
java
public static <C extends Comparable<?>> List<Poset<C>> singletons(final Collection<? extends C> collection) { List<Poset<C>> singletons = new ArrayList(); Poset previous = NULL; for(C element : collection) { List<C> set = new ArrayList<>(); set.add(element); ...
java
public static void validateHtml(final File validationResultDir, final Configuration props, final File file) throws IOException { Preconditions.checkArgument(StringUtils.isNotBlank(props.get(WebConstants.W3C_MARKUP_VALIDATION_URL))); InputStream is = null; BufferedReader br = null; InputStream fis = null; try ...
java
static File writeSequenceToTempFile(final Sequence sequence) throws IOException { File tmp = File.createTempFile(sequence.getName() + "-", ".fa"); try (FileOutputStream outputStream = new FileOutputStream(tmp)) { SeqIOTools.writeFasta(outputStream, sequence); } return tmp; ...
java
public static Iterable<GenewiseExon> genewiseExons(final File aminoAcidHmm2File, final File genomicDnaFastaFile) throws IOException { checkNotNull(aminoAcidHmm2File); checkNotNull(genomicDnaFastaFile); File genewiseResult = File.createTempFile("genewise", ".txt"); ProcessBuilder genewi...
java
public Latitude parseLatitude(final String latitudeString) throws ParserException { try { final Latitude latitude = new Latitude(parseAngle(latitudeString)); return latitude; } catch (final RuntimeException e) { throw new ParserException("Cannot parse latitude: " + latitudeSt...
java
public Longitude parseLongitude(final String longitudeString) throws ParserException { try { final Longitude longitude = new Longitude(parseAngle(longitudeString)); return longitude; } catch (final RuntimeException e) { throw new ParserException("Cannot parse longitude: " + l...
java
public File createDumpFile(final File dir, final String extension, final String urlString, final String additionalInfo) { URI uri = URI.create(urlString); String path = uri.getPath(); if (path == null) { log.warn("Cannot create dump file for URI: " + uri); return null; } String name = PATTERN_FIRST_LAS...
java
public static MozuUrl getReturnItemUrl(String responseFields, String returnId, String returnItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/items/{returnItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl(...
java
public static MozuUrl getAvailablePaymentActionsForReturnUrl(String paymentId, String returnId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{returnId}/payments/{paymentId}/actions"); formatter.formatUrl("paymentId", paymentId); formatter.formatUrl("returnId", returnId); return new M...
java
public static MozuUrl resendReturnEmailUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/email/resend"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl deleteOrderItemUrl(String returnId, String returnItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/returns/{orderId}/items/{orderItemId}?updatemode={updateMode}&version={version}"); formatter.formatUrl("returnId", returnId); formatter.formatUrl("returnItemId", returnIte...
java
public void setAddress(final String address) { // Do we have a subaddressing account? Preconditions.checkArgument(StringUtils.startsWith(this.address, accountId + "+"), "Mail address can only be changed when subaddressing is active"); Preconditions.checkArgument(StringUtils.startsWith(address, accountId),...
java
public static MozuUrl getSynonymDefinitionCollectionUrl(String localeCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/search/synonym-definitions/{localeCode}?responseFields={responseFields}"); formatter.formatUrl("localeCode", localeCode); formatter.format...
java
public static MozuUrl updateSearchTuningRuleUrl(String responseFields, String searchTuningRuleCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/search/searchtuningrules/{searchTuningRuleCode}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); ...
java
public static MozuUrl updateSynonymDefinitionUrl(String responseFields, Integer synonymId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/search/synonyms/{synonymId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("synony...
java
public static MozuUrl deleteSearchTuningRuleUrl(String searchTuningRuleCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/search/searchtuningrules/{searchTuningRuleCode}"); formatter.formatUrl("searchTuningRuleCode", searchTuningRuleCode); return new MozuUrl(formatter.getResourceU...
java
public static MozuUrl deleteSynonymDefinitionUrl(Integer synonymId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/search/synonyms/{synonymId}"); formatter.formatUrl("synonymId", synonymId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public ApplicationContext getApplicationContext(final JobExecutionContext context) throws JobExecutionException { SchedulerContext schedulerContext; try { final Scheduler scheduler = context.getScheduler(); schedulerContext = scheduler.getContext(); } catch (Schedule...
java
public QuartzExceptionHandler getQuartzExceptionHandler(final JobExecutionContext context) { QuartzExceptionHandler exceptionHandler = null; try { final ApplicationContext applicationContext = getApplicationContext(context); exceptionHandler = (QuartzExceptionHandler) appli...
java
public void buildAllStatistics() { for (Map<String,?> map : daoService.getAppsAndCountsToTreat()) { // get the date of older SMS for this app and account final Application application = (Application) map.get(Sms.PROP_APP); final Account account = (Account) map.get(Sms.PROP_ACC); final Date olderSmsDa...
java
private void buildStatisticForAMonth(Application application, Account account, Date month) { buildStatistics( application, account, getFirstDayOfMonth(month), getLastDayOfMonth(month), getMarkerDateOfMonth(month)); }
java
private Date getLastDayOfMonth(final Date date) { final Calendar calendar = toGregorianCalendar(date); calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH)); calendar.set(Calendar.HOUR_OF_DAY, 23); calendar.set(Calendar.MINUTE, 59); calendar.set(Calendar.SECOND, 59)...
java
private List<Date> getListOfMarkerDateBetWeenTwoDates(final Date startDate, final Date endDate) { final List<Date> listOfMarkerDate = new LinkedList<>(); final Calendar startDateAsCal = toGregorianCalendar(startDate); final Calendar endDateAsCal = toGregorianCalendar(endDate); while (startDateAsCa...
java
public EventHandlerStatus dispatchEvent(HttpServletRequest httpRequest) { ApiContext apiContext = new MozuApiContext(httpRequest); Event event = null; // get the event from the request and validate try { String body = IOUtils.toString(httpRequest.getInputStream()); ...
java
protected void invokeHandler(Event event, ApiContext apiContext) throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException { String topic[] = event.getTopic...
java
protected final Vertex supremum(final E proposed, Vertex generator) { boolean max = true; while (max) { max = false; for (Edge edge : generator.getEdges(Direction.BOTH)) { Vertex target = edge.getVertex(Direction.OUT); if (filter(target, generator...
java
@Override public final boolean containsAll(final Collection<? extends E> collection) { for(E element : collection) { if(!this.contains(element)) { return false; } } return true; }
java
protected final Vertex addIntent(final E proposed, Vertex generator) { generator = supremum(proposed, generator); if (filter(generator, proposed) && filter(proposed, generator)) { return generator; } List parents = new ArrayList<>(); for (Edge edge : generat...
java
public static MozuUrl updateOrderAttributesUrl(String orderId, Boolean removeMissing) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/attributes?removeMissing={removeMissing}"); formatter.formatUrl("orderId", orderId); formatter.formatUrl("removeMissing", removeMissing); return...
java
public static MozuUrl updateUrl(String cardId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/payments/commerce/payments/cards/{cardId}?responseFields={responseFields}"); formatter.formatUrl("cardId", cardId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(...
java
public static MozuUrl deleteUrl(String cardId) { UrlFormatter formatter = new UrlFormatter("/payments/commerce/payments/cards/{cardId}"); formatter.formatUrl("cardId", cardId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.PCI_POD) ; }
java
public static MozuUrl getPropertyTypesUrl(Integer pageSize, String responseFields, Integer startIndex) { UrlFormatter formatter = new UrlFormatter("/api/content/propertytypes/?pageSize={pageSize}&startIndex={startIndex}&responseFields={responseFields}"); formatter.formatUrl("pageSize", pageSize); formatter.f...
java
public static MozuUrl getPropertyTypeUrl(String propertyTypeName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/content/propertytypes/{propertyTypeName}?responseFields={responseFields}"); formatter.formatUrl("propertyTypeName", propertyTypeName); formatter.formatUrl("responseFields...
java
public static MozuUrl deletePropertyTypeUrl(String propertyTypeName) { UrlFormatter formatter = new UrlFormatter("/api/content/propertytypes/{propertyTypeName}"); formatter.formatUrl("propertyTypeName", propertyTypeName); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl storeCredentialsUrl() { UrlFormatter formatter = new UrlFormatter("/api/platform/extensions/credentialStore/"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl getQuoteItemsByQuoteNameUrl(Integer customerAccountId, String filter, Integer pageSize, String quoteName, String responseFields, String sortBy, Integer startIndex) { UrlFormatter formatter = new UrlFormatter("/api/commerce/quotes/customers/{customerAccountId}/{quoteName}/items?startIndex={start...
java
public static MozuUrl addItemToQuoteUrl(String quoteId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/quotes/{quoteId}/items?responseFields={responseFields}"); formatter.formatUrl("quoteId", quoteId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(...
java
public static MozuUrl updateQuoteItemUrl(String quoteId, String quoteItemId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/quotes/{quoteId}/items/{quoteItemId}?responseFields={responseFields}"); formatter.formatUrl("quoteId", quoteId); formatter.formatUrl("quoteItemId", quoteI...
java
public static MozuUrl deleteQuoteItemUrl(String quoteId, String quoteItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/quotes/{quoteId}/items/{quoteItemId}"); formatter.formatUrl("quoteId", quoteId); formatter.formatUrl("quoteItemId", quoteItemId); return new MozuUrl(formatter.getResourceUrl()...
java
void signRequest(final RSAPublicKey rsaPublicKey, final byte[] data) throws IOException { // TODO (dxia) Support more than just Rsa keys final String keyType = Rsa.RSA_LABEL; final byte[] publicExponent = rsaPublicKey.getPublicExponent().toByteArray(); final byte[] modulus = rsaPublicKey.getModulus().to...
java
public static MozuUrl splitItemUrl(String checkoutId, String itemId, Integer quantity, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/checkouts/{checkoutId}/items/{itemId}/split?quantity={quantity}&responseFields={responseFields}"); formatter.formatUrl("checkoutId", checkoutId...
java
public static MozuUrl updateItemDestinationUrl(String checkoutId, String destinationId, String itemId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/checkouts/{checkoutId}/items/{itemId}/destination/{destinationId}?responseFields={responseFields}"); formatter.formatUrl("check...
java
public static MozuUrl deleteCheckoutItemUrl(String checkoutId, String itemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/checkouts/{checkoutId}/items/{itemId}"); formatter.formatUrl("checkoutId", checkoutId); formatter.formatUrl("itemId", itemId); return new MozuUrl(formatter.getResourceUr...
java
public static MozuUrl getViewEntityContainerUrl(String entityId, String entityListFullName, String responseFields, String viewName) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/views/{viewName}/entityContainers/{entityId}?responseFields={responseFields}"); formatte...
java
public static MozuUrl getViewEntityContainersUrl(String entityListFullName, String filter, Integer pageSize, String responseFields, Integer startIndex, String viewName) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/views/{viewName}/entityContainers?pageSize={pageSize}&...
java
public static MozuUrl getEntityListViewUrl(String entityListFullName, String responseFields, String viewName) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/views/{viewName}?responseFields={responseFields}"); formatter.formatUrl("entityListFullName", entityListFullNa...
java
public static MozuUrl getEntityListViewsUrl(String entityListFullName, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/views?responseFields={responseFields}"); formatter.formatUrl("entityListFullName", entityListFullName); formatter.formatUrl...
java
public static MozuUrl deleteEntityListViewUrl(String entityListFullName, String viewName) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/views/{viewName}"); formatter.formatUrl("entityListFullName", entityListFullName); formatter.formatUrl("viewName", viewName); ...
java
public static MozuUrl getWishlistItemUrl(String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatte...
java
public static MozuUrl getWishlistItemsByWishlistNameUrl(Integer customerAccountId, String filter, Integer pageSize, String responseFields, String sortBy, Integer startIndex, String wishlistName) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/customers/{customerAccountId}/{wishlistName}/items?...
java
public static MozuUrl updateWishlistItemQuantityUrl(Integer quantity, String responseFields, String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}/{quantity}?responseFields={responseFields}"); formatter.formatUrl("quant...
java
public static MozuUrl removeAllWishlistItemsUrl(String wishlistId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items"); formatter.formatUrl("wishlistId", wishlistId); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl deleteWishlistItemUrl(String wishlistId, String wishlistItemId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/wishlists/{wishlistId}/items/{wishlistItemId}"); formatter.formatUrl("wishlistId", wishlistId); formatter.formatUrl("wishlistItemId", wishlistItemId); return new...
java
public static MozuUrl getCreditUrl(String code, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/credits/{code}?responseFields={responseFields}"); formatter.formatUrl("code", code); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatte...
java
public static MozuUrl resendCreditCreatedEmailUrl(String code, String userId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/credits/{code}/Resend-Email?userId={userId}"); formatter.formatUrl("code", code); formatter.formatUrl("userId", userId); return new MozuUrl(formatter.getResourc...
java
public static void main(final String[] args) { SLF4JBridgeHandler.install(); boolean exitWithError = true; StopWatch stopWatch = new StopWatch(); try { RESULT_LOG.info("jFunk started"); stopWatch.start(); int threadCount = 1; boolean parallel = false; Properties scriptProperties = ...
java
public Element findElementById(final Element element) { Attribute a = element.getAttribute(idAttributeName); if (a == null) { return null; } return findElementById(a.getValue()); }
java
public Element findElementById(final String id) { Element element = cache.get(id); if (element == null) { if (log.isDebugEnabled()) { log.debug("Search for element with ID {}", id); } Element root = document.getRootElement(); element = search(root, elementName, idAttributeName, id); if (e...
java
public static Element search(final Element root, final String elementName, final String idAttributeName, final String id) { Element element = null; @SuppressWarnings("unchecked") List<Element> children = root.getChildren(); for (Element e : children) { if (elementName == null || e.getName().equals(eleme...
java
public static Element getChild(final String name, final Element root) { @SuppressWarnings("unchecked") List<Element> allChildren = root.getChildren(); for (Element child : allChildren) { if (child.getName().equals(name)) { return child; } } return null; }
java
public static MozuUrl getVisitUrl(String responseFields, String visitId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/visits/{visitId}?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); formatter.formatUrl("visitId", visitId); return new MozuUr...
java
public boolean executeScript(final File script, final Properties scriptProperties) { checkState(script.exists(), "Script file does not exist: %s", script); checkState(script.canRead(), "Script file is not readable: %s", script); Reader reader = null; boolean success = false; Throwable throwable = null; sc...
java
@Override public void exitScope() { Map<Key<?>, Object> scopeMap = checkNotNull(getScopeMapForCurrentThread(), "No scope map found for the current thread. Forgot to call enterScope()?"); performDisposal(scopeMap); nonInheritableScopeCache.remove(); inheritableScopeCache.remove(); log.debug("Exited scope....
java
public static MozuUrl getLocationsInUsageTypeUrl(String filter, Boolean includeAttributeDefinition, String locationUsageType, Integer pageSize, String responseFields, String sortBy, Integer startIndex) { UrlFormatter formatter = new UrlFormatter("/api/commerce/storefront/locationUsageTypes/{locationUsageType}/loca...
java
public static MozuUrl getDirectShipLocationUrl(Boolean includeAttributeDefinition, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/storefront/locationUsageTypes/DS/location?includeAttributeDefinition={includeAttributeDefinition}&responseFields={responseFields}"); formatter.form...
java
public static MozuUrl getInStorePickupLocationUrl(Boolean includeAttributeDefinition, String locationCode, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/storefront/locationUsageTypes/SP/locations/{locationCode}?includeAttributeDefinition={includeAttributeDefinition}&responseFiel...
java
public static MozuUrl getProductReservationUrl(Integer productReservationId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productreservations/{productReservationId}?responseFields={responseFields}"); formatter.formatUrl("productReservationId", productReservatio...
java
public static MozuUrl commitReservationsUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productreservations/commit"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl updateProductReservationsUrl(Boolean skipInventoryCheck) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productreservations/?skipInventoryCheck={skipInventoryCheck}"); formatter.formatUrl("skipInventoryCheck", skipInventoryCheck); return new MozuUrl(formatter.g...
java
public static MozuUrl deleteProductReservationUrl(Integer productReservationId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productreservations/{productReservationId}"); formatter.formatUrl("productReservationId", productReservationId); return new MozuUrl(formatter.getResourceUrl...
java
public static MozuUrl getSegmentUrl(Integer id, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/segments/{id}?responseFields={responseFields}"); formatter.formatUrl("id", id); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.get...
java
public static MozuUrl addSegmentAccountsUrl(Integer id) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/segments/{id}/accounts"); formatter.formatUrl("id", id); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
java
public static MozuUrl removeSegmentAccountUrl(Integer accountId, Integer id) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/segments/{id}/accounts/{accountId}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("id", id); return new MozuUrl(formatter.getResourceUrl(), ...
java
public static MozuUrl getAvailablePaymentActionsUrl(String orderId, String paymentId) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/payments/{paymentId}/actions"); formatter.formatUrl("orderId", orderId); formatter.formatUrl("paymentId", paymentId); return new MozuUrl(formatt...
java
public static MozuUrl performPaymentActionUrl(String orderId, String paymentId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/payments/{paymentId}/actions?responseFields={responseFields}"); formatter.formatUrl("orderId", orderId); formatter.formatUrl("paym...
java
public static MozuUrl getMultiRatesUrl(Boolean includeRawResponse) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/storefront/shipping/request-multi-rates"); formatter.formatUrl("includeRawResponse", includeRawResponse); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TE...
java