idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
142,400
protected String providePerfLoadVersion ( ) { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; InputStream is = loader . getResourceAsStream ( "com/mgmtp/jfunk/common/version.txt" ) ; try { return IOUtils . toString ( is , "UTF-8" ) ; } catch ( IOException ex ) { throw new IllegalStateExcep...
Provides the version of perfLoad as specified in the Maven pom .
142,401
public static PairwiseAlignment create ( final int threads , final SubstitutionMatrix substitutionMatrix ) { return new ParallelBiojavaPairwiseAlignment ( Executors . newFixedThreadPool ( threads ) , substitutionMatrix ) ; }
Create and return a new pairwise alignment implementation configured with a fixed thread pool and the specified substitution matrix .
142,402
public static MozuUrl getStatesUrl ( String profileCode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/shipping/admin/profiles/{profilecode}/shippingstates" ) ; formatter . formatUrl ( "profileCode" , profileCode ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_PO...
Get Resource Url for GetStates
142,403
public static MozuUrl updateStatesUrl ( String profilecode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/shipping/admin/profiles/{profilecode}/shippingstates" ) ; formatter . formatUrl ( "profilecode" , profilecode ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT...
Get Resource Url for UpdateStates
142,404
public static MozuUrl getPackageLabelUrl ( String packageId , Boolean returnAsBase64Png , String returnId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/returns/{returnId}/packages/{packageId}/label?returnAsBase64Png={returnAsBase64Png}" ) ; formatter . formatUrl ( "packageId" , packageId ) ; formatter ...
Get Resource Url for GetPackageLabel
142,405
public static Iterable < HighScoringPair > read ( final Readable readable ) throws IOException { checkNotNull ( readable ) ; Collect collect = new Collect ( ) ; stream ( readable , collect ) ; return collect . hsps ( ) ; }
Read zero or more high - scoring segment pairs from the specified readable .
142,406
public static void stream ( final Readable readable , final HspListener listener ) throws IOException { checkNotNull ( readable ) ; checkNotNull ( listener ) ; HspLineProcessor lineProcessor = new HspLineProcessor ( listener ) ; CharStreams . readLines ( readable , lineProcessor ) ; }
Stream zero or more high - scoring segment pairs from the specified readable .
142,407
public static MozuUrl getTreeDocumentUrl ( String documentListName , String documentName , Boolean includeInactive , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/content/documentlists/{documentListName}/documentTree/{documentName}?includeInactive={includeInactive}&responseFields={response...
Get Resource Url for GetTreeDocument
142,408
public static MozuUrl updateTreeDocumentContentUrl ( String documentListName , String documentName ) { UrlFormatter formatter = new UrlFormatter ( "/api/content/documentlists/{documentListName}/documentTree/{documentName}/content?folderPath={folderPath}&folderId={folderId}" ) ; formatter . formatUrl ( "documentListName...
Get Resource Url for UpdateTreeDocumentContent
142,409
public void manageAck ( final Acknowledgment acknowledgment ) { final int smid = acknowledgment . getSmsId ( ) ; final SmsStatus smsStatus = acknowledgment . getSmsStatus ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Manage ack with : " + " - smid : " + smid + " - ack status : " + smsStatus ) ; } final S...
Business layer to mange ack .
142,410
private void putPhoneNumberInBlackList ( final String phoneNumber , final Application application ) { if ( daoService . isPhoneNumberInBlackList ( phoneNumber ) ) return ; logger . debug ( "Adding to black list : \n" + " - Phone number : " + phoneNumber + "\n" + " - Application id : " + application . getId ( ) + "\n" )...
Put a number in black list .
142,411
public boolean jsonElementShouldMatch ( String source , String jsonPath , Object value , String method , String data , String contentType ) throws Exception { boolean match = false ; if ( value == null ) { throw new IllegalArgumentException ( "Given value was null" ) ; } String found = String . valueOf ( findJsonElemen...
Checks if the given value matches the one found by the jsonPath from the source .
142,412
public boolean jsonShouldBeEqual ( String from , String to ) throws Exception { return jsonShouldBeEqual ( from , to , false ) ; }
Checks if the given JSON contents are equal . See Json Should Be Equal for more details
142,413
public boolean jsonShouldBeEqual ( String from , String to , boolean useExactMatch , String method , String data , String contentType ) throws Exception { System . out . println ( "*DEBUG* Comparing JSON sources" ) ; boolean equal = false ; String fromJson = requestUtil . readSource ( from , method , data , contentType...
Checks if the given JSON contents are equal . The third parameter specifies whether exact string match should be used or diffing by the JSON objects ie . the order of the attributes does not matter .
142,414
public Object findJsonElement ( String source , String jsonPath , String method , String data , String contentType ) throws Exception { System . out . println ( "*DEBUG* Reading jsonPath: " + jsonPath ) ; String json = requestUtil . readSource ( source , method , data , contentType ) ; Object value ; try { value = Json...
Find JSON element by jsonPath from the source and return its value if found .
142,415
@ SuppressWarnings ( "unchecked" ) public boolean jsonShouldHaveElementCount ( String source , String jsonPath , Integer count , String method , String data , String contentType ) throws Exception { boolean match = false ; System . out . println ( "*DEBUG* Reading jsonPath: " + jsonPath ) ; String json = requestUtil . ...
Find JSON element by jsonPath from the source and check if the amount of found elements matches the given count .
142,416
public static MozuUrl getFileUrl ( String applicationKey , String fileName ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/appdev/filebasedpackage/packages/{applicationKey}?fileName={fileName}" ) ; formatter . formatUrl ( "applicationKey" , applicationKey ) ; formatter . formatUrl ( "fileName" , fileName...
Get Resource Url for GetFile
142,417
public static MozuUrl executeUrl ( String cardType , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/payments/tokens/{cardType}/execute?responseFields={responseFields}" ) ; formatter . formatUrl ( "cardType" , cardType ) ; formatter . formatUrl ( "responseFields" , responseFields ) ...
Get Resource Url for Execute
142,418
public static MozuUrl getPublishSetUrl ( String publishSetCode , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/publishing/publishsets/{publishSetCode}?responseFields={responseFields}" ) ; formatter . formatUrl ( "publishSetCode" , publishSetCode ) ; formatter . forma...
Get Resource Url for GetPublishSet
142,419
public static MozuUrl discardDraftsUrl ( ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/publishing/discarddrafts" ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for DiscardDrafts
142,420
public static MozuUrl publishDraftsUrl ( ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/publishing/publishdrafts" ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for PublishDrafts
142,421
public static MozuUrl getOrderItemViaLineIdUrl ( Boolean draft , Integer lineId , String orderId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items/{lineId}?draft={draft}&responseFields={responseFields}" ) ; formatter . formatUrl ( "draft" , draft ) ; formatter...
Get Resource Url for GetOrderItemViaLineId
142,422
public static MozuUrl createOrderItemUrl ( String orderId , String responseFields , Boolean skipInventoryCheck , String updateMode , String version ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items?updatemode={updateMode}&version={version}&skipInventoryCheck={skipInventoryCheck}&resp...
Get Resource Url for CreateOrderItem
142,423
public static MozuUrl updateOrderItemDiscountUrl ( Integer discountId , String orderId , String orderItemId , String responseFields , String updateMode , String version ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items/{orderItemId}/discounts/{discountId}?updatemode={updateMode}&vers...
Get Resource Url for UpdateOrderItemDiscount
142,424
public static MozuUrl updateItemProductPriceUrl ( String orderId , String orderItemId , Double price , String responseFields , String updateMode , String version ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items/{orderItemId}/price/{price}?updatemode={updateMode}&version={version}&re...
Get Resource Url for UpdateItemProductPrice
142,425
public static MozuUrl updateItemQuantityUrl ( String orderId , String orderItemId , Integer quantity , String responseFields , String updateMode , String version ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items/{orderItemId}/quantity/{quantity}?updatemode={updateMode}&version={versi...
Get Resource Url for UpdateItemQuantity
142,426
public static void write ( final BedRecord record , final PrintWriter writer ) { checkNotNull ( record ) ; checkNotNull ( writer ) ; writer . println ( record . toString ( ) ) ; }
Write the specified BED record with the specified print writer .
142,427
public static void write ( final Iterable < BedRecord > records , final PrintWriter writer ) { checkNotNull ( records ) ; checkNotNull ( writer ) ; for ( BedRecord record : records ) { writer . println ( record . toString ( ) ) ; } }
Write zero or more BED records with the specified print writer .
142,428
public static MozuUrl updateAccountCardUrl ( Integer accountId , String cardId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/customer/accounts/{accountId}/cards/{cardId}?responseFields={responseFields}" ) ; formatter . formatUrl ( "accountId" , accountId ) ; formatter . formatUr...
Get Resource Url for UpdateAccountCard
142,429
public static MozuUrl deleteAccountCardUrl ( Integer accountId , String cardId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/customer/accounts/{accountId}/cards/{cardId}" ) ; formatter . formatUrl ( "accountId" , accountId ) ; formatter . formatUrl ( "cardId" , cardId ) ; return new MozuUrl ( formatter...
Get Resource Url for DeleteAccountCard
142,430
public < T > T get ( final Object key ) { @ SuppressWarnings ( "unchecked" ) T value = ( T ) additionalData . get ( key ) ; return value ; }
Returns the value stored under the specified key in the internal map of additional meta data . For convenience the value is internally cast to the generic type . It is the caller s responsibility to make sure the cast is safe .
142,431
public static MozuUrl getReturnNoteUrl ( String noteId , String responseFields , String returnId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/returns/{returnId}/notes/{noteId}?responseFields={responseFields}" ) ; formatter . formatUrl ( "noteId" , noteId ) ; formatter . formatUrl ( "responseFields" , ...
Get Resource Url for GetReturnNote
142,432
public static MozuUrl deleteReturnNoteUrl ( String noteId , String returnId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/returns/{returnId}/notes/{noteId}" ) ; formatter . formatUrl ( "noteId" , noteId ) ; formatter . formatUrl ( "returnId" , returnId ) ; return new MozuUrl ( formatter . getResourceUr...
Get Resource Url for DeleteReturnNote
142,433
public static MozuUrl getAssignedDiscountsUrl ( String couponSetCode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/couponsets/{couponSetCode}/assigneddiscounts" ) ; formatter . formatUrl ( "couponSetCode" , couponSetCode ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . ...
Get Resource Url for GetAssignedDiscounts
142,434
public static MozuUrl unAssignDiscountUrl ( String couponSetCode , Integer discountId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/couponsets/{couponSetCode}/assigneddiscounts/{discountId}" ) ; formatter . formatUrl ( "couponSetCode" , couponSetCode ) ; formatter . formatUrl ( "discountI...
Get Resource Url for UnAssignDiscount
142,435
public static MozuUrl getDiscountContentUrl ( Integer discountId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/discounts/{discountId}/content?responseFields={responseFields}" ) ; formatter . formatUrl ( "discountId" , discountId ) ; formatter . formatUrl ( "respons...
Get Resource Url for GetDiscountContent
142,436
public static MozuUrl deleteDiscountUrl ( Integer discountId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/discounts/{discountId}" ) ; formatter . formatUrl ( "discountId" , discountId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; }
Get Resource Url for DeleteDiscount
142,437
public long initMathRandom ( final Long seed ) { if ( seed == null ) { mathRandom = new MathRandom ( ) ; } else { mathRandom = new MathRandom ( seed ) ; } return mathRandom . getSeed ( ) ; }
Intializes the MathRandom instance .
142,438
protected String initValuesImpl ( final FieldCase c ) { double d = 0.0 ; String v = source . initValues ( c ) ; if ( v != null && v . length ( ) > 0 ) { d = 0.0 ; try { Number n = format . parse ( v ) ; d = n . doubleValue ( ) ; } catch ( ParseException e ) { log . debug ( "Could not parse string " + v + " to a number;...
Initializes the source constraint first . Then the source constraint s value is parsed with the format object of this constraint to a double number and this value is subsequently multiplied with the configurable factor . The multiplied value is finally formatted to a string using the the format object again and stored ...
142,439
public static MozuUrl getDocumentListTypeUrl ( String documentListTypeFQN , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/content/documentlistTypes/{documentListTypeFQN}?responseFields={responseFields}" ) ; formatter . formatUrl ( "documentListTypeFQN" , documentListTypeFQN ) ; formatter ....
Get Resource Url for GetDocumentListType
142,440
public static void write ( final VcfHeader header , final List < VcfSample > samples , final List < VcfRecord > records , final PrintWriter writer ) { writeHeader ( header , writer ) ; writeColumnHeader ( samples , writer ) ; writeRecords ( samples , records , writer ) ; }
Write VCF with the specified print writer .
142,441
public static void writeHeader ( final VcfHeader header , final PrintWriter writer ) { checkNotNull ( header ) ; checkNotNull ( writer ) ; for ( String meta : header . getMeta ( ) ) { writer . println ( meta ) ; } }
Write VCF header with the specified print writer .
142,442
public static void writeColumnHeader ( final List < VcfSample > samples , final PrintWriter writer ) { checkNotNull ( samples ) ; checkNotNull ( writer ) ; StringBuilder sb = new StringBuilder ( "#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO" ) ; if ( ! samples . isEmpty ( ) ) { sb . append ( "\tFORMAT" ) ; } for ( Vcf...
Write VCF column header with the specified print writer .
142,443
public static void writeRecords ( final List < VcfSample > samples , final List < VcfRecord > records , final PrintWriter writer ) { checkNotNull ( samples ) ; checkNotNull ( records ) ; checkNotNull ( writer ) ; for ( VcfRecord record : records ) { writeRecord ( samples , record , writer ) ; } }
Write VCF records with the specified print writer .
142,444
public static void writeRecord ( final List < VcfSample > samples , final VcfRecord record , final PrintWriter writer ) { checkNotNull ( samples ) ; checkNotNull ( record ) ; checkNotNull ( writer ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( record . getChrom ( ) ) ; sb . append ( "\t" ) ; sb . append (...
Write VCF record with the specified print writer .
142,445
public CharacterSet getInverse ( ) { CharacterSet n = new CharacterSet ( ) ; n . forbiddenCharacters = characters ; n . characters = forbiddenCharacters ; return n ; }
Returns a CharacterSet instance whose allowed and forbidden characters are exactly inverse to this instance .
142,446
public char getCharacter ( final int index ) { if ( index > characters . length ) { throw new IndexOutOfBoundsException ( index + "@" + characters . length + " does not fit" ) ; } return characters [ index ] ; }
Return the character at index position
142,447
public static CharacterSet createCharacterSet ( final String encoding , final String goodExpression , final String badExpression , final String characterSetId ) throws UnsupportedEncodingException { if ( characterSets . get ( ) . containsKey ( characterSetId ) ) { LOG . info ( "CharacterSet with id=" + characterSetId +...
Creates a new CharacterSet . If there is already a CharacterSet with the given ID this will be returned .
142,448
public static MozuUrl getOptionsUrl ( Integer productTypeId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/producttypes/{productTypeId}/Options" ) ; formatter . formatUrl ( "productTypeId" , productTypeId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl...
Get Resource Url for GetOptions
142,449
public static MozuUrl getOptionUrl ( String attributeFQN , Integer productTypeId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/producttypes/{productTypeId}/Options/{attributeFQN}?responseFields={responseFields}" ) ; formatter . formatUrl ( "attr...
Get Resource Url for GetOption
142,450
public static MozuUrl addOptionUrl ( Integer productTypeId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/producttypes/{productTypeId}/Options?responseFields={responseFields}" ) ; formatter . formatUrl ( "productTypeId" , productTypeId ) ; format...
Get Resource Url for AddOption
142,451
public static MozuUrl deleteOptionUrl ( String attributeFQN , Integer productTypeId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/attributedefinition/producttypes/{productTypeId}/Options/{attributeFQN}" ) ; formatter . formatUrl ( "attributeFQN" , attributeFQN ) ; formatter . formatUrl ( ...
Get Resource Url for DeleteOption
142,452
public void addToBlacklists ( final Blacklist blacklist ) { if ( null == getBlacklists ( ) ) { setBlacklists ( new java . util . TreeSet < Blacklist > ( ) ) ; } getBlacklists ( ) . add ( blacklist ) ; }
add a blacklist item to the collection of blacklist associated to the application .
142,453
public String get ( final Object key , final boolean process ) { String value = propsMap . get ( key ) ; if ( process ) { value = processPropertyValue ( value ) ; } return value == null && defaults != null ? defaults . get ( key ) : value ; }
Looks up a property . Recursively checks the defaults if necessary . If the property is found as a system property this value will be used .
142,454
public String put ( final String key , final String value ) { return propsMap . put ( key , value ) ; }
Sets the property with the specified key .
142,455
public Set < Entry < String , String > > entrySet ( ) { if ( entrySet == null ) { entrySet = new EntrySet ( ) ; } return entrySet ; }
Returns a set of Entries representing property key - value pairs . The returned set is a view to the internal data structures and reflects changes to this instance . Potential defaults are included in the returned set .
142,456
public String remove ( final Object key ) { String result = propsMap . remove ( key ) ; if ( defaults != null ) { String s = defaults . remove ( key ) ; if ( result == null ) { result = s ; } } return result ; }
Removes the property with the specified key . Defaults are considered .
142,457
public void load ( final InputStream is , final String encoding ) throws IOException { load ( new InputStreamReader ( is , encoding ) ) ; }
Loads properties from the specified stream . The caller of this method is responsible for closing the stream .
142,458
public void store ( final OutputStream os , final String comments , final boolean sorted , final boolean process ) throws IOException { store ( new OutputStreamWriter ( os ) , comments , sorted , process ) ; }
Writes the properties to the specified stream using the default encoding including defaults .
142,459
public void store ( final Writer writer , final String comments , final boolean sorted , final boolean process ) throws IOException { BufferedWriter bw = writer instanceof BufferedWriter ? ( BufferedWriter ) writer : new BufferedWriter ( writer ) ; if ( comments != null ) { for ( Scanner scanner = new Scanner ( comment...
Writes the properties to the specified writer including defaults .
142,460
public static MozuUrl getExtraValueLocalizedDeltaPriceUrl ( String attributeFQN , String currencyCode , String productCode , String responseFields , String value ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/products/{productCode}/Extras/{attributeFQN}/Values/{value}/localizedDeltaPrice/{...
Get Resource Url for GetExtraValueLocalizedDeltaPrice
142,461
public static MozuUrl getExtraUrl ( String attributeFQN , String productCode , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/products/{productCode}/Extras/{attributeFQN}?responseFields={responseFields}" ) ; formatter . formatUrl ( "attributeFQN" , attributeFQN ) ; fo...
Get Resource Url for GetExtra
142,462
public static MozuUrl getCouponSetsUrl ( String filter , Boolean includeCounts , Integer pageSize , String responseFields , String sortBy , Integer startIndex ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/couponsets/?startIndex={startIndex}&pageSize={pageSize}&sortBy={sortBy}&filter={filt...
Get Resource Url for GetCouponSets
142,463
public static MozuUrl getCouponSetUrl ( String couponSetCode , Boolean includeCounts , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/couponsets/{couponSetCode}?includeCounts={includeCounts}&responseFields={responseFields}" ) ; formatter . formatUrl ( "couponSetCode" ...
Get Resource Url for GetCouponSet
142,464
public static MozuUrl updateCouponSetUrl ( String couponSetCode , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/couponsets/{couponSetCode}?responseFields={responseFields}" ) ; formatter . formatUrl ( "couponSetCode" , couponSetCode ) ; formatter . formatUrl ( "respon...
Get Resource Url for UpdateCouponSet
142,465
public static MozuUrl updateDocumentListUrl ( String documentListName , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/content/documentlists/{documentListName}?responseFields={responseFields}" ) ; formatter . formatUrl ( "documentListName" , documentListName ) ; formatter . formatUrl ( "res...
Get Resource Url for UpdateDocumentList
142,466
public static MozuUrl deleteDocumentListUrl ( String documentListName ) { UrlFormatter formatter = new UrlFormatter ( "/api/content/documentlists/{documentListName}" ) ; formatter . formatUrl ( "documentListName" , documentListName ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT...
Get Resource Url for DeleteDocumentList
142,467
private int s2i ( final byte [ ] bytes ) { int num = 0 ; for ( int i = 0 ; i < 4 ; i ++ ) { num += ( bytes [ i ] & 0xff ) << ( ( 3 - i ) * 8 ) ; } return num ; }
Read four bytes off the provided byte string and return the value as a big endian 32 bit unsigned integer .
142,468
public FormEntry getFormEntry ( final String entryKey ) { FormEntry entry = entries . get ( entryKey ) ; if ( entry == null ) { entry = addFormEntry ( entryKey , null ) ; } return entry ; }
Returns the FormEntry for the given key . If no FormEntry exists yet for the given key then a new one will be generated if generate == true
142,469
private void resetValues ( final Constraint constraintContainer ) { log . info ( "Reset " + key + " form data" ) ; for ( FormEntry e : entries . values ( ) ) { e . resetValue ( ) ; } constraintContainer . resetValues ( ) ; }
Calls the reset - method on all FormEntry - objects and the constraint - container . This resets all FormEntry - values to the standard value if there is one and prepares the generator for a new initialization .
142,470
public static MozuUrl deleteEntityListUrl ( String entityListFullName ) { UrlFormatter formatter = new UrlFormatter ( "/api/platform/entitylists/{entityListFullName}" ) ; formatter . formatUrl ( "entityListFullName" , entityListFullName ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . T...
Get Resource Url for DeleteEntityList
142,471
public static VcfHeader header ( final File file ) throws IOException { checkNotNull ( file ) ; try ( BufferedReader reader = new BufferedReader ( new FileReader ( file ) ) ) { return header ( reader ) ; } }
Read the VCF header from the specified file .
142,472
public static VcfHeader header ( final URL url ) throws IOException { checkNotNull ( url ) ; try ( BufferedReader reader = Resources . asCharSource ( url , Charsets . UTF_8 ) . openBufferedStream ( ) ) { return header ( reader ) ; } }
Read the VCF header from the specified URL .
142,473
public static VcfHeader header ( final InputStream inputStream ) throws IOException { checkNotNull ( inputStream ) ; try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( inputStream ) ) ) { return header ( reader ) ; } }
Read the VCF header from the specified input stream .
142,474
public static Iterable < VcfSample > samples ( final File file ) throws IOException { checkNotNull ( file ) ; try ( BufferedReader reader = new BufferedReader ( new FileReader ( file ) ) ) { return samples ( reader ) ; } }
Read zero or more VCF samples from the specified file .
142,475
public static Iterable < VcfSample > samples ( final URL url ) throws IOException { checkNotNull ( url ) ; try ( BufferedReader reader = Resources . asCharSource ( url , Charsets . UTF_8 ) . openBufferedStream ( ) ) { return samples ( reader ) ; } }
Read zero or more VCF samples from the specified URL .
142,476
public static Iterable < VcfSample > samples ( final InputStream inputStream ) throws IOException { checkNotNull ( inputStream ) ; try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( inputStream ) ) ) { return samples ( reader ) ; } }
Read zero or more VCF samples from the specified input stream .
142,477
public static Iterable < VcfRecord > records ( final File file ) throws IOException { checkNotNull ( file ) ; try ( BufferedReader reader = new BufferedReader ( new FileReader ( file ) ) ) { return records ( reader ) ; } }
Read zero or more VCF records from the specified file .
142,478
public static Iterable < VcfRecord > records ( final URL url ) throws IOException { checkNotNull ( url ) ; try ( BufferedReader reader = Resources . asCharSource ( url , Charsets . UTF_8 ) . openBufferedStream ( ) ) { return records ( reader ) ; } }
Read zero or more VCF records from the specified URL .
142,479
public static Iterable < VcfRecord > records ( final InputStream inputStream ) throws IOException { checkNotNull ( inputStream ) ; try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( inputStream ) ) ) { return records ( reader ) ; } }
Read zero or more VCF records from the specified input stream .
142,480
private void cleanUp ( final DataSet ds ) { Set < String > indexedKeys = Sets . newHashSet ( ) ; for ( String key : ds . getDataView ( ) . keySet ( ) ) { if ( key . contains ( "#" ) ) { indexedKeys . add ( key . substring ( 0 , key . indexOf ( "#" ) ) ) ; } } for ( String indexedKey : indexedKeys ) { ds . removeValue (...
Check DataSet for indexed entries and remove all keys without index if indexed entries with the same name exist .
142,481
public static MozuUrl getChildCategoriesUrl ( Integer categoryId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/categories/{categoryId}/children?responseFields={responseFields}" ) ; formatter . formatUrl ( "categoryId" , categoryId ) ; formatter . formatUrl ( "respo...
Get Resource Url for GetChildCategories
142,482
public static MozuUrl addCategoryUrl ( Boolean incrementSequence , String responseFields , Boolean useProvidedId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/categories/?incrementSequence={incrementSequence}&useProvidedId={useProvidedId}&responseFields={responseFields}" ) ; formatter . f...
Get Resource Url for AddCategory
142,483
public static MozuUrl addProductsToCategoryUrl ( Integer categoryId ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/categories/{categoryId}/add-products" ) ; formatter . formatUrl ( "categoryId" , categoryId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . T...
Get Resource Url for AddProductsToCategory
142,484
public static MozuUrl updateCategoryUrl ( Boolean cascadeVisibility , Integer categoryId , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/categories/{categoryId}?cascadeVisibility={cascadeVisibility}&responseFields={responseFields}" ) ; formatter . formatUrl ( "cascad...
Get Resource Url for UpdateCategory
142,485
public static MozuUrl deleteCategoryByIdUrl ( Boolean cascadeDelete , Integer categoryId , Boolean forceDelete , Boolean reassignToParent ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/categories/{categoryId}/?cascadeDelete={cascadeDelete}&forceDelete={forceDelete}&reassignToParent={reassi...
Get Resource Url for DeleteCategoryById
142,486
public static MozuUrl getDeliveryAttemptSummaryUrl ( Integer processId , String responseFields , String subscriptionId ) { UrlFormatter formatter = new UrlFormatter ( "/api/event/push/subscriptions/{subscriptionId}/deliveryattempts/{id}?responseFields={responseFields}" ) ; formatter . formatUrl ( "processId" , processI...
Get Resource Url for GetDeliveryAttemptSummary
142,487
public static void write ( final Hml data , final Writer writer ) throws IOException { checkNotNull ( data ) ; checkNotNull ( writer ) ; try { JAXBContext context = JAXBContext . newInstance ( Hml . class ) ; Marshaller marshaller = context . createMarshaller ( ) ; SchemaFactory schemaFactory = SchemaFactory . newInsta...
Write the specified HML to the specified writer .
142,488
public static void write ( final Hml data , final File file ) throws IOException { checkNotNull ( data ) ; checkNotNull ( file ) ; try ( BufferedWriter writer = new BufferedWriter ( new FileWriter ( file ) ) ) { write ( data , writer ) ; } }
Write the specified HML to the specified file .
142,489
public static void write ( final Hml data , final OutputStream outputStream ) throws IOException { checkNotNull ( data ) ; checkNotNull ( outputStream ) ; try ( BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( outputStream ) ) ) { write ( data , writer ) ; } }
Write the specified HML to the specified output stream .
142,490
public static MozuUrl getCurrencyExchangeRateUrl ( String currencyCode , String responseFields , String toCurrencyCode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}?responseFields={responseFields}" ) ; formatter . formatUrl ( "currenc...
Get Resource Url for GetCurrencyExchangeRate
142,491
public static MozuUrl updateCurrencyLocalizationUrl ( String currencyCode , String responseFields ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/currency/{currencyCode}?responseFields={responseFields}" ) ; formatter . formatUrl ( "currencyCode" , currencyCode ) ; formatter . formatUrl ( "r...
Get Resource Url for UpdateCurrencyLocalization
142,492
public static MozuUrl deleteCurrencyLocalizationUrl ( String currencyCode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/currency/{currencyCode}" ) ; formatter . formatUrl ( "currencyCode" , currencyCode ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENA...
Get Resource Url for DeleteCurrencyLocalization
142,493
public static MozuUrl deleteCurrencyExchangeRateUrl ( String currencyCode , String toCurrencyCode ) { UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}" ) ; formatter . formatUrl ( "currencyCode" , currencyCode ) ; formatter . formatUrl ( "to...
Get Resource Url for DeleteCurrencyExchangeRate
142,494
public MailAccount reserveMailAccount ( final String accountReservationKey , final String pool ) { if ( pool == null && emailAddressPools . keySet ( ) . size ( ) > 1 ) { throw new IllegalStateException ( "No pool specified but multiple pools available." ) ; } String poolKey = pool == null ? defaultPool : pool ; List < ...
Reserves an available mail account from the specified pool under the specified reservation key . The method blocks until an account is available .
142,495
public MailAccount lookupUsedMailAccountForCurrentThread ( final String accountReservationKey ) { lock . lock ( ) ; try { Map < MailAccount , ThreadReservationKeyWrapper > usedAccountsForThread = filterValues ( usedAccounts , new CurrentThreadWrapperPredicate ( ) ) ; if ( ! usedAccountsForThread . isEmpty ( ) ) { for (...
Looks up the mail account that is reserved for the current thread under the specified key .
142,496
public Set < MailAccount > getReservedMailAccountsForCurrentThread ( ) { lock . lock ( ) ; try { Map < MailAccount , ThreadReservationKeyWrapper > accountsForThread = filterValues ( usedAccounts , new CurrentThreadWrapperPredicate ( ) ) ; return ImmutableSet . copyOf ( accountsForThread . keySet ( ) ) ; } finally { loc...
Gets the set of reserved mail accounts for the current thread .
142,497
public Set < String > getRegisteredAccountReservationKeysForCurrentThread ( ) { lock . lock ( ) ; try { Map < MailAccount , String > accountsForThread = transformValues ( filterValues ( usedAccounts , new CurrentThreadWrapperPredicate ( ) ) , new Function < ThreadReservationKeyWrapper , String > ( ) { public String app...
Gets the set of reservation key under which accounts are reserved for the current thread .
142,498
public void releaseAllMailAccountsForThread ( ) { log . info ( "Releasing all mail accounts for the current thread..." ) ; lock . lock ( ) ; try { for ( Iterator < Entry < MailAccount , ThreadReservationKeyWrapper > > it = usedAccounts . entrySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { ThreadReservationKeyWrapper w...
Releases all reserved mail accounts for the current thread so they can be reused by other threads . Threads blocking on an attempt to reserved an account are notified .
142,499
public void releaseMailAccountForThread ( final MailAccount account ) { log . info ( "Releasing mail account for the current thread: {}" , account ) ; lock . lock ( ) ; try { ThreadReservationKeyWrapper wrapper = usedAccounts . get ( account ) ; if ( wrapper != null ) { if ( wrapper . thread == Thread . currentThread (...
Releases the specified mail account for the current thread so it can be reused by another threads . Threads blocking on an attempt to reserved an account are notified .