idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
142,200
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 ) ; }
Get Resource Url for GetApplicationSummaryChildren
142,201
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...
Get Resource Url for ClonePackage
142,202
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 ( "responseFiel...
Get Resource Url for GetAppVersions
142,203
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" , app...
Get Resource Url for GetPackageFileMetadata
142,204
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}" ...
Get Resource Url for UpsertPackageFile
142,205
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 . format...
Get Resource Url for RenamePackageFile
142,206
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 ) ; re...
Get Resource Url for DeletePackageFile
142,207
public static ScoreFunction illumina ( ) { return new ScoreFunction ( ) { public double evaluate ( final double relativePosition ) { if ( relativePosition < 0.05d ) { return 14400.0d * ( relativePosition * relativePosition ) ; } else if ( relativePosition < 0.8d ) { return 36.0d ; } else { return 22600.0d * Math . pow ...
Illumina positional score function .
142,208
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 ( "r...
Get Resource Url for GetFacet
142,209
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={respo...
Get Resource Url for GetFacetCategoryList
142,210
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 ) ; ...
Get Resource Url for UpdateFacet
142,211
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 ) ; }
Get Resource Url for DeleteFacetById
142,212
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 ) ; } if ( this . dimension == that . dimension ) { if ( this . isConnected ( that ) )...
Find the intersection of two intervals .
142,213
public Interval < C > coalesce ( final Interval < C > that ) { if ( this . overlaps ( that ) ) { return new Interval ( this . dimension , this . range . span ( that . range ) ) ; } return NULL ; }
Find the coalesced result of two overlapping intervals .
142,214
public boolean isConnected ( final Interval < C > that ) { if ( this . hasNone ( ) || that . hasNone ( ) ) { return false ; } return this . range . isConnected ( that . range ) ; }
Test if two intervals are connected
142,215
public Difference < C > minus ( final Interval < C > that ) { return new Difference ( this . intersect ( that . ahead ( ) ) , this . intersect ( that . behind ( ) ) ) ; }
Experimental method to find the difference between two intervals .
142,216
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 ( this . range . upperEndpoint ( ) , revers...
Find the interval that extends ahead of this one .
142,217
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 ( this . range . lowerEndpoint ( ) , reverse...
Find the interval that extends behind this one .
142,218
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 ; }
Find the gap between two intervals .
142,219
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 ; }
Test if an interval precedes another .
142,220
public boolean after ( final Interval < C > that ) { if ( this . hasNone ( ) || that . hasNone ( ) ) { return false ; } return that . before ( this ) ; }
Test if an interval is after another .
142,221
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 ) ; }
Test if an interval is between two others .
142,222
public boolean then ( final Interval < C > that ) { checkNotNull ( this . range , that . range ) ; return this . intersect ( that ) . equals ( this ) ; }
Test if an interval implies another .
142,223
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 ( ) ) > ...
Test if an interval ends another .
142,224
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 ) ; Poset poset = new...
Calculate partially ordered singletons from a totally - ordered collection .
142,225
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 f...
Validates an HTML file against the W3C markup validation service .
142,226
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 ; }
Write the specified sequence to a temporary file in FASTA format .
142,227
public static Iterable < GenewiseExon > genewiseExons ( final File aminoAcidHmm2File , final File genomicDnaFastaFile ) throws IOException { checkNotNull ( aminoAcidHmm2File ) ; checkNotNull ( genomicDnaFastaFile ) ; File genewiseResult = File . createTempFile ( "genewise" , ".txt" ) ; ProcessBuilder genewise = new Pro...
Return the exons predicted from the alignment of the specified amino acid HMM file in HMMER2 format against the specified genomic DNA sequence file in FASTA format .
142,228
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: " + latitudeString ) ; } }
Parses a string representation of the latitude .
142,229
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: " + longitudeString ) ; } }
Parses a string representation of the longitude .
142,230
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_...
Computes the best file to save the response to the current page .
142,231
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 . for...
Get Resource Url for GetReturnItem
142,232
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 ) ; retu...
Get Resource Url for GetAvailablePaymentActionsForReturn
142,233
public static MozuUrl resendReturnEmailUrl ( ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/returns/email/resend" ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for ResendReturnEmail
142,234
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" , ...
Get Resource Url for DeleteOrderItem
142,235
public void setAddress ( final String address ) { Preconditions . checkArgument ( StringUtils . startsWith ( this . address , accountId + "+" ) , "Mail address can only be changed when subaddressing is active" ) ; Preconditions . checkArgument ( StringUtils . startsWith ( address , accountId ) , "New mail address %s do...
Allows to set a new mail address . This is only possible when mail subaddressing is active and the new mail address belongs to the defined mail accountId .
142,236
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 . ...
Get Resource Url for GetSynonymDefinitionCollection
142,237
public static MozuUrl updateSearchTuningRuleUrl ( String responseFields , String searchTuningRuleCode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/search/searchtuningrules/{searchTuningRuleCode}?responseFields={responseFields}" ) ; formatter . formatUrl ( "responseFields" , responseField...
Get Resource Url for UpdateSearchTuningRule
142,238
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 (...
Get Resource Url for UpdateSynonymDefinition
142,239
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 . getRe...
Get Resource Url for DeleteSearchTuningRule
142,240
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 ...
Get Resource Url for DeleteSynonymDefinition
142,241
public ApplicationContext getApplicationContext ( final JobExecutionContext context ) throws JobExecutionException { SchedulerContext schedulerContext ; try { final Scheduler scheduler = context . getScheduler ( ) ; schedulerContext = scheduler . getContext ( ) ; } catch ( SchedulerException e ) { logger . error ( "Una...
Retrieves the spring application context from the job execution context .
142,242
public QuartzExceptionHandler getQuartzExceptionHandler ( final JobExecutionContext context ) { QuartzExceptionHandler exceptionHandler = null ; try { final ApplicationContext applicationContext = getApplicationContext ( context ) ; exceptionHandler = ( QuartzExceptionHandler ) applicationContext . getBean ( QUARTZ_EXC...
Retrieve the quartz exception handler bean .
142,243
public void buildAllStatistics ( ) { for ( Map < String , ? > map : daoService . getAppsAndCountsToTreat ( ) ) { final Application application = ( Application ) map . get ( Sms . PROP_APP ) ; final Account account = ( Account ) map . get ( Sms . PROP_ACC ) ; final Date olderSmsDate = daoService . getDateOfOlderSmsByApp...
Build all non already computed statistic whatever the application account or date .
142,244
private void buildStatisticForAMonth ( Application application , Account account , Date month ) { buildStatistics ( application , account , getFirstDayOfMonth ( month ) , getLastDayOfMonth ( month ) , getMarkerDateOfMonth ( month ) ) ; }
Create stats in DB for the specified application and account for the month .
142,245
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...
Return the last day of month at 23h59 .
142,246
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 ( startDateAs...
Return the list of all potential marker date between two dates .
142,247
public EventHandlerStatus dispatchEvent ( HttpServletRequest httpRequest ) { ApiContext apiContext = new MozuApiContext ( httpRequest ) ; Event event = null ; try { String body = IOUtils . toString ( httpRequest . getInputStream ( ) ) ; logger . debug ( "Event body: " + body ) ; event = mapper . readValue ( body , Even...
Takes the event notification message parses it and dispatches the event to the registered handler for the event category and type .
142,248
protected void invokeHandler ( Event event , ApiContext apiContext ) throws ClassNotFoundException , NoSuchMethodException , SecurityException , IllegalAccessException , IllegalArgumentException , InvocationTargetException , InstantiationException { String topic [ ] = event . getTopic ( ) . split ( "\\." ) ; String eve...
Dispatch the event to the handler registered for the category . The method corresponding to the event type is invoked .
142,249
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 ) ) { continue ; } if ( filter ( target , p...
Find the supremum or least upper bound .
142,250
public final boolean containsAll ( final Collection < ? extends E > collection ) { for ( E element : collection ) { if ( ! this . contains ( element ) ) { return false ; } } return true ; }
Test if the lattice contains all elements of the given collection .
142,251
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 : generator . getEdges ( Direction . BOTH ) )...
Add a new element dynamically to the lattice .
142,252
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 ) ...
Get Resource Url for UpdateOrderAttributes
142,253
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 ...
Get Resource Url for Update
142,254
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 ) ; }
Get Resource Url for Delete
142,255
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 ) ; format...
Get Resource Url for GetPropertyTypes
142,256
public static MozuUrl getPropertyTypeUrl ( String propertyTypeName , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/content/propertytypes/{propertyTypeName}?responseFields={responseFields}" ) ; formatter . formatUrl ( "propertyTypeName" , propertyTypeName ) ; formatter . formatUrl ( "respon...
Get Resource Url for GetPropertyType
142,257
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...
Get Resource Url for DeletePropertyType
142,258
public static MozuUrl storeCredentialsUrl ( ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/extensions/credentialStore/" ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for StoreCredentials
142,259
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?startInde...
Get Resource Url for GetQuoteItemsByQuoteName
142,260
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...
Get Resource Url for AddItemToQuote
142,261
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 ( "quoteIt...
Get Resource Url for UpdateQuoteItem
142,262
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 ....
Get Resource Url for DeleteQuoteItem
142,263
void signRequest ( final RSAPublicKey rsaPublicKey , final byte [ ] data ) throws IOException { final String keyType = Rsa . RSA_LABEL ; final byte [ ] publicExponent = rsaPublicKey . getPublicExponent ( ) . toByteArray ( ) ; final byte [ ] modulus = rsaPublicKey . getModulus ( ) . toByteArray ( ) ; final int publicKey...
Send a SSH2_AGENTC_SIGN_REQUEST message to ssh - agent .
142,264
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" , che...
Get Resource Url for SplitItem
142,265
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 ( ...
Get Resource Url for UpdateItemDestination
142,266
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 . g...
Get Resource Url for DeleteCheckoutItem
142,267
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}" ) ; format...
Get Resource Url for GetViewEntityContainer
142,268
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={pageS...
Get Resource Url for GetViewEntityContainers
142,269
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" , entityList...
Get Resource Url for GetEntityListView
142,270
public static MozuUrl getEntityListViewsUrl ( String entityListFullName , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/entitylists/{entityListFullName}/views?responseFields={responseFields}" ) ; formatter . formatUrl ( "entityListFullName" , entityListFullName ) ; formatter . for...
Get Resource Url for GetEntityListViews
142,271
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" , vie...
Get Resource Url for DeleteEntityListView
142,272
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 ) ; for...
Get Resource Url for GetWishlistItem
142,273
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}/...
Get Resource Url for GetWishlistItemsByWishlistName
142,274
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 ( ...
Get Resource Url for UpdateWishlistItemQuantity
142,275
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 ) ; }
Get Resource Url for RemoveAllWishlistItems
142,276
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 ) ; re...
Get Resource Url for DeleteWishlistItem
142,277
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 ...
Get Resource Url for GetCredit
142,278
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 ...
Get Resource Url for ResendCreditCreatedEmail
142,279
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 = new Propert...
Starts jFunk .
142,280
public Element findElementById ( final Element element ) { Attribute a = element . getAttribute ( idAttributeName ) ; if ( a == null ) { return null ; } return findElementById ( a . getValue ( ) ) ; }
Searches the attribute id in the given element first and using this element searches for the element with the attribute id and the value of this element .
142,281
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 ) ; ...
Searches first in the cache for the given id . If it is found the element saved there will be returned . If it is not found the search - starting at the RootElement - will continue until the first element in the tree hierarchy is found which 1 . has the attribute id and 2 . whose id attribute has the value of the param...
142,282
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 ( ) . ...
Searches the ElementBaum starting with the given element for the ChildElement with the respective attribute value
142,283
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 ; }
Searches for the Child with the given name ignoring namespaces
142,284
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 ne...
Get Resource Url for GetVisit
142,285
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 throwabl...
Executes the specified Groovy script .
142,286
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 ( "Exit...
Exits the scope context for the current thread . Call this method after a thread is done in order to avoid memory leaks and to enable the thread to enter a new scope context again .
142,287
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...
Get Resource Url for GetLocationsInUsageType
142,288
public static MozuUrl getDirectShipLocationUrl ( Boolean includeAttributeDefinition , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/storefront/locationUsageTypes/DS/location?includeAttributeDefinition={includeAttributeDefinition}&responseFields={responseFields}" ) ; formatter . fo...
Get Resource Url for GetDirectShipLocation
142,289
public static MozuUrl getInStorePickupLocationUrl ( Boolean includeAttributeDefinition , String locationCode , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/storefront/locationUsageTypes/SP/locations/{locationCode}?includeAttributeDefinition={includeAttributeDefinition}&responseFi...
Get Resource Url for GetInStorePickupLocation
142,290
public static MozuUrl getProductReservationUrl ( Integer productReservationId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/productreservations/{productReservationId}?responseFields={responseFields}" ) ; formatter . formatUrl ( "productReservationId" , productReser...
Get Resource Url for GetProductReservation
142,291
public static MozuUrl commitReservationsUrl ( ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/productreservations/commit" ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for CommitReservations
142,292
public static MozuUrl updateProductReservationsUrl ( Boolean skipInventoryCheck ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/productreservations/?skipInventoryCheck={skipInventoryCheck}" ) ; formatter . formatUrl ( "skipInventoryCheck" , skipInventoryCheck ) ; return new MozuUrl ( format...
Get Resource Url for UpdateProductReservations
142,293
public static MozuUrl deleteProductReservationUrl ( Integer productReservationId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/productreservations/{productReservationId}" ) ; formatter . formatUrl ( "productReservationId" , productReservationId ) ; return new MozuUrl ( formatter . getReso...
Get Resource Url for DeleteProductReservation
142,294
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 ( for...
Get Resource Url for GetSegment
142,295
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 ) ; }
Get Resource Url for AddSegmentAccounts
142,296
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 . getRes...
Get Resource Url for RemoveSegmentAccount
142,297
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...
Get Resource Url for GetAvailablePaymentActions
142,298
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 . formatUr...
Get Resource Url for PerformPaymentAction
142,299
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 . Ur...
Get Resource Url for GetMultiRates