mirror of https://github.com/apache/archiva.git
trigger audit event for file pattern actions
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1167035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a7ab73755
commit
ff43de7a65
|
@ -63,13 +63,20 @@ public interface ArchivaAdministration
|
|||
void addKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException;
|
||||
|
||||
void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException;
|
||||
|
||||
|
||||
void removeKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException;
|
||||
|
||||
void addInvalidContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
|
||||
void addInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException;
|
||||
|
||||
void removeInvalidContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
|
||||
void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException;
|
||||
|
||||
void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException;
|
||||
|
||||
}
|
||||
|
|
|
@ -109,6 +109,7 @@ public class DefaultArchivaAdministration
|
|||
fileType.addPattern( pattern );
|
||||
|
||||
saveConfiguration( configuration );
|
||||
triggerAuditEvent( "", "", AuditEvent.ADD_PATTERN, auditInformation );
|
||||
}
|
||||
|
||||
public void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
|
||||
|
@ -124,6 +125,7 @@ public class DefaultArchivaAdministration
|
|||
fileType.removePattern( pattern );
|
||||
|
||||
saveConfiguration( configuration );
|
||||
triggerAuditEvent( "", "", AuditEvent.REMOVE_PATTERN, auditInformation );
|
||||
}
|
||||
|
||||
public FileType getFileType( String fileTypeId )
|
||||
|
@ -200,7 +202,33 @@ public class DefaultArchivaAdministration
|
|||
triggerAuditEvent( "", "", AuditEvent.DISABLE_REPO_CONSUMER, auditInformation );
|
||||
}
|
||||
|
||||
//-------------------------
|
||||
public void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException
|
||||
{
|
||||
if ( knownContentConsumers == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
for ( String knowContentConsumer : knownContentConsumers )
|
||||
{
|
||||
addKnownContentConsumer( knowContentConsumer, auditInformation );
|
||||
}
|
||||
}
|
||||
|
||||
public void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
|
||||
throws RepositoryAdminException
|
||||
{
|
||||
if ( invalidContentConsumers == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
for ( String invalidContentConsumer : invalidContentConsumers )
|
||||
{
|
||||
addKnownContentConsumer( invalidContentConsumer, auditInformation );
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------
|
||||
//
|
||||
//-------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue