Merged DEV/CMIS0_61 to HEAD (part 2)

14002 Removed use of Headers as arguments in CMIS AtomPub binding
  - as removed in CMIS 0.6 spec
  - removed associated tests
  - fixed encoding issue in web script test harness logging
  - removed very old .XSDs that were lying around
 14006 Obsolete.
 14022 Suport for multi-valued properties in CMIS AtomPub binding
  - support in all read, write and query methods
  - added multi-valued tests to CMISCustomTypeTest
  - fix workaround for null property values in CMIS freemarker template
  - update to Abdera CMIS Extension to handle multi-valued properties

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14175 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2009-05-01 20:40:35 +00:00
parent 488f3c2e80
commit 9379d6e414
34 changed files with 1474 additions and 3583 deletions

View File

@@ -57,6 +57,41 @@ import org.alfresco.service.namespace.QName;
*/
public class CMISScript extends BaseScopableProcessorExtension
{
//
// Argument Names
//
public static final String ARG_CHILD_TYPES = "childTypes";
public static final String ARG_CONTINUE_ON_FAILURE = "continueOnFailure";
public static final String ARG_CHECKIN = "checkin";
public static final String ARG_CHECKIN_COMMENT = "checkinComment";
public static final String ARG_DEPTH = "depth";
public static final String ARG_DIRECTION = "direction";
public static final String ARG_FILTER = "filter";
public static final String ARG_FOLDER_BY_PATH = "folderByPath";
public static final String ARG_FOLDER_ID = "folderId";
public static final String ARG_INCLUDE_ALLOWABLE_ACTIONS = "includeAllowableActions";
public static final String ARG_INCLUDE_PROPERTY_DEFINITIONS = "includePropertyDefinitions";
public static final String ARG_INCLUDE_RELATIONSHIPS = "includeRelationships";
public static final String ARG_INCLUDE_SUB_RELATIONSHIP_TYPES = "includeSubrelationshipTypes";
public static final String ARG_LENGTH = "length";
public static final String ARG_MAJOR = "major";
public static final String ARG_MAJOR_VERSION = "majorVersion";
public static final String ARG_MAX_ITEMS = "maxItems";
public static final String ARG_OFFSET = "offset";
public static final String ARG_REMOVE_FROM = "removeFrom";
public static final String ARG_RELATIONSHIP_TYPE = "relationshipType";
public static final String ARG_REPOSITORY_ID = "repositoryId";
public static final String ARG_RETURN_TO_ROOT = "returnToRoot";
public static final String ARG_RETURN_VERSION = "returnVersion";
public static final String ARG_SKIP_COUNT = "skipCount";
public static final String ARG_THIS_VERSION = "thisVersion";
public static final String ARG_TYPE_ID = "typeId";
public static final String ARG_TYPES = "types";
public static final String ARG_UNFILE_MULTIFILE_DOCUMENTS = "unfileMultiFiledDocuments";
public static final String ARG_VERSIONING_STATE = "versioningState";
// service dependencies
private ServiceRegistry services;
private Repository repository;
private CMISServices cmisService;
@@ -155,34 +190,6 @@ public class CMISScript extends BaseScopableProcessorExtension
return new ScriptNode(cmisService.getDefaultRootNodeRef(), services, getScope());
}
/**
* Finds the arg value from the specified url argument and header
*
* NOTE: Url argument takes precedence over header
*
* @param argVal url arg value
* @param headerVal header value
* @return value (or null)
*/
public String findArg(String argVal, String headerVal)
{
return (argVal == null) ? headerVal : argVal;
}
/**
* Finds the arg value from the specified url argument and header
*
* NOTE: Url argument takes precedence over header
*
* @param argVal url arg value
* @param headerVal header value
* @return value (or null)
*/
public String[] findArgM(String[] argVal, String[] headerVal)
{
return (argVal == null) ? headerVal : argVal;
}
/**
* Gets the default Types filter
*