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.
CMLAddAspect tagAspect = new CMLAddAspect(Constants.ASPECT_CLASSIFIABLE, new NamedValue[] { new NamedValue(PropertyNames.PROP_CATEGORIES, true, null, new String[] { yourCategoriesArray }) }, null, "1");
CMLAddAspect tag1 = new CMLAddAspect(); tag1.aspect = "tag"; tag1.property = tagproperties; tag1.where_id = "1";
CMLCreate create = new CMLCreate(); create.parent = parentReference; create.id = "1"; create.type = Constants.TYPE_CONTENT; create.property = properties; taggable[0] = tag1;
CMLAddAspect tag1 = new CMLAddAspect(); tag1.aspect = "{http://www.alfresco.org/model/content/1.0}classifiable"; tag1.property = arrayOfOneNamedValueElement; tag1.where_id = "1";