Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
ParentReference parentReference = null;
NamedValue[] properties = null;
CMLCreate create = null;
CMLCreate[] arrayCreate = null;
CML cml = null;
try {
// Crear la referencia al padre del espacio a crear
parentReference = new ParentReference(storeRef, null, nodoPadre, Constants.ASSOC_CONTAINS, Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, nodos1[i]));
// Crear el espacio
properties = new NamedValue[]{Utils.createNamedValue(Constants.PROP_NAME, nodos1[i])};
create = new CMLCreate("1", parentReference, null, null, null, Constants.TYPE_FOLDER, properties);
cml = new CML();
arrayCreate = new CMLCreate[]{create};
cml.setCreate(arrayCreate);
WebServiceFactory.getRepositoryService().update(cml);
} catch (RemoteException ex) {
Logger.getLogger(SubirDocServiceSkeleton.class.getName()).log(Level.SEVERE, null, puntoCodigo + "\n" + ex);
creando = false;
return "No se ha podido crear la carpeta…";
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.