API Versioning and the Script API
The following are the Script API calls that are affected by API Versioning. API Versioning allows a single method to have different behavior depending on the compatibility mode in affect for the active code version directory. You specify the active directory and compatibility mode in the Business Manager.
API Versioned Methods
dw.crypto.Cipher.decrypt(base64Msg : String, key : String, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.decrypt(base64Msg : String, key : String, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.decrypt(base64Msg : String, privateKey : KeyRef, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.decrypt(base64Msg : String, privateKey : KeyRef, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.decryptBytes(encryptedBytes : Bytes, key : String, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.decryptBytes(encryptedBytes : Bytes, key : String, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.decryptBytes(encryptedBytes : Bytes, privateKey : KeyRef, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.decryptBytes(encryptedBytes : Bytes, privateKey : KeyRef, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.encrypt(message : String, key : String, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.encrypt(message : String, key : String, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.encrypt(message : String, publicKey : CertificateRef, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.encrypt(message : String, publicKey : CertificateRef, transformation : String, salt : String, iterations : Number) : String
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.encryptBytes(messageBytes : Bytes, key : String, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.encryptBytes(messageBytes : Bytes, key : String, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 16.2. Does not use a default initialization vector.
dw.crypto.Cipher.encryptBytes(messageBytes : Bytes, publicKey : CertificateRef, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 15.5. Requires Base64-encryption for the salt parameter.
dw.crypto.Cipher.encryptBytes(messageBytes : Bytes, publicKey : CertificateRef, transformation : String, salt : String, iterations : Number) : Bytes
API Versioned from version 16.2. Does not use a default initialization vector.
TopLevel.global.parseInt(s : String) : Number
API Versioned from version 16.1. ECMAScript 5 compliance: removed support for octal numbers.
dw.template.ISML.renderTemplate(template : String) : void
API Versioned from version 17.7. Keeps template arguments in a local pipeline dictionary scope. This avoids side-effects on other templates.
dw.template.ISML.renderTemplate(template : String, templateArgs : Object) : void
API Versioned from version 17.7. Keeps template arguments in a local pipeline dictionary scope. This avoids side-effects on other templates.
dw.util.Map.values() : Collection
API Versioned from version 16.1. Returns a view on the values of this map like keySet() and entrySet() do. Former version returned a shallow copy of this.
dw.system.Pipeline.execute(pipeline : String) : PipelineDictionary
API Versioned from version 15.5. New convenience method for easier migration of pipeline-based systems to JavaScript controllers.
dw.system.Pipeline.execute(pipeline : String, args : Object) : PipelineDictionary
API Versioned from version 15.5. New convenience method for easier migration of pipeline-based systems to JavaScript controllers.
dw.catalog.Product.setOnlineFlag(online : boolean) : void
API Versioned from version 10.6. In prior versions this method set the online status flag global, instead of site specific.
dw.catalog.Product.setSearchableFlag(searchable : boolean) : void
API Versioned from version 10.6. In prior versions this method set the searchable flag global, instead of site specific.
dw.catalog.Product.setSearchPlacement(placement : Number) : void
API Versioned from version 10.6. In prior versions this method set the search placement classification global, instead of site specific.
dw.catalog.Product.setSearchRank(rank : Number) : void
API Versioned from version 10.6. In prior versions this method set the search rank global, instead of site specific.
dw.catalog.ProductAttributeModel.getDisplayValue(definition : ObjectAttributeDefinition) : Object
API Versioned from version 10.6. In prior versions this method returned a String with the image path or a String with the HTML source
dw.catalog.ProductAttributeModel.getValue(definition : ObjectAttributeDefinition) : Object
API Versioned from version 10.6. In prior versions this method returned a String with the image path or a String with the HTML source.
dw.util.StringUtils.formatNumber(number : Number, format : String) : String
API Versioned from version 18.10. In prior versions this method did fall back to Java formatting rules, instead of using the definitions in regional settings.
dw.util.StringUtils.formatNumber(number : Number, format : String, locale : String) : String
API Versioned from version 18.10. In prior versions this method did fall back to Java formatting rules, instead of using the definitions in regional settings.