As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
properties.put(PropertyIds.OBJECT_TYPE_ID, BaseTypeId.CMIS_POLICY.value()); properties.put(PropertyIds.NAME, policyType.getId()); Policy policy = customFolder.createPolicy(properties);
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;
params.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");