Search in sources :

Example 1 with AuditService

use of org.alfresco.service.cmr.audit.AuditService in project alfresco-remote-api by Alfresco.

the class AuditAppTest method setup.

@Before
public void setup() throws Exception {
    super.setup();
    permissionService = applicationContext.getBean("permissionService", PermissionService.class);
    authorityService = (AuthorityService) applicationContext.getBean("AuthorityService");
    auditService = applicationContext.getBean("AuditService", AuditService.class);
    AuditModelRegistryImpl auditModelRegistry = (AuditModelRegistryImpl) applicationContext.getBean("auditModel.modelRegistry");
    // Register the test model
    URL testModelUrl = ResourceUtils.getURL("classpath:alfresco/audit/alfresco-audit-access.xml");
    auditModelRegistry.registerModel(testModelUrl);
    auditModelRegistry.loadAuditModels();
}
Also used : PermissionService(org.alfresco.service.cmr.security.PermissionService) AuditModelRegistryImpl(org.alfresco.repo.audit.model.AuditModelRegistryImpl) AuditService(org.alfresco.service.cmr.audit.AuditService) URL(java.net.URL) Before(org.junit.Before)

Aggregations

URL (java.net.URL)1 AuditModelRegistryImpl (org.alfresco.repo.audit.model.AuditModelRegistryImpl)1 AuditService (org.alfresco.service.cmr.audit.AuditService)1 PermissionService (org.alfresco.service.cmr.security.PermissionService)1 Before (org.junit.Before)1