Merged CMIS063 to HEAD

17102: Add Date svn:keyword
  17103: - mask out cmis-tck-ws build/classes folder, fix JRE dependency in cmis-tck-ws .classpath
  17106: MOB-1330: Upgrade Web Services Repository to 0.7.
  17117: Now moved to Chemistry.
  17120: CMIS Update to v1.0 Committee Draft 04
  17123: Checkin mistake.
  17129: Updated Chemistry AtomPub TCK with appropriate UTF-8 encoding.
  17138: Fix reference to CMIS change list in CMIS Front Page.
  17142: Move all CMIS web scripts into same package.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17259 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2009-10-30 14:40:17 +00:00
parent ba3e8ad9c0
commit 6d65594cb8
5 changed files with 61 additions and 33 deletions

View File

@@ -65,7 +65,7 @@ public class CMISMapping implements InitializingBean
* The Alfresco CMIS Namespace
*/
public static String CMIS_MODEL_NS = "cmis";
public static String CMIS_MODEL_URI = "http://www.alfresco.org/model/cmis/0.62";
public static String CMIS_MODEL_URI = "http://www.alfresco.org/model/cmis/1.0/cd04";
/**
* The Alfresco CMIS Model name.
@@ -225,6 +225,7 @@ public class CMISMapping implements InitializingBean
registerEvaluator(CMISScope.FOLDER, new PermissionActionEvaluator(serviceRegistry, CMISAllowedActionEnum.CAN_DELETE_OBJECT, PermissionService.DELETE_NODE));
registerEvaluator(CMISScope.FOLDER, new PermissionActionEvaluator(serviceRegistry, CMISAllowedActionEnum.CAN_UPDATE_PROPERTIES, PermissionService.WRITE_PROPERTIES));
registerEvaluator(CMISScope.FOLDER, new PermissionActionEvaluator(serviceRegistry, CMISAllowedActionEnum.CAN_GET_FOLDER_TREE, PermissionService.READ_CHILDREN));
registerEvaluator(CMISScope.FOLDER, new PermissionActionEvaluator(serviceRegistry, CMISAllowedActionEnum.CAN_GET_PROPERTIES, PermissionService.READ_PROPERTIES));
registerEvaluator(CMISScope.FOLDER, new FixedValueActionEvaluator(serviceRegistry, CMISAllowedActionEnum.CAN_GET_RELATIONSHIPS, true));
registerEvaluator(CMISScope.FOLDER, new FixedValueActionEvaluator(serviceRegistry, CMISAllowedActionEnum.CAN_GET_OBJECT_PARENTS, true));

View File

@@ -114,6 +114,7 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
// CMIS supported version
private String cmisVersion = "[undefined]";
private String cmisSpecTitle = "[undefined]";
// default CMIS store and path
private StoreRef defaultStoreRef;
@@ -135,6 +136,16 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
this.cmisVersion = cmisVersion;
}
/**
* Sets the CMIS specification title
*
* @param cmisTitle
*/
public void setCMISSpecTitle(String cmisSpecTitle)
{
this.cmisSpecTitle = cmisSpecTitle;
}
/**
* Sets the default root store
*
@@ -295,6 +306,15 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
return cmisVersion;
}
/*
* (non-Javadoc)
* @see org.alfresco.cmis.CMISServices#getCMISSpecTitle()
*/
public String getCMISSpecTitle()
{
return cmisSpecTitle;
}
/*
* (non-Javadoc)
* @see org.alfresco.cmis.CMISServices#getDefaultRootPath()