Uses of Class
org.alfresco.repo.jscript.ScriptNode
-
Packages that use ScriptNode Package Description org.alfresco.repo.action.script org.alfresco.repo.jscript org.alfresco.repo.rating.script org.alfresco.repo.rendition.script org.alfresco.repo.replication.script org.alfresco.repo.security.authority.script org.alfresco.repo.site.script org.alfresco.repo.tagging.script org.alfresco.repo.thumbnail.script org.alfresco.repo.transfer.script Provides the JavaScript implementation of the transfer service.org.alfresco.repo.virtual org.alfresco.repo.workflow.activiti org.alfresco.repo.workflow.jscript -
-
Uses of ScriptNode in org.alfresco.repo.action.script
Methods in org.alfresco.repo.action.script that return ScriptNode Modifier and Type Method Description ScriptNodeScriptExecutionDetails. getPersistedActionRef() -
Uses of ScriptNode in org.alfresco.repo.jscript
Subclasses of ScriptNode in org.alfresco.repo.jscript Modifier and Type Class Description classCategoryNodeCategory Nodes from the classification helper have special support.Fields in org.alfresco.repo.jscript declared as ScriptNode Modifier and Type Field Description protected ScriptNodeScriptNode. parentMethods in org.alfresco.repo.jscript that return ScriptNode Modifier and Type Method Description ScriptNodeScriptNode. cancelCheckout()Cancel the check-out of a working copy document.ScriptNodeScriptNode. checkin()Check-in a working copy document.ScriptNodeScriptNode. checkin(java.lang.String history)Check-in a working copy document.ScriptNodeScriptNode. checkin(java.lang.String history, boolean majorVersion)Check-in a working copy document.ScriptNodeScriptNode. checkout()Perform a check-out of this document into the current parent space.ScriptNodeScriptNode. checkout(ScriptNode destination)Perform a check-out of this document into the specified destination space.ScriptNodeScriptNode. checkoutForUpload()Performs a check-out of this document for the purposes of an uploadScriptNodeScriptNode. childByNamePath(java.lang.String path)childByNamePath returns the Node at the specified 'cm:name' based Path walking the children of this Node.ScriptNode[]ScriptNode. childrenByTags(java.lang.String tag)Gets all (deep) children of this node that have the tag specified.ScriptNodeScriptNode. copy(ScriptNode destination)Copy this Node to a new parent destination.ScriptNodeScriptNode. copy(ScriptNode destination, boolean deepCopy)Copy this Node and potentially all child nodes to a new parent destination.ScriptNodeScriptNode. createFile(java.lang.String name)Create a new File (cm:content) node as a child of this node.ScriptNodeScriptNode. createFile(java.lang.String name, java.lang.String type)Create a new File (cm:content) node as a child of this node.ScriptNodeScriptNode. createFolder(java.lang.String name)Create a new folder (cm:folder) node as a child of this node.ScriptNodeScriptNode. createFolder(java.lang.String name, java.lang.String type)Create a new folder (cm:folder) node as a child of this node.ScriptNodeScriptNode. createFolderPath(java.lang.String path)Create a path of folder (cm:folder) nodes as a child of this node.ScriptNodePeople. createGroup(java.lang.String groupName)Create a new root level group with the specified unique nameScriptNodePeople. createGroup(ScriptNode parentGroup, java.lang.String groupName)Create a new group with the specified unique nameScriptNodeScriptNode. createNode(java.lang.String name, java.lang.String type)Create a new Node of the specified type as a child of this node.ScriptNodeScriptNode. createNode(java.lang.String name, java.lang.String type, java.lang.Object properties)Create a new Node of the specified type as a child of this node.ScriptNodeScriptNode. createNode(java.lang.String name, java.lang.String type, java.lang.Object properties, java.lang.String assocType)Create a new Node of the specified type as a child of this node.ScriptNodeScriptNode. createNode(java.lang.String name, java.lang.String type, java.lang.Object properties, java.lang.String assocType, java.lang.String assocName)Create a new Node of the specified type as a child of this node.ScriptNodeScriptNode. createNode(java.lang.String name, java.lang.String type, java.lang.String assocType)Create a new Node of the specified type as a child of this node.ScriptNodePeople. createPerson(java.lang.String userName)Create a Person with the given user nameScriptNodePeople. createPerson(java.lang.String userName, java.lang.String firstName, java.lang.String lastName, java.lang.String emailAddress)Create a Person with the given user name, firstName, lastName and emailAddressScriptNodePeople. createPerson(java.lang.String userName, java.lang.String firstName, java.lang.String lastName, java.lang.String emailAddress, java.lang.String password, boolean setAccountEnabled)Create a Person with an optionally generated user name.ScriptNodePeople. createPerson(java.lang.String userName, java.lang.String firstName, java.lang.String lastName, java.lang.String emailAddress, java.lang.String password, boolean setAccountEnabled, boolean notifyByEmail)Create a Person with an optionally generated user nameScriptNodeSearch. findNode(java.lang.String ref)Find a single Node by the Node referenceScriptNodeSearch. findNode(java.lang.String referenceType, java.lang.String[] reference)Helper to convert a Web Script Request URL to a Node Ref 1) Node - {store_type}/{store_id}/{node_id} Resolve to node via its Node Reference.ScriptNodeSearch. findNode(org.alfresco.service.cmr.repository.NodeRef ref)Find a single Node by the Node referenceScriptNode[]CategoryNode. getCategoryMembers()ScriptNodeScriptNode. getCheckedOut()Gets the check-out of a working copy documentScriptNodeChildAssociation. getChild()ScriptNodePeople. getGroup(java.lang.String groupName)Gets the Group given the group nameScriptNodeImap. getImapHomeRef(java.lang.String userName)Searches NodeRef to the IMAP home for specified userScriptNode[]CategoryNode. getImmediateCategoryMembers()ScriptNode[]CategoryNode. getImmediateMembersAndSubCategories()ScriptNode[]CategoryNode. getMembersAndSubCategories()ScriptNodeScriptVersion. getNode()Gets the node represented by this versionScriptNodeScriptUtils. getNodeFromString(java.lang.String nodeRefString)Gets a JS node object from a string noderefScriptNodeChildAssociation. getParent()ScriptNodeScriptNode. getParent()ScriptNodePeople. getPerson(java.lang.String username)Gets the Person given the usernameScriptNodeAssociation. getSource()ScriptNodeAssociation. getTarget()ScriptNodeScriptNode. newInstance(FileInfo nodeInfo, ServiceRegistry services, org.mozilla.javascript.Scriptable scope)ScriptNodeScriptNode. newInstance(org.alfresco.service.cmr.repository.NodeRef nodeRef, ServiceRegistry services, org.mozilla.javascript.Scriptable scope)Factory methodScriptNodeScriptUtils. resolveNodeReference(java.lang.String reference)Use the Node Locator Service to find the a node reference from a number of possible locator types.ScriptNodeScriptNode. revert(java.lang.String history, boolean majorVersion, java.lang.String versionLabel)Revert this Node to the specified version.ScriptNodeScriptNode. revert(java.lang.String history, boolean majorVersion, java.lang.String versionLabel, boolean deep)Revert this Node to the specified version and potentially all child nodes.ScriptNode[]Search. tagSearch(java.lang.String store, java.lang.String tag)Searchs the store for all nodes with the given tag applied.ScriptNodeScriptNode. transformDocument(java.lang.String mimetype)Transform a document to a new document mimetype format.ScriptNodeScriptNode. transformDocument(java.lang.String mimetype, ScriptNode destination)Transform a document to a new document mimetype format.ScriptNodeScriptNode. transformImage(java.lang.String mimetype)Transform an image to a new image format.ScriptNodeScriptNode. transformImage(java.lang.String mimetype, java.lang.String options)Transform an image to a new image format.ScriptNodeScriptNode. transformImage(java.lang.String mimetype, java.lang.String options, ScriptNode destination)Transform an image to a new image mimetype format.ScriptNodeScriptNode. transformImage(java.lang.String mimetype, ScriptNode destination)Transform an image to a new image mimetype format.Methods in org.alfresco.repo.jscript with parameters of type ScriptNode Modifier and Type Method Description voidPeople. addAuthority(ScriptNode parentGroup, ScriptNode authority)Add an authority (a user or group) to a group container as a new childvoidScriptNode. addNode(ScriptNode node)Creates a new secondary association between the current node and the specified child node.ScriptNodeScriptNode. checkout(ScriptNode destination)Perform a check-out of this document into the specified destination space.ScriptNodeScriptNode. copy(ScriptNode destination)Copy this Node to a new parent destination.ScriptNodeScriptNode. copy(ScriptNode destination, boolean deepCopy)Copy this Node and potentially all child nodes to a new parent destination.AssociationScriptNode. createAssociation(ScriptNode target, java.lang.String assocType)Create an association between this node and the specified target node.ScriptNodePeople. createGroup(ScriptNode parentGroup, java.lang.String groupName)Create a new group with the specified unique namevoidPeople. deleteGroup(ScriptNode group)Deletes a group from the system.java.lang.StringScriptUtils. displayPath(ScriptNode node)Function to return the cm:name display path for a node with minimum performance overhead.voidScriptAction. execute(ScriptNode node)Execute action.voidScriptAction. execute(ScriptNode node, boolean readOnly, boolean newTxn)Execute action, optionally starting a new, potentially read-only transaction.voidScriptAction. executeAsynchronously(ScriptNode node)Execute action.protected voidScriptAction. executeAsynchronouslyImpl(ScriptNode node)protected voidScriptAction. executeImpl(ScriptNode node)java.util.Map<java.lang.String,java.lang.Boolean>People. getCapabilities(ScriptNode person)Gets a map of capabilities (boolean assertions) for the given person.org.mozilla.javascript.ScriptablePeople. getContainerGroups(ScriptNode person)Gets the groups that contain the specified authorityjava.lang.StringPresence. getDetails(ScriptNode person)Query current online status of given personjava.lang.StringApplicationScriptUtils. getDownloadAPIUrl(ScriptNode node)org.mozilla.javascript.ScriptablePeople. getMembers(ScriptNode group)Gets the members (people) of a group (including all sub-groups)org.mozilla.javascript.ScriptablePeople. getMembers(ScriptNode group, boolean recurse)Gets the members (people) of a groupbooleanPresence. hasPresence(ScriptNode person)Gets whether the Person has configured Presence parametersbooleanPeople. isAdmin(ScriptNode person)Return true if the specified user is an Administrator authority.booleanPeople. isGuest(ScriptNode person)Return true if the specified user is an guest authority.booleanScriptNode. move(ScriptNode destination)Move this Node to a new parent destination.booleanScriptNode. move(ScriptNode source, ScriptNode destination)Move this Node from specified parent to a new parent destination.java.lang.StringScriptNode. processTemplate(ScriptNode template)Process a FreeMarker Template against the current node.java.lang.StringScriptNode. processTemplate(ScriptNode template, java.lang.Object args)Process a FreeMarker Template against the current node.voidScriptNode. removeAssociation(ScriptNode target, java.lang.String assocType)Remove an association between this node and the specified target node.voidPeople. removeAuthority(ScriptNode parentGroup, ScriptNode authority)Remove an authority (a user or group) from a groupvoidScriptNode. removeNode(ScriptNode node)Remove an existing child node of this node.org.mozilla.javascript.ScriptableSearch. savedSearch(ScriptNode savedSearch)Execute a saved Lucene searchvoidPeople. setQuota(ScriptNode person, java.lang.String quota)Set the content quota in bytes for a person.java.lang.StringApplicationScriptUtils. toJSON(ScriptNode node)Returns the JSON representation of a node.java.lang.StringApplicationScriptUtils. toJSON(ScriptNode node, boolean useShortQNames)Returns the JSON representation of this node.ScriptNodeScriptNode. transformDocument(java.lang.String mimetype, ScriptNode destination)Transform a document to a new document mimetype format.ScriptNodeScriptNode. transformImage(java.lang.String mimetype, java.lang.String options, ScriptNode destination)Transform an image to a new image mimetype format.ScriptNodeScriptNode. transformImage(java.lang.String mimetype, ScriptNode destination)Transform an image to a new image mimetype format.Constructors in org.alfresco.repo.jscript with parameters of type ScriptNode Constructor Description ContentAwareScriptableQNameMap(ScriptNode factory, ServiceRegistry services)Constructor -
Uses of ScriptNode in org.alfresco.repo.rating.script
Methods in org.alfresco.repo.rating.script with parameters of type ScriptNode Modifier and Type Method Description voidScriptRatingService. applyRating(ScriptNode node, float rating, java.lang.String ratingSchemeName)Applies the given rating to the specified node using the specified ratingScheme.floatScriptRatingService. getAverageRating(ScriptNode node, java.lang.String ratingSchemeName)Gets the average (mean) rating by all users on the specified node in the specified scheme.floatScriptRatingService. getRating(ScriptNode node, java.lang.String ratingSchemeName)Gets the rating applied to the specified node in the specified scheme by the currently authenticated user.java.util.DateScriptRatingService. getRatingAppliedAt(ScriptNode node, java.lang.String ratingSchemeName)Gets the rating applied date for the specified node in the specified scheme by the currently authenticated user.intScriptRatingService. getRatingsCount(ScriptNode node, java.lang.String ratingSchemeName)Gets the number of ratings applied to the specified node by all users in the specified scheme.floatScriptRatingService. getTotalRating(ScriptNode node, java.lang.String ratingSchemeName)Gets the total (sum) rating by all users on the specified node in the specified scheme.voidScriptRatingService. removeRating(ScriptNode node, java.lang.String ratingSchemeName)Removes any rating by the current user in the specified scheme from the specified noderef. -
Uses of ScriptNode in org.alfresco.repo.rendition.script
Methods in org.alfresco.repo.rendition.script that return ScriptNode Modifier and Type Method Description ScriptNodeScriptRenditionService. getRenditionByName(ScriptNode node, java.lang.String renditionName)Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.ScriptNode[]ScriptRenditionService. getRenditions(ScriptNode node)Deprecated.This method gets all the renditions of the specified node.ScriptNode[]ScriptRenditionService. getRenditions(ScriptNode node, java.lang.String mimeTypePrefix)Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.ScriptNodeScriptRenditionService. render(ScriptNode sourceNode, java.lang.String renditionDefQName)Deprecated.This method renders the specified source node using the specified saved rendition definition.ScriptNodeScriptRenditionService. render(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef)Deprecated.Methods in org.alfresco.repo.rendition.script with parameters of type ScriptNode Modifier and Type Method Description protected voidScriptRenditionDefinition. executeImpl(ScriptNode node)Deprecated.ScriptNodeScriptRenditionService. getRenditionByName(ScriptNode node, java.lang.String renditionName)Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.ScriptNode[]ScriptRenditionService. getRenditions(ScriptNode node)Deprecated.This method gets all the renditions of the specified node.ScriptNode[]ScriptRenditionService. getRenditions(ScriptNode node, java.lang.String mimeTypePrefix)Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.ScriptNodeScriptRenditionService. render(ScriptNode sourceNode, java.lang.String renditionDefQName)Deprecated.This method renders the specified source node using the specified saved rendition definition.ScriptNodeScriptRenditionService. render(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef)Deprecated. -
Uses of ScriptNode in org.alfresco.repo.replication.script
Methods in org.alfresco.repo.replication.script that return ScriptNode Modifier and Type Method Description ScriptNode[]ScriptReplicationDefinition. getPayload()Methods in org.alfresco.repo.replication.script with parameters of type ScriptNode Modifier and Type Method Description protected voidScriptReplicationDefinition. executeImpl(ScriptNode node)voidScriptReplicationDefinition. setPayload(ScriptNode[] payloadNodes) -
Uses of ScriptNode in org.alfresco.repo.security.authority.script
Methods in org.alfresco.repo.security.authority.script that return ScriptNode Modifier and Type Method Description ScriptNodeScriptGroup. getGroupNode()Return a ScriptNode wrapping the groupScriptNodeScriptUser. getPerson()Return a ScriptNode wrapping the person -
Uses of ScriptNode in org.alfresco.repo.site.script
Methods in org.alfresco.repo.site.script that return ScriptNode Modifier and Type Method Description ScriptNodeSite. aquireContainer(java.lang.String componentId)Gets and if missing, creates a new site container.ScriptNodeSite. aquireContainer(java.lang.String componentId, java.lang.String folderType)Gets and if missing, creates a new site container.ScriptNodeSite. aquireContainer(java.lang.String componentId, java.lang.String folderType, java.lang.Object properties)Gets and if missing, creates a new site container.ScriptNodeSite. createAndSaveContainer(java.lang.String containerId, java.lang.String containerType, java.lang.String description)This method creates a container of the specified id and type, sets the cm:description on that container node to the specified value and saves the container node updates to the repository.ScriptNodeSite. createContainer(java.lang.String componentId)Creates a new site containerScriptNodeSite. createContainer(java.lang.String componentId, java.lang.String folderType)Creates a new site containerScriptNodeSite. createContainer(java.lang.String componentId, java.lang.String folderType, java.lang.Object permissions)Creates a new site containerScriptNodeSite. getContainer(java.lang.String componentId)Gets (or creates) the "container" folder for the specified component idScriptNodeSite. getNode()Get the site node, null if noneMethods in org.alfresco.repo.site.script with parameters of type ScriptNode Modifier and Type Method Description voidScriptSiteService. cleanSitePermissions(ScriptNode targetNode)This method cleans up the permissions on the specified node and all its primary children.voidSite. resetAllPermissions(ScriptNode node)Reset any permissions that have been set on the node.voidSite. setPermissions(ScriptNode node, java.lang.Object permissions)Apply a set of permissions to the node. -
Uses of ScriptNode in org.alfresco.repo.tagging.script
Methods in org.alfresco.repo.tagging.script that return ScriptNode Modifier and Type Method Description ScriptNodeScriptTaggingService. createTag(java.lang.String store, java.lang.String tag)Create a tag in a given storeScriptNodeScriptTaggingService. getTag(java.lang.String store, java.lang.String tag)Get a tag by name if available in a store -
Uses of ScriptNode in org.alfresco.repo.thumbnail.script
Subclasses of ScriptNode in org.alfresco.repo.thumbnail.script Modifier and Type Class Description classScriptThumbnail -
Uses of ScriptNode in org.alfresco.repo.transfer.script
Methods in org.alfresco.repo.transfer.script that return ScriptNode Modifier and Type Method Description ScriptNodeScriptTransferService. remove(java.lang.String targetName, java.lang.Object nodesToRemove)Remove a set of nodes, with no callbackScriptNodeScriptTransferService. transfer(java.lang.String targetName, java.lang.Object nodesToTransfer)Transfer a set of nodes, with no callbackScriptNodeScriptTransferService. transferReadOnly(java.lang.String targetName, java.lang.Object nodesToTransfer)Transfer a set of nodes, with no callback. -
Uses of ScriptNode in org.alfresco.repo.virtual
Methods in org.alfresco.repo.virtual that return ScriptNode Modifier and Type Method Description ScriptNodeAlfrescoScriptVirtualContext. getActualNode() -
Uses of ScriptNode in org.alfresco.repo.workflow.activiti
Subclasses of ScriptNode in org.alfresco.repo.workflow.activiti Modifier and Type Class Description classActivitiScriptNodeScriptable Node suitable for Activti Beanshell access -
Uses of ScriptNode in org.alfresco.repo.workflow.jscript
Methods in org.alfresco.repo.workflow.jscript that return ScriptNode Modifier and Type Method Description ScriptNodeWorkflowManager. createPackage()Create a workflow package (a container of content to route through a workflow)Methods in org.alfresco.repo.workflow.jscript with parameters of type ScriptNode Modifier and Type Method Description JscriptWorkflowPathJscriptWorkflowDefinition. startWorkflow(ScriptNode workflowPackage, java.lang.Object properties)Start workflow instance from workflow definition
-