Examples of TblMleJpaController


Examples of com.intel.mtwilson.as.controller.TblMleJpaController

  @Override
  public HashMap<String, ? extends IManifest> getBiosGoodKnownManifest(
      String mleName, String mleVersion, String oemName) {
    // Call query method to avoid the objects from the cache
    TblMle biosMle = new TblMleJpaController(getEntityManagerFactory())
        .findBiosMle(mleName, mleVersion, oemName);
    HashMap<String, ? extends IManifest> pcrManifestMap = getPcrManifestMap(biosMle);
    return pcrManifestMap;
  }
View Full Code Here

Examples of com.intel.mtwilson.as.controller.TblMleJpaController

  @Override
  public HashMap<String, ? extends IManifest> getVmmGoodKnownManifest(
      String mleName, String mleVersion, String osName, String osVersion, Integer hostId) {
    HashMap<String, ? extends IManifest> pcrManifestMap;
    // Call query method to avoid the objects from the cache
    TblMle vmmMle = new TblMleJpaController(getEntityManagerFactory())
        .findVmmMle(mleName, mleVersion, osName, osVersion);

      pcrManifestMap = getPcrManifestMap(vmmMle);

    return pcrManifestMap;
View Full Code Here

Examples of com.intel.mtwilson.as.controller.TblMleJpaController

        Logger log = LoggerFactory.getLogger(getClass().getName());
  TblMleJpaController mleJpaController = null;
  TblPcrManifestJpaController pcrManifestJpaController = null;

  public MleBO() {
                                mleJpaController = new TblMleJpaController(getEntityManagerFactory());
                                pcrManifestJpaController = new TblPcrManifestJpaController(getEntityManagerFactory());
  }
View Full Code Here

Examples of com.intel.mtwilson.as.controller.TblMleJpaController

 
    private String getPcrList(TblHosts tblHosts) {
       
        // Get the Bios MLE without accessing cache
       
        TblMle biosMle = new TblMleJpaController(getEntityManagerFactory()).findMleById(tblHosts.getBiosMleId().getId());
       
        String biosPcrList = biosMle.getRequiredManifestList();

        if (biosPcrList.isEmpty()) {
            throw new ASException(ErrorCode.AS_MISSING_MLE_REQD_MANIFEST_LIST, tblHosts.getBiosMleId().getName(), tblHosts.getBiosMleId().getVersion());
        }

        // Get the Vmm MLE without accessing cache
        TblMle vmmMle = new TblMleJpaController(getEntityManagerFactory()).findMleById(tblHosts.getVmmMleId().getId());

        String vmmPcrList = vmmMle.getRequiredManifestList();

        if (vmmPcrList == null || vmmPcrList.isEmpty()) {
            throw new ASException(ErrorCode.AS_MISSING_MLE_REQD_MANIFEST_LIST, tblHosts.getVmmMleId().getName(), tblHosts.getVmmMleId().getVersion());
View Full Code Here

Examples of com.intel.mtwilson.as.controller.TblMleJpaController

        return null;
  }


  private void getBiosAndVMM(TxtHost host) {
    TblMleJpaController mleController = new TblMleJpaController(
        getEntityManagerFactory());
    this.biosMleId = mleController.findBiosMle(host.getBios().getName(),
        host.getBios().getVersion(), host.getBios().getOem());
    if (biosMleId == null) {
                       throw new ASException(ErrorCode.AS_BIOS_INCORRECT, host.getBios().getName(),host.getBios().getVersion(),host.getBios().getOem());
    }
    this.vmmMleId = mleController.findVmmMle(host.getVmm().getName(), host
        .getVmm().getVersion(), host.getVmm().getOsName(), host
        .getVmm().getOsVersion());
    if (vmmMleId == null) {
                       throw new ASException(ErrorCode.AS_VMM_INCORRECT, host.getVmm().getName(),host.getVmm().getVersion(),host.getVmm().getOsName(),host.getVmm().getOsVersion());
    }
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.