/** * Get the copies of a given node * * @param originalNodeRef the original node reference * @param pagingRequest page request details * @return the page(s) of nodes that were copied from the given node */ @Auditable(parameters = {"originalNodeRef"}) public PagingResults<CopyInfo> getCopies(NodeRef originalNodeRef, PagingRequest pagingRequest);
@Override public ContentService getContentService() { return serviceRegistry.getContentService(); }
@Override public PermissionService getPermissionService() { return serviceRegistry.getPermissionService(); } }
/** * New script group * @param fullName String * @param serviceRegistry ServiceRegistry * @param scope Scriptable */ public ScriptGroup(String fullName, ServiceRegistry serviceRegistry, Scriptable scope) { this(fullName, null, serviceRegistry, serviceRegistry.getAuthorityService(), scope); }
/** * @return A {@link List} of all available {@link RenderingEngineDefinition} * s. */ @NotAuditable List<RenderingEngineDefinition> getRenderingEngineDefinitions();
@Override public ScriptService getScriptService() { return serviceRegistry.getScriptService(); }
/** * Indicates whether rules are currently enabled for the current thread or not * * @see #enableRules * @see #disableRules * * @return true if rules are enabled for the current thread, false otherwise */ @Auditable public boolean isEnabled();
/** * Creates a new {@link RenditionDefinition} and sets the rendition name and * the rendering engine name to the specified values. * * @param renditionName A unique identifier used to specify the created * {@link RenditionDefinition}. * @param renderingEngineName The name of the rendering engine associated * with this {@link RenditionDefinition}. * @return the created {@link RenditionDefinition}. */ @NotAuditable RenditionDefinition createRenditionDefinition(QName renditionName, String renderingEngineName);
/** * Get all the rules associated with an actionable node, including those * inherited from parents. * <p> * An exception is raised if the actionable aspect is not present on the * passed node. * * @param nodeRef the node reference * @return a list of the rules associated with the node */ @Auditable(parameters = {"nodeRef"}) public List<Rule> getRules(NodeRef nodeRef);
/** * This method gets all the renditions of the specified node. * * @return a list of ChildAssociationRefs which link the source node to the * renditions. */ @NotAuditable List<ChildAssociationRef> getRenditions(NodeRef node);
/** * Get the rule given its node reference * * @param nodeRef the node reference * @return the rule corresponding to the node reference */ @Auditable(parameters = {"nodeRef"}) public Rule getRule(NodeRef nodeRef);
/** * Turns on scheduling for the specified replication. You can * then set the scheduling details on the definition. */ @NotAuditable void enableScheduling(ReplicationDefinition replicationDefinition);
/** * Saves the details of the rule to the specified node reference. * <p> * If the rule is already associated with the node, the details are updated * with those specified. * * @param nodeRef NodeRef * @param rule Rule */ @Auditable(parameters = {"nodeRef", "rule"}) public void saveRule(NodeRef nodeRef, Rule rule);
/** * Returns the owning node reference for a rule. * * @param rule the rule * @return the owning node reference */ @Auditable(parameters = {"rule"}) public NodeRef getOwningNodeRef(Rule rule);
/** * Returns the owning node reference for an action. Returns null for an unsaved action or one that is not * parented by a rule. * * NOTE: this method is temporary and will be removed in future versions. It should only be used with good reason. * * @param action the action * @return the owning node reference */ @Auditable(parameters = {"action"}) public NodeRef getOwningNodeRef(Action action);
/** * Get a list of the all the rule nodes that link to the passed rule node. * Returns an empty list if none link. * * @param nodeRef node reference of a rule node * @return list of rule nodes that link to this passed rule node, empty if none */ @Auditable(parameters = {"nodeRef"}) public List<NodeRef> getLinkedFromRuleNodes(NodeRef nodeRef); }
/** * Gets all (including previous) Workflow Definitions for the given unique name * * @param workflowName workflow name e.g. activiti$activitiReview * @return the deployed workflow definition (or null if not found) */ @Auditable(parameters = {"workflowName"}) public List<WorkflowDefinition> getAllDefinitionsByName(String workflowName);
/** * Gets a graphical view of the Workflow Definition * * @param workflowDefinitionId the workflow definition id * @return graphical image of workflow definition */ @Auditable(parameters = {"workflowDefinitionId"}) public byte[] getDefinitionImage(String workflowDefinitionId);
/** * Gets a writer to a temporary location. The longevity of the stored * temporary content is determined by the system. * * @return Returns a writer onto a temporary location */ @Auditable public ContentWriter getTempWriter();
/** * @deprecated use {@link #getTransformers(String, String, long, String, TransformationOptions)}. * @since 3.5 */ @Auditable(parameters = {"sourceMimetype", "sourceSize", "targetMimetype", "options"}) public List<ContentTransformer> getActiveTransformers(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options);