• isEmpty(value) alias isNullOrEmpty(value) returns true if value is empty or null

  • orEmpty(value) : returns value or empty if null

  • propValue(node, propName) alias getProp(node, propName) returns node property value or empty

  • mlPropValue(node, propName, locale) alias getMLProp(node, propName, locale) returns node multilingual property value or empty for locale

  • mlPropConstraint(propValue, propName, locale) alias getMLConstraint(propValue, propName, locale) display value or empty for multilingual constraint value

  • assocValue(node, assocName) returns assoc nodeRef array

  • assocValues(node, assocName) assoc nodeRef arrays

  • assocPropValues(node, assocName, propName) alias getAssoc(product, assocName, propName?) returns association property array of values

  • assocPropValue(node, assocName, propName) returns association property value

  • assocAssocValues(node, assocName, assocAssocName) returns association association nodeRef array

  • assocAssocValue(node, assocName, assocAssocName) returns association association nodeRef

  • copyAssocPropValue(node, assocName, propName, nodePropName) Copy association property value to node property

  • copyAssocAssocValue(node, assocName, assocAssocName, nodeAssocName) Copy association association value to node association

  • updateAssoc(node, assocName, values) param values can be nodeRef, nodeRef array, scriptNode, scriptNode array

    Example :

 var geo = new Array();
geo.push(search.findNode("workspace://SpacesStore/f61f7026-3457-4468-aa49-28136dce3443"));
geo.push(search.findNode("workspace://SpacesStore/3074da0c-81e8-4f31-923b-05937da09e0a"));
geo.push(search.findNode("workspace://SpacesStore/20a32eb1-3bfa-43df-ac4e-9c640d4de927"));

updateAssoc(product, "bcpg:productGeoOrigin", geo)
  • setValue(node, propName, value) Set property value checking if property changed returns if property has changed

  • setExtraValue(entity, propName, value) Set property value on repositoryEntity

  • updateMLText(node, propQName, locale, value) Update multilingual value

  • i18n(key, params?) returns i18n message for current locale

  • cleanName(value) alias removeForbiddenChar(value) returns valid cm:name value

  • concatName(name, value, separator?) param separator default is " " returns concatenated value of name + separator + value

  • classifyByHierarchy(productNode, folderNode, propHierarchy?) classify node by hierarchy

  • classifyByPropAndHierarchy(productNode, folderNode, propHierarchy?, propPathName?, locale?) classify node by prop and hierarchy

  • isInSite(productNode, siteId) returns true if node is in siteId

  • isInUserFolder(productNode) returns true if node is in user folder

  • getDocumentLibraryNodeRef(siteId) returns document library folder for site

  • createBranch(node, dest, autoMerge?) Create new branch of entity

  • mergeBranch( node, branchToNode, description, type) branchToNode can be null if autoMerge

  • moveAndRename(node,dest) Move node and rename if same name exists in destination

  • generateEAN13Code(prefix) returns generate EAN13 code with autonum corresponding to prefix

  • setPermissionAsSystem(node, permission, authority) Set permissions as system

  • allowWrite(node, authority) Set write permissions as system bypassing rights

  • allowRead(node, authority) Set read permissions as system bypassing rights

  • deleteGroupPermission(node, group) Remove specific group permissions

  • clearPermissions(node, inherit) Remove permissions set on node

  • copyList( sourceNode, destNode , listQname) Copy one list from sourceNode to destNode

  • listExist( node, listQname) returns true if list exists and non empty

  • listItems( node, listQname) returns list items

  • toISO8601(dateObject, options) convert date toISO8601

results matching ""

    No results matching ""