use of org.alfresco.service.cmr.audit.AuditService.AuditApplication in project alfresco-remote-api by Alfresco.
the class AuditImpl method getAuditApp.
@Override
public AuditApp getAuditApp(String auditAppId, Parameters parameters) {
checkEnabled();
AuditService.AuditApplication auditApplication = findAuditAppByIdOr404(auditAppId);
return new AuditApp(auditApplication.getKey().substring(1), auditApplication.getName(), auditApplication.isEnabled());
}
use of org.alfresco.service.cmr.audit.AuditService.AuditApplication in project alfresco-remote-api by Alfresco.
the class AuditImpl method findAuditAppById.
private AuditService.AuditApplication findAuditAppById(String auditAppId) {
AuditService.AuditApplication auditApp = null;
Map<String, AuditService.AuditApplication> auditApplicationsByName = auditService.getAuditApplications();
if (auditApplicationsByName != null) {
for (AuditService.AuditApplication auditApplication : auditApplicationsByName.values()) {
if (auditApplication.getKey().equals("/" + auditAppId)) {
auditApp = auditApplication;
}
}
}
return auditApp;
}
Aggregations