11-16-2010 01:43 AM
11-16-2010 07:00 AM
CMLCreate create = new CMLCreate("1", null, companyHomeParent.getUuid(), Constants.ASSOC_CONTAINS,
null, Constants.PROP_CONTENT, contentProps);
Hope this helps.
11-16-2010 07:29 AM
11-16-2010 07:35 AM
11-16-2010 07:38 AM
11-16-2010 10:50 AM
public void updateNodeProperties(String uuid, NamedValue[] namedValueArray, Map<String, NamedValue[]> aspectToAddMap, List<String> aspectToRemoveList) throws RepositoryFault, RemoteException {
Reference space = getReference(uuid);
Predicate predicate = new Predicate(new Reference[] { space }, STORE, null);
CMLUpdate update = new CMLUpdate(namedValueArray, predicate, null);
CML cml = new CML();
if (aspectToAddMap != null && aspectToAddMap.size() > 0) {
CMLAddAspect[] aspectArray = new CMLAddAspect[aspectToAddMap.size()];
int i = 0;
for (String aspectName : aspectToAddMap.keySet()) {
aspectArray[i++] = new CMLAddAspect(aspectName, aspectToAddMap.get(aspectName), predicate, null);
}
cml.setAddAspect(aspectArray);
}
if (aspectToRemoveList != null && aspectToRemoveList.size() > 0) {
CMLRemoveAspect[] aspectArray = new CMLRemoveAspect[aspectToRemoveList.size()];
int i = 0;
for (String aspectName : aspectToRemoveList) {
aspectArray[i++] = new CMLRemoveAspect(aspectName, predicate, null);
}
cml.setRemoveAspect(aspectArray);
}
cml.setUpdate(new CMLUpdate[] { update });
UpdateResult[] results = getRepositoryService().update(cml);
Reference newSpace = results[0].getDestination();
log.info("Space " + newSpace.getPath() + " updated.");
}
11-22-2010 01:48 AM
11-22-2010 04:24 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.