06-01-2011 03:30 AM
properties.put(PropertyIds.OBJECT_TYPE_ID, BaseTypeId.CMIS_POLICY.value());
properties.put(PropertyIds.NAME, policyType.getId());
Policy policy = customFolder.createPolicy(properties);
06-01-2011 06:33 AM
06-02-2011 01:19 AM
Document existingBook = (Document)session.getObject(bookTypeDoc);
AlfrescoDocument alfDoc = (AlfrescoDocument)existingBook;
alfDoc.addAspect("P:b:bookPublication");
if(alfDoc.hasAspect("P:b:bookPublication")){
properties.put("b:publishedBy", "Custom CMIS");
alfDoc.updateProperties(properties);
}
AlfrescoDocument alfDoc = (AlfrescoDocument)existingBook;
06-02-2011 01:58 AM
params.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.