getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_ADMINISTRATORPREFERENCECHANGED,"Trying to add preference for administrator that already exists.");
getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_ADMINISTRATORPREFERENCECHANGED,"Trying to add preference for administrator that already exists.");
    public boolean addAdminPreference(Admin admin, String certificatefingerprint, AdminPreference adminpreference){        debug(">addAdminPreference(fingerprint : " + certificatefingerprint + ")");        boolean ret = false;        try {            AdminPreferencesDataLocal apdata= adminpreferenceshome.create(certificatefingerprint, adminpreference);            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_ADMINISTRATORPREFERENCECHANGED,"Administrator preference with id "+apdata.getId()+" added");            ret = true;        }        catch (Exception e) {          ret = false;          getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_ADMINISTRATORPREFERENCECHANGED,"Trying to add preference for administrator that already exists.");        }        debug("<addAdminPreference()");        return ret;    } // addAdminPreference