02-12-2009 11:54 AM
if(data.getCategories() != null){
try {
Reference reference = new Reference(STORE, null, documentPath);
Predicate predicate = new Predicate(new Reference[]{reference}, STORE, null);
ArrayList<Reference> categoryList = new ArrayList<Reference>();
AppliedCategory appliedCategory = new AppliedCategory();
String category = ROOT_CATEGORY+data.getCategories()[0];
Reference catRef = new Reference(STORE, null,category);
categoryList.add(catRef);
appliedCategory.setCategories(categoryList.toArray(new Reference[0]));
appliedCategory.setClassification(ATTRIBUTE_CLASSIFICATION);
AppliedCategory[] appliedCategories = new AppliedCategory[]{appliedCategory};
categoryService.setCategories(predicate, appliedCategories);
}catch (Exception ex){
ex.printStackTrace();
}
}
02-13-2009 04:11 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.