10-02-2009 10:40 AM
CMLCopy copy = new CMLCopy();
copy.setTo(destinationChildReference);
copy.setChildren(true);
copy.setAssociationType(Constants.ASSOC_CONTAINS);
copy.setWhere(new Predicate(new Reference[] { sourceReference }, STORE, null));
CML cml = new CML();
cml.setCopy(new CMLCopy[] { copy });
getRepositoryService().update(cml);10-30-2009 08:13 AM
public boolean checkIfExistOnAlfresco(String yourSpacePath){
try {
AuthenticationUtils.startSession(username, password);
Store store = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
Reference reference = new Reference(STORE, null, yourSpacePath);
WebServiceFactory.getRepositoryService().get(new Predicate(new Reference[]{reference}, STORE, null));
return true;
} catch (Exception exception) {
return false;
} finally {
AuthenticationUtils.endSession();
}
}
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.