As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
ClassificationServiceSoapBindingStub classification = WebServiceFactory .getClassificationService(); int contenutoCounter=count-1; com.enterprise.resource.Document alfrescoDocument=(com.enterprise.resource.Document) contenuti.get(contenutoCounter); log.fine("CONTENUTO:"+alfrescoDocument.getName()); Reference reference = new Reference(STORE, alfrescoDocument.getId(), null); Predicate predicate = new Predicate(new Reference[]{reference}, null, null); AppliedCategory appliedCategory = new AppliedCategory(); Reference[] array=new Reference[idCategories.size()]; for (int i=0;i<idCategories.size();i++) { Reference catRef = new Reference(STORE, idCategories.get(i).toString(), null); array[i]=catRef; } appliedCategory.setCategories(array); appliedCategory.setClassification(Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, "generalclassifiable")); AppliedCategory[] appliedCategories = new AppliedCategory[]{appliedCategory}; log.fine("APPLICAZIONE CATEGORIA AL CONTENUTO"); ClassificationServiceSoapBindingStub classificationService = WebServiceFactory.getClassificationService(); if (appliedCategories!=null){ try { CategoriesResult[] result2 = classificationService.setCategories(predicate, appliedCategories); } catch (ClassificationFault e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); }