Package org.ejbca.core.model.log

Examples of org.ejbca.core.model.log.ILogDevice


    @Override
    public Collection<String> getAvailableQueryLogDevices() {
      final ArrayList<String> ret = new ArrayList<String>();
      final Iterator<ILogDevice> i = logdevices.iterator();
      while (i.hasNext()) {
        final ILogDevice logDevice = i.next();
        if (logDevice.isSupportingQueries()) {
            ret.add( logDevice.getDeviceName() );
        }
      }
      Collections.reverse(ret);
      return ret;
    }
View Full Code Here


     */
    private void doLog(final Admin admin, final int caid, final int module, final Date time, final String username, final Certificate certificate, final int event, final String comment, final Exception ex) {
      final LogConfiguration config = logConfigurationSession.loadLogConfiguration(caid);
      final Iterator<ILogDevice> i = logdevices.iterator();
      while (i.hasNext()) {
        final ILogDevice dev = i.next();
        try {
            if (!dev.getAllowConfigurableEvents() || config.logEvent(event)) {
              dev.log(admin, caid, module, time, username, certificate, event, comment, ex);
            }
        } catch (Throwable e) { // NOPMD, we really want to catch every possible error from the log device
              LOG.error(INTRES.getLocalizedMessage("log.error.logdropped",admin.getAdminType()+" "+admin.getAdminData()+" "
                  +caid+" "+" "+module+" "+" "+time+" "+username+" "+(certificate==null?"null":CertTools.getSerialNumberAsString(certificate)+" "
                     +CertTools.getIssuerDN(certificate))+" "+event+" "+comment+" "+ex));
View Full Code Here

        LOG.trace(">query()");
      }
      Collection<LogEntry> result = null;
      final Iterator<ILogDevice> i = logdevices.iterator();
        while (i.hasNext()) {
          final ILogDevice dev = i.next();
            if (dev.getDeviceName().equalsIgnoreCase(deviceName)) {
                result = dev.query(query, viewlogprivileges, capriviledges, maxResults);
                break;
            }
        }
    return result;
    }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.log.ILogDevice

Copyright © 2018 www.massapicom. 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.