Skip to content

Commit

Permalink
AbstractRestController: removed import of ModelRestService constant
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed May 21, 2020
1 parent dc74de3 commit 1687f48
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -14,7 +14,6 @@
import com.evolveum.midpoint.audit.api.AuditEventStage;
import com.evolveum.midpoint.audit.api.AuditEventType;
import com.evolveum.midpoint.audit.api.AuditService;
import com.evolveum.midpoint.model.impl.ModelRestService;
import com.evolveum.midpoint.model.impl.security.SecurityHelper;
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.schema.constants.SchemaConstants;
Expand All @@ -36,6 +35,7 @@
class AbstractRestController {

protected final Trace logger = TraceManager.getTrace(getClass());

private final String opNamePrefix = getClass().getName() + ".";

@Autowired protected AuditService auditService;
Expand All @@ -44,7 +44,7 @@ class AbstractRestController {

protected Task initRequest() {
// No need to audit login. it was already audited during authentication
Task task = taskManager.createTaskInstance(ModelRestService.OPERATION_REST_SERVICE);
Task task = taskManager.createTaskInstance(opNamePrefix + "restService");
task.setChannel(SchemaConstants.CHANNEL_REST_URI);
return task;
}
Expand Down

0 comments on commit 1687f48

Please sign in to comment.