@Override public String getDetails(AnnotationStateChangeEvent aEvent) { try { StateChangeDetails details = new StateChangeDetails(); details.setState(Objects.toString(aEvent.getNewState(), null)); details.setPreviousState(Objects.toString(aEvent.getPreviousState(), null)); return JSONUtil.toJsonString(details); } catch (IOException e) { log.error("Unable to log event [{}]", aEvent, e); return "<ERROR>"; } } }
@Override public String getDetails(AnnotationStateChangeEvent aEvent) { try { StateChangeDetails details = new StateChangeDetails(); details.setState(Objects.toString(aEvent.getNewState(), null)); details.setPreviousState(Objects.toString(aEvent.getPreviousState(), null)); return JSONUtil.toJsonString(details); } catch (IOException e) { log.error("Unable to log event [{}]", aEvent, e); return "<ERROR>"; } } }
public AnnotationStateChangeMessage(AnnotationStateChangeEvent aEvent) { projectId = aEvent.getDocument().getProject().getId(); projectName = aEvent.getDocument().getProject().getName(); documentId = aEvent.getDocument().getId(); documentName = aEvent.getDocument().getName(); annotationUser = aEvent.getAnnotationDocument().getUser(); annotationState = AeroRemoteApiController .annotationDocumentStateToString(aEvent.getNewState()); annotationPreviousState = AeroRemoteApiController .annotationDocumentStateToString(aEvent.getPreviousState()); }
public AnnotationStateChangeMessage(AnnotationStateChangeEvent aEvent) { projectId = aEvent.getDocument().getProject().getId(); projectName = aEvent.getDocument().getProject().getName(); documentId = aEvent.getDocument().getId(); documentName = aEvent.getDocument().getName(); annotationUser = aEvent.getAnnotationDocument().getUser(); annotationState = AeroRemoteApiController .annotationDocumentStateToString(aEvent.getNewState()); annotationPreviousState = AeroRemoteApiController .annotationDocumentStateToString(aEvent.getPreviousState()); }