getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CERTPROFILE, "Renamed certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");
getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CERTPROFILE, "Renamed certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");
    public void renameCertificateProfile(Admin admin, String oldcertificateprofilename, String newcertificateprofilename) throws CertificateProfileExistsException {        if (isCertificateProfileNameFixed(oldcertificateprofilename) || isCertificateProfileNameFixed(newcertificateprofilename)) {            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CERTPROFILE, "Error renaming certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");            throw new CertificateProfileExistsException("Cannot rename fixed profiles.");        }        try {            certprofilehome.findByCertificateProfileName(newcertificateprofilename);            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CERTPROFILE, "Error renaming certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");            throw new CertificateProfileExistsException();        } catch (FinderException e) {            try {                CertificateProfileDataLocal pdl = certprofilehome.findByCertificateProfileName(oldcertificateprofilename);                pdl.setCertificateProfileName(newcertificateprofilename);                getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CERTPROFILE, "Renamed certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");            } catch (FinderException f) {                getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CERTPROFILE, "Error renaming certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");            }        }    } // renameCertificateProfile