11-26-2007 12:49 PM
05-21-2008 08:23 AM
05-21-2008 10:21 AM
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();
}
06-03-2008 07:17 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.