Examples of ASComponentFactory


Examples of com.intel.mtwilson.as.helper.ASComponentFactory

     */
    @GET
    @Produces({MediaType.APPLICATION_JSON})
    @Path("/location")
    public HostLocation getLocation(@QueryParam("hostName")String hostName) {
            return new ASComponentFactory().getHostTrustBO().getHostLocation(new Hostname(hostName)); // datatype.Hostname           
    }
View Full Code Here

Examples of com.intel.mtwilson.as.helper.ASComponentFactory

    @POST
    @Produces({MediaType.APPLICATION_JSON})
    @Path("/location")
    public String addLocation(HostLocation hlObj) {
        Boolean result = new ASComponentFactory().getHostTrustBO().addHostLocation(hlObj);
        return Boolean.toString(result);
    }
View Full Code Here

Examples of com.intel.mtwilson.as.helper.ASComponentFactory

    @Path("/trust")
    public HostTrustResponse get(@QueryParam("hostName")String hostName) {
        try {
            // 0.5.1 returned MediaType.TEXT_PLAIN string like "BIOS:0,VMM:0" :  return new HostTrustBO().getTrustStatusString(new Hostname(hostName)); // datatype.Hostname           
            Hostname hostname = new Hostname(hostName);
            HostTrustStatus trust = new ASComponentFactory().getHostTrustBO().getTrustStatus(hostname);
            return new HostTrustResponse(hostname, trust);
        }
        catch(ASException e) {
            throw e;
        }catch(Exception e) {
View Full Code Here

Examples of com.intel.mtwilson.as.helper.ASComponentFactory

    @Consumes({MediaType.APPLICATION_JSON})
    @Produces({MediaType.APPLICATION_JSON})
    public OpenStackHostTrustLevelReport pollMultipleHosts(OpenStackHostTrustLevelQuery input) {
        try {
            log.info("PCR Mask {}", input.pcrMask);
            return new ASComponentFactory().getHostTrustBO().getPollHosts(input);
        }
        catch(ASException e) {
            throw e;
        }
        catch(Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.