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 setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
throws RepositoryAdminException;
- void removeInvalidContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
+ void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
throws RepositoryAdminException;
}
fileType.addPattern( pattern );
saveConfiguration( configuration );
+ triggerAuditEvent( "", "", AuditEvent.ADD_PATTERN, auditInformation );
}
public void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
fileType.removePattern( pattern );
saveConfiguration( configuration );
+ triggerAuditEvent( "", "", AuditEvent.REMOVE_PATTERN, auditInformation );
}
public FileType getFileType( String fileTypeId )
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 );
+ }
+ }
+
+ //-------------------------
//
//-------------------------