12-20-2010 04:55 AM
12-20-2010 05:27 AM
Predicate itemsToCheckOut = new Predicate(new Reference[] { node.getReference() }, null, null);
CheckoutResult checkOutResult = getAuthoringService().checkout(itemsToCheckOut, null);
Reference workingCopyReference = checkOutResult.getWorkingCopies()[0];
ContentFormat format = new ContentFormat(mimeType, "UTF-8");
getContentService().write(workingCopyReference, Constants.PROP_CONTENT, contentInBytes, format);
Predicate predicate = new Predicate(new Reference[] { workingCopyReference }, null, null);
CheckinResult result = getAuthoringService().checkin(predicate, properties, false);
CMLCreate create = new CMLCreate("1", parent, null, Constants.ASSOC_CONTAINS, null, documentTypeQName, properties);
CML cml = new CML();
CMLAddAspect[] aspectArray = new CMLAddAspect[] {new CMLAddAspect(Constants.ASPECT_VERSIONABLE, new NamedValue[] { new NamedValue(PropertyNames.PROP_AUTO_VERSION_ON_UPDATE_PROPS, false, "true", null) }, null, "1");};
cml.setAddAspect(aspectArray);
cml.setCreate(new CMLCreate[] { create });
UpdateResult[] results = getRepositoryService().update(cml);
12-21-2010 02:08 AM
CMLAddAspect[] aspectArray = new CMLAddAspect[] {new CMLAddAspect(Constants.ASPECT_VERSIONABLE, new NamedValue[] { new NamedValue(PropertyNames.PROP_AUTO_VERSION_ON_UPDATE_PROPS, false, "true", null) }, null, "1")};
12-21-2010 03:31 AM
12-21-2010 03:54 AM
12-21-2010 04:44 AM
12-21-2010 05:11 AM
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.