idx
int64
0
41.2k
question
stringlengths
83
4.15k
target
stringlengths
5
715
18,500
public static MozuUrl addAttributeVocabularyValueUrl ( String attributeFQN , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/attributes/{attributeFQN}/VocabularyValues?responseFields={responseFields}" ) ; formatter . formatUrl ( "attributeFQN" , att...
Get Resource Url for AddAttributeVocabularyValue
18,501
public static MozuUrl updateAttributeVocabularyValueUrl ( String attributeFQN , String responseFields , String value ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/attributes/{attributeFQN}/VocabularyValues/{value}?responseFields={responseFields}" ) ; formatter . format...
Get Resource Url for UpdateAttributeVocabularyValue
18,502
public static MozuUrl deleteAttributeVocabularyValueLocalizedContentUrl ( String attributeFQN , String localeCode , String value ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/attributes/{attributeFQN}/VocabularyValues/{value}/LocalizedContent/{localeCode}" ) ; formatte...
Get Resource Url for DeleteAttributeVocabularyValueLocalizedContent
18,503
public static MozuUrl updateCheckoutAttributeUrl ( String checkoutId , Boolean removeMissing ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/checkouts/{checkoutId}/attributes?removeMissing={removeMissing}" ) ; formatter . formatUrl ( "checkoutId" , checkoutId ) ; formatter . formatUrl ( "removeMissing" ,...
Get Resource Url for UpdateCheckoutAttribute
18,504
public static MozuUrl createDeveloperUserAuthTicketUrl ( Integer developerAccountId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/developer/authtickets/?developerAccountId={developerAccountId}&responseFields={responseFields}" ) ; formatter . formatUrl ( "developerAccountId" , de...
Get Resource Url for CreateDeveloperUserAuthTicket
18,505
@ RequestMapping ( value = "/tenants" , method = RequestMethod . GET ) public String getTenants ( @ RequestParam ( "tenantId" ) Integer tenantId , Locale locale , ModelMap modelMap , Model model ) { AuthenticationProfile authenticationProfile = ( AuthenticationProfile ) modelMap . get ( "tenantAuthorization" ) ; if ( a...
This method is used when the application and user have been authorized
18,506
public static MozuUrl getTenantScopesForUserUrl ( String responseFields , String userId ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/adminuser/accounts/{userId}/tenants?responseFields={responseFields}" ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; formatter . formatUrl ( "userId" ,...
Get Resource Url for GetTenantScopesForUser
18,507
public static MozuUrl getConfigurationUrl ( String carrierId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/shipping/admin/carriers/{carrierId}?responseFields={responseFields}" ) ; formatter . formatUrl ( "carrierId" , carrierId ) ; formatter . formatUrl ( "responseFields" , resp...
Get Resource Url for GetConfiguration
18,508
public static MozuUrl deleteConfigurationUrl ( String carrierId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/shipping/admin/carriers/{carrierId}" ) ; formatter . formatUrl ( "carrierId" , carrierId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for DeleteConfiguration
18,509
public static MozuUrl getPackageUrl ( String applicationKey , Boolean includeChildren , String responseFields , Boolean skipDevAccountCheck ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/appdev/apppackages/{applicationKey}/?includeChildren={includeChildren}&skipDevAccountCheck={skipDevAccountCheck}&resp...
Get Resource Url for GetPackage
18,510
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
18,511
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
18,512
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
18,513
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
18,514
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
18,515
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
18,516
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
18,517
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 .
18,518
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
18,519
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
18,520
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
18,521
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
18,522
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 .
18,523
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 .
18,524
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
18,525
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 .
18,526
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 .
18,527
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 .
18,528
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 .
18,529
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 .
18,530
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 .
18,531
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 .
18,532
public boolean then ( final Interval < C > that ) { checkNotNull ( this . range , that . range ) ; return this . intersect ( that ) . equals ( this ) ; }
Test if an interval implies another .
18,533
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 .
18,534
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 .
18,535
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 .
18,536
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 .
18,537
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 .
18,538
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 .
18,539
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 .
18,540
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 .
18,541
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
18,542
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
18,543
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
18,544
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
18,545
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 .
18,546
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
18,547
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
18,548
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
18,549
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
18,550
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
18,551
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 .
18,552
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 .
18,553
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 .
18,554
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 .
18,555
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 .
18,556
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 .
18,557
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 .
18,558
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 .
18,559
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 .
18,560
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 .
18,561
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 .
18,562
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
18,563
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
18,564
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
18,565
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
18,566
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
18,567
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
18,568
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
18,569
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
18,570
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
18,571
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
18,572
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
18,573
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 .
18,574
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
18,575
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
18,576
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
18,577
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
18,578
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
18,579
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
18,580
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
18,581
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
18,582
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
18,583
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
18,584
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
18,585
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
18,586
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
18,587
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
18,588
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
18,589
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 .
18,590
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 .
18,591
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...
18,592
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
18,593
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
18,594
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
18,595
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 .
18,596
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 .
18,597
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
18,598
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
18,599
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