getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_PUBLISHERDATA, "Publisher " + oldname + " renamed to " + newname + ".");
getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_PUBLISHERDATA, "Publisher " + oldname + " renamed to " + newname + ".");
    public void renamePublisher(Admin admin, String oldname, String newname) throws PublisherExistsException {        debug(">renamePublisher(from " + oldname + " to " + newname + ")");        boolean success = false;        try {            publisherhome.findByName(newname);        } catch (FinderException e) {            try {                PublisherDataLocal htp = publisherhome.findByName(oldname);                htp.setName(newname);                success = true;            } catch (FinderException g) {            }        }        if (success)            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_PUBLISHERDATA, "Publisher " + oldname + " renamed to " + newname + ".");        else            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_PUBLISHERDATA, " Error renaming publisher  " + oldname + " to " + newname + ".");        if (!success)            throw new PublisherExistsException();        debug("<renamePublisher()");    } // renameHardTokenProfile