Merged 1.4 to HEAD

svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4252 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4294 .
   svn revert root\common\common.xml
   svn resolved root\projects\repository\config\alfresco\script-services-context.xml


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4634 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-12-18 13:45:11 +00:00
parent 8e0a637886
commit 72bb79696d
48 changed files with 1960 additions and 299 deletions

View File

@@ -30,6 +30,24 @@ import org.alfresco.service.namespace.QNamePattern;
/**
* Interface for public and internal <b>node</b> and <b>store</b> operations.
* <p>
* Amongst other things, this service must enforce the unique name check as mandated
* by the <b>duplicate</b> entity in the model.
* <pre></code>
* <type name="cm:folder">
* ...
* <associations>
* <child-association name="cm:contains">
* ...
* <duplicate>false</duplicate>
* </child-association>
* </associations>
* </type>
* </code></pre>
* When duplicates are not allowed, and the <b>cm:name</b> property of a node changes,
* then the {@link org.alfresco.service.cmr.repository.DuplicateChildNodeNameException}
* exception must be thrown. Client code can catch this exception and deal with it
* appropriately.
*
* @author Derek Hulley
*/

View File

@@ -0,0 +1,22 @@
/**
*
*/
package org.alfresco.service.cmr.repository;
import java.io.Reader;
/**
* Interface encapsulating the location of a script and provding access to it.
*
* @author Roy Wetherall
*
*/
public interface ScriptLocation
{
/**
* Returns a reader to the contents of the script
*
* @return the reader
*/
Reader getReader();
}

View File

@@ -70,6 +70,20 @@ public interface ScriptService
public Object executeScript(NodeRef scriptRef, QName contentProp, Map<String, Object> model)
throws ScriptException;
/**
* Process a script against the supplied data model.
*
* @param scriptLocation object representing the script location
* @param model Object model to process script against
*
* @return output of the script (may be null or any other valid wrapped JavaScript object)
*
* @throws ScriptException
*/
@Auditable(parameters = {"scriptLocation", "model"})
public Object executeScript(ScriptLocation scriptLocation, Map<String, Object> model)
throws ScriptException;
/**
* Process a script against the supplied data model.
*

View File

@@ -7,5 +7,18 @@ package org.alfresco.service.cmr.search;
*/
public enum LimitBy
{
UNLIMITED, FINAL_SIZE; // NUMBER_OF_PERMISSION_EVALUATIONS
/**
* The final number of search results is not important.
*/
UNLIMITED,
/**
* Limit the total number of search results returned after pruning by permissions.
*/
FINAL_SIZE,
/**
* Limit the number of results that will be passed through for permission checks.<br/>
* Used internally to prevent excessive permission checking
* (see property <b>lucene.query.maxInitialSearchResults</b>).
*/
NUMBER_OF_PERMISSION_EVALUATIONS;
}