List of usage examples for javax.xml.registry LifeCycleManager createClassification
public Classification createClassification(Concept concept) throws JAXRException, InvalidRequestException;
From source file:it.cnr.icar.eric.client.ui.swing.BusinessQueryPanel.java
/** * Process a ConceptsTreeDialog.PROPERTY_SELECTED_CONCEPTS change event. *//*w w w . j ava 2 s. c o m*/ private void processSelectedConceptsChange(PropertyChangeEvent ev) { try { Connection connection = RegistryBrowser.client.getConnection(); RegistryService service = connection.getRegistryService(); LifeCycleManager lcm = service.getBusinessLifeCycleManager(); ArrayList<?> selectedConcepts = (ArrayList<?>) ev.getNewValue(); ArrayList<Classification> classifications = new ArrayList<Classification>(); Iterator<?> iter = selectedConcepts.iterator(); while (iter.hasNext()) { Concept concept = (Concept) iter.next(); Classification classification = lcm.createClassification(concept); classifications.add(classification); } ((ClassificationsListModel) (classificationsList.getModel())).setModels(classifications); } catch (JAXRException e) { RegistryBrowser.displayError(e); } }