Examples of TblTaLog


Examples of com.intel.mtwilson.as.data.TblTaLog

        Date today = new Date(System.currentTimeMillis());


        PcrManifest pcrManifest = (PcrManifest)manifest;
       
        TblTaLog taLog = new TblTaLog();
        taLog.setHostID(host.getId());
        taLog.setMleId(mle.getId());
        taLog.setManifestName(String.valueOf(pcrManifest.getPcrNumber()));
        taLog.setManifestValue(pcrManifest.getPcrValue());
        taLog.setTrustStatus(pcrManifest.getVerifyStatus());
        taLog.setUpdatedOn(today);

        new TblTaLogJpaController(getEntityManagerFactory()).create(taLog);
       

    }
View Full Code Here

Examples of com.intel.mtwilson.as.data.TblTaLog

    }

    private void logOverallTrustStatus(TblHosts host, String response) {
        Date today = new Date(System.currentTimeMillis());

        TblTaLog taLog = new TblTaLog();
        taLog.setHostID(host.getId());
        taLog.setMleId(0);
        taLog.setTrustStatus(false);
        taLog.setError(response);
        taLog.setManifestName(" ");
        taLog.setManifestValue(" ");
        taLog.setUpdatedOn(today);

        new TblTaLogJpaController(getEntityManagerFactory()).create(taLog);

    }
View Full Code Here

Examples of com.intel.mtwilson.as.data.TblTaLog

     * Adding blank row to ta log table will prevent an invalid trust report
     */
    private void logBlankTrustStatus(TblHosts host) {
        Date today = new Date(System.currentTimeMillis());

        TblTaLog taLog = new TblTaLog();
        taLog.setHostID(host.getId());
        taLog.setMleId(0);
        taLog.setTrustStatus(false);
        taLog.setManifestName("");
        taLog.setManifestValue("");
        taLog.setUpdatedOn(today);

        new TblTaLogJpaController(getEntityManagerFactory()).create(taLog);

    }
View Full Code Here

Examples of com.intel.mtwilson.as.data.TblTaLog

        try {
           
            if(forceVerify != true){
                TblHosts tblHosts = getHostByName(new Hostname(host));
                if(tblHosts != null){
                    TblTaLog tblTaLog = new TblTaLogJpaController(getEntityManagerFactory()).getHostTALogEntryBefore(
                            tblHosts.getId() , getCacheStaleAfter() );
                   
                    if(tblTaLog != null)
                        return getHostTrustObj(tblTaLog);
                }else{
View Full Code Here

Examples of com.intel.mtwilson.as.data.TblTaLog

    public void destroy(Integer id) throws IllegalOrphanException, NonexistentEntityException {
        EntityManager em = getEntityManager();
        try {
            em.getTransaction().begin();
            TblTaLog tblTaLog;
            try {
                tblTaLog = em.getReference(TblTaLog.class, id);
                tblTaLog.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The tblTaLog with id " + id + " no longer exists.", enfe);
            }
            em.remove(tblTaLog);
            em.getTransaction().commit();
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.