Package org.rhq.enterprise.server.rest.domain

Examples of org.rhq.enterprise.server.rest.domain.EventDefinitionRest


        em.refresh(resourceType);
        Set<EventDefinition> eventDefinitions = resourceType.getEventDefinitions();

        List<EventDefinitionRest> definitionsRest = new ArrayList<EventDefinitionRest>(eventDefinitions.size());
        for (EventDefinition source : eventDefinitions) {
            EventDefinitionRest esr = new EventDefinitionRest();
            esr.setDescription(source.getDescription());
            esr.setId(source.getId());
            esr.setDisplayName(source.getDisplayName());
            esr.setName(source.getName());
            definitionsRest.add(esr);
        }

        Response.ResponseBuilder builder;
        MediaType mediaType = headers.getAcceptableMediaTypes().get(0);
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.rest.domain.EventDefinitionRest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.