Examples of AuditEvent


Examples of ch.qos.logback.audit.AuditEvent

      }
    }
  }

  public void run() {
    AuditEvent event = null;

    // try {
    while (!closed) {
      // read an event from the wire
      try {
View Full Code Here

Examples of com.cetsoft.caudit.observable.AuditEvent

  public void remove(Audit audit) {
    lock.lock();
    try{
      AuditRemovalListener removalListener = audit.getRemovalListener();
      if(removalListener!=null){
        AuditEvent auditEvent = audit.createEvent();
        removalListener.onRemoval(auditEvent);
      }
      auditMap.remove(audit.getAuditId());
    }finally{
      lock.unlock();
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.AuditEvent

        public int compare(AuditEvent o1, AuditEvent o2) {
          return -o1.getSeverityLevel().compareTo(o2.getSeverityLevel());
        }
      });
      for (int i = 0; i < auditEventList.getEvents().size() && i < 7; i++) {
        AuditEvent ae = auditEventList.getEvents().get(i);
        sb.append(String.format("\n%d. (line %d, criticality: %s): %s Source: %s", i + 1, ae.getLine(), SEVERITY_STRING.get(ae.getSeverityLevel()), ae.getMessage(), getEventSourceLine(ae)));
      }
    }
    if (auditEventList.hasException()) {
      sb.append("\nAn exception has occurred when this artifact was audited. There might be more problems that are not listed here.");
    } else {
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

        checksum.fixChecksums( algorithms );
    }

    protected void triggerAuditEvent( String repositoryId, String filePath, String action )
    {
        AuditEvent auditEvent = new AuditEvent();
        auditEvent.setAction( action );
        auditEvent.setRepositoryId( repositoryId );
        auditEvent.setResource( filePath );
        AuditInformation auditInformation = getAuditInformation();
        auditEvent.setUserId( auditInformation.getUser() == null ? "" : auditInformation.getUser().getUsername() );
        auditEvent.setRemoteIP( auditInformation.getRemoteAddr() );
        for ( AuditListener auditListener : getAuditListeners() )
        {
            auditListener.auditEvent( auditEvent );
        }
    }
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

    // TODO: remove?

    private void triggerAuditEvent( String remoteIP, String repositoryId, String resource, String action,
                                    String principal )
    {
        AuditEvent event = new AuditEvent( repositoryId, principal, resource, action );
        event.setRemoteIP( remoteIP );

        for ( AuditListener listener : auditListeners )
        {
            listener.auditEvent( event );
        }
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

        throws DavException
    {
        String path = logicalResource + "/" + member.getDisplayName();

        ArchivaDavResource resource = checkDavResourceIsArchivaDavResource( member );
        AuditEvent auditEvent = new AuditEvent( locator.getRepositoryId(), resource.principal, path, event );
        auditEvent.setRemoteIP( resource.remoteAddr );

        for ( AuditListener listener : auditListeners )
        {
            listener.auditEvent( auditEvent );
        }
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

        return (ArchivaDavResource) resource;
    }

    private void triggerAuditEvent( String remoteIP, String repositoryId, String resource, String action )
    {
        AuditEvent event = new AuditEvent( repositoryId, principal, resource, action );
        event.setRemoteIP( remoteIP );

        for ( AuditListener listener : auditListeners )
        {
            listener.auditEvent( event );
        }
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

        this.auditListeners.remove( listener );
    }

    protected void triggerAuditEvent( String repositoryId, String resource, String action )
    {
        AuditEvent event = new AuditEvent( repositoryId, getPrincipal(), resource, action );
        event.setRemoteIP( getRemoteAddr() );

        for ( AuditListener listener : auditListeners )
        {
            listener.auditEvent( event );
        }
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

        }
    }

    protected void triggerAuditEvent( String resource, String action )
    {
        AuditEvent event = new AuditEvent( null, getPrincipal(), resource, action );
        event.setRemoteIP( getRemoteAddr() );

        for ( AuditListener listener : auditListeners )
        {
            listener.auditEvent( event );
        }
View Full Code Here

Examples of org.apache.archiva.audit.AuditEvent

        }
    }

    protected void triggerAuditEvent( String action )
    {
        AuditEvent event = new AuditEvent( null, getPrincipal(), null, action );
        event.setRemoteIP( getRemoteAddr() );

        for ( AuditListener listener : auditListeners )
        {
            listener.auditEvent( event );
        }
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.