Uses of Class
org.alfresco.repo.jscript.ScriptNode
Packages that use ScriptNode
Package
Description
Provides the JavaScript implementation of the transfer service.
-
Uses of ScriptNode in org.alfresco.repo.action.script
Methods in org.alfresco.repo.action.script that return ScriptNode -
Uses of ScriptNode in org.alfresco.repo.jscript
Subclasses of ScriptNode in org.alfresco.repo.jscriptModifier and TypeClassDescriptionclassCategory Nodes from the classification helper have special support.Fields in org.alfresco.repo.jscript declared as ScriptNodeMethods in org.alfresco.repo.jscript that return ScriptNodeModifier and TypeMethodDescriptionScriptNode.cancelCheckout()Cancel the check-out of a working copy document.ScriptNode.checkin()Check-in a working copy document.Check-in a working copy document.Check-in a working copy document.ScriptNode.checkout()Perform a check-out of this document into the current parent space.ScriptNode.checkout(ScriptNode destination) Perform a check-out of this document into the specified destination space.ScriptNode.checkoutForUpload()Performs a check-out of this document for the purposes of an uploadScriptNode.childByNamePath(String path) childByNamePath returns the Node at the specified 'cm:name' based Path walking the children of this Node.ScriptNode.childrenByTags(String tag) Gets all (deep) children of this node that have the tag specified.ScriptNode.copy(ScriptNode destination) Copy this Node to a new parent destination.ScriptNode.copy(ScriptNode destination, boolean deepCopy) Copy this Node and potentially all child nodes to a new parent destination.ScriptNode.createFile(String name) Create a new File (cm:content) node as a child of this node.ScriptNode.createFile(String name, String type) Create a new File (cm:content) node as a child of this node.ScriptNode.createFolder(String name) Create a new folder (cm:folder) node as a child of this node.ScriptNode.createFolder(String name, String type) Create a new folder (cm:folder) node as a child of this node.ScriptNode.createFolderPath(String path) Create a path of folder (cm:folder) nodes as a child of this node.People.createGroup(String groupName) Create a new root level group with the specified unique namePeople.createGroup(ScriptNode parentGroup, String groupName) Create a new group with the specified unique nameScriptNode.createNode(String name, String type) Create a new Node of the specified type as a child of this node.ScriptNode.createNode(String name, String type, Object properties) Create a new Node of the specified type as a child of this node.ScriptNode.createNode(String name, String type, Object properties, String assocType) Create a new Node of the specified type as a child of this node.ScriptNode.createNode(String name, String type, Object properties, String assocType, String assocName) Create a new Node of the specified type as a child of this node.ScriptNode.createNode(String name, String type, String assocType) Create a new Node of the specified type as a child of this node.People.createPerson(String userName) Create a Person with the given user namePeople.createPerson(String userName, String firstName, String lastName, String emailAddress) Create a Person with the given user name, firstName, lastName and emailAddressPeople.createPerson(String userName, String firstName, String lastName, String emailAddress, String password, boolean setAccountEnabled) Create a Person with an optionally generated user name.People.createPerson(String userName, String firstName, String lastName, String emailAddress, String password, boolean setAccountEnabled, boolean notifyByEmail) Create a Person with an optionally generated user nameFind a single Node by the Node referenceHelper 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.Find a single Node by the Node referenceCategoryNode.getCategoryMembers()ScriptNode.getCheckedOut()Gets the check-out of a working copy documentChildAssociation.getChild()Gets the Group given the group nameImap.getImapHomeRef(String userName) Searches NodeRef to the IMAP home for specified userCategoryNode.getImmediateCategoryMembers()CategoryNode.getImmediateMembersAndSubCategories()CategoryNode.getMembersAndSubCategories()ScriptVersion.getNode()Gets the node represented by this versionScriptUtils.getNodeFromString(String nodeRefString) Gets a JS node object from a string noderefChildAssociation.getParent()ScriptNode.getParent()Gets the Person given the usernameAssociation.getSource()Association.getTarget()ScriptNode.newInstance(FileInfo nodeInfo, ServiceRegistry services, org.mozilla.javascript.Scriptable scope) ScriptNode.newInstance(NodeRef nodeRef, ServiceRegistry services, org.mozilla.javascript.Scriptable scope) Factory methodScriptUtils.resolveNodeReference(String reference) Use the Node Locator Service to find the a node reference from a number of possible locator types.Revert this Node to the specified version.Revert this Node to the specified version and potentially all child nodes.Searchs the store for all nodes with the given tag applied.ScriptNode.transformDocument(String mimetype) Transform a document to a new document mimetype format.ScriptNode.transformDocument(String mimetype, ScriptNode destination) Transform a document to a new document mimetype format.ScriptNode.transformImage(String mimetype) Transform an image to a new image format.ScriptNode.transformImage(String mimetype, String options) Transform an image to a new image format.ScriptNode.transformImage(String mimetype, String options, ScriptNode destination) Transform an image to a new image mimetype format.ScriptNode.transformImage(String mimetype, ScriptNode destination) Transform an image to a new image mimetype format.Methods in org.alfresco.repo.jscript with parameters of type ScriptNodeModifier and TypeMethodDescriptionvoidPeople.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.ScriptNode.checkout(ScriptNode destination) Perform a check-out of this document into the specified destination space.ScriptNode.copy(ScriptNode destination) Copy this Node to a new parent destination.ScriptNode.copy(ScriptNode destination, boolean deepCopy) Copy this Node and potentially all child nodes to a new parent destination.ScriptNode.createAssociation(ScriptNode target, String assocType) Create an association between this node and the specified target node.People.createGroup(ScriptNode parentGroup, String groupName) Create a new group with the specified unique namevoidPeople.deleteGroup(ScriptNode group) Deletes a group from the system.ScriptUtils.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) 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 authorityPresence.getDetails(ScriptNode person) Query current online status of given personApplicationScriptUtils.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.ScriptNode.processTemplate(ScriptNode template) Process a FreeMarker Template against the current node.ScriptNode.processTemplate(ScriptNode template, Object args) Process a FreeMarker Template against the current node.voidScriptNode.removeAssociation(ScriptNode target, 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, String quota) Set the content quota in bytes for a person.ApplicationScriptUtils.toJSON(ScriptNode node) Returns the JSON representation of a node.ApplicationScriptUtils.toJSON(ScriptNode node, boolean useShortQNames) Returns the JSON representation of this node.ScriptNode.transformDocument(String mimetype, ScriptNode destination) Transform a document to a new document mimetype format.ScriptNode.transformImage(String mimetype, String options, ScriptNode destination) Transform an image to a new image mimetype format.ScriptNode.transformImage(String mimetype, ScriptNode destination) Transform an image to a new image mimetype format.Constructors in org.alfresco.repo.jscript with parameters of type ScriptNodeModifierConstructorDescriptionContentAwareScriptableQNameMap(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 ScriptNodeModifier and TypeMethodDescriptionvoidScriptRatingService.applyRating(ScriptNode node, float rating, String ratingSchemeName) Applies the given rating to the specified node using the specified ratingScheme.floatScriptRatingService.getAverageRating(ScriptNode node, String ratingSchemeName) Gets the average (mean) rating by all users on the specified node in the specified scheme.floatScriptRatingService.getRating(ScriptNode node, String ratingSchemeName) Gets the rating applied to the specified node in the specified scheme by the currently authenticated user.ScriptRatingService.getRatingAppliedAt(ScriptNode node, String ratingSchemeName) Gets the rating applied date for the specified node in the specified scheme by the currently authenticated user.intScriptRatingService.getRatingsCount(ScriptNode node, String ratingSchemeName) Gets the number of ratings applied to the specified node by all users in the specified scheme.floatScriptRatingService.getTotalRating(ScriptNode node, String ratingSchemeName) Gets the total (sum) rating by all users on the specified node in the specified scheme.voidScriptRatingService.removeRating(ScriptNode node, 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 ScriptNodeModifier and TypeMethodDescriptionScriptRenditionService.getRenditionByName(ScriptNode node, String renditionName) Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.ScriptRenditionService.getRenditions(ScriptNode node) Deprecated.This method gets all the renditions of the specified node.ScriptRenditionService.getRenditions(ScriptNode node, String mimeTypePrefix) Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.ScriptRenditionService.render(ScriptNode sourceNode, String renditionDefQName) Deprecated.This method renders the specified source node using the specified saved rendition definition.ScriptRenditionService.render(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef) Deprecated.Methods in org.alfresco.repo.rendition.script with parameters of type ScriptNodeModifier and TypeMethodDescriptionprotected voidScriptRenditionDefinition.executeImpl(ScriptNode node) Deprecated.ScriptRenditionService.getRenditionByName(ScriptNode node, String renditionName) Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.ScriptRenditionService.getRenditions(ScriptNode node) Deprecated.This method gets all the renditions of the specified node.ScriptRenditionService.getRenditions(ScriptNode node, String mimeTypePrefix) Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.ScriptRenditionService.render(ScriptNode sourceNode, String renditionDefQName) Deprecated.This method renders the specified source node using the specified saved rendition definition.ScriptRenditionService.render(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef) Deprecated. -
Uses of ScriptNode in org.alfresco.repo.replication.script
Methods in org.alfresco.repo.replication.script that return ScriptNodeMethods in org.alfresco.repo.replication.script with parameters of type ScriptNodeModifier and TypeMethodDescriptionprotected 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 ScriptNodeModifier and TypeMethodDescriptionScriptGroup.getGroupNode()Return a ScriptNode wrapping the groupScriptUser.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 ScriptNodeModifier and TypeMethodDescriptionSite.aquireContainer(String componentId) Gets and if missing, creates a new site container.Site.aquireContainer(String componentId, String folderType) Gets and if missing, creates a new site container.Site.aquireContainer(String componentId, String folderType, Object properties) Gets and if missing, creates a new site container.Site.createAndSaveContainer(String containerId, String containerType, 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.Site.createContainer(String componentId) Creates a new site containerSite.createContainer(String componentId, String folderType) Creates a new site containerSite.createContainer(String componentId, String folderType, Object permissions) Creates a new site containerSite.getContainer(String componentId) Gets (or creates) the "container" folder for the specified component idSite.getNode()Get the site node, null if noneMethods in org.alfresco.repo.site.script with parameters of type ScriptNodeModifier and TypeMethodDescriptionvoidScriptSiteService.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, 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 ScriptNodeModifier and TypeMethodDescriptionCreate a tag in a given storeGet 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 -
Uses of ScriptNode in org.alfresco.repo.transfer.script
Methods in org.alfresco.repo.transfer.script that return ScriptNodeModifier and TypeMethodDescriptionRemove a set of nodes, with no callbackTransfer a set of nodes, with no callbackScriptTransferService.transferReadOnly(String targetName, 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 -
Uses of ScriptNode in org.alfresco.repo.workflow.activiti
Subclasses of ScriptNode in org.alfresco.repo.workflow.activitiModifier and TypeClassDescriptionclassScriptable Node suitable for Activti Beanshell access -
Uses of ScriptNode in org.alfresco.repo.workflow.jscript
Methods in org.alfresco.repo.workflow.jscript that return ScriptNodeModifier and TypeMethodDescriptionWorkflowManager.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 ScriptNodeModifier and TypeMethodDescriptionJscriptWorkflowDefinition.startWorkflow(ScriptNode workflowPackage, Object properties) Start workflow instance from workflow definition