02-23-2010 09:01 AM
public String createFolder(String folderPath, final String folderId,final String folderName) throws RemoteException, RepositoryFault {
final ParentReference parentReference = new ParentReference(STORE,null,folderPath,Constants.ASSOC_CONTAINS,getChildName(folderName));
final String newId = (null == folderId) ? "-1" : folderId;
CMLCreate create = new CMLCreate(newId, parentReference, null, null, null, Constants.TYPE_FOLDER, createDefaultProperties(folderName));
//create content manipulation language
CML cml = new CML();
//set content to create
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] result;
try {
WebServiceFactory.getRepositoryService().update(cml);
} catch (RepositoryFault e) {
e.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
return folderPath;
}
03-12-2010 06:15 AM
04-01-2010 08:41 AM
public static final Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
…
Reference ref = new Reference();
ref.setUuid("2e1d57d4-036b-4a4b-8bc0-02670081f45c");
ref.setStore(Properties.STORE);
04-01-2010 08:45 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.