List of usage examples for com.google.gwt.json.client JSONNumber JSONNumber
public JSONNumber(double value)
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.AssessmentsPlayerPresenter.java
License:Open Source License
public void triggerItemFlagDataLogEvent(Long startTime, String itemType, String flagText, ArrayList<String> contentReportList, String itemGooruOid, String collectionItemId) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(GwtUUIDGenerator.uuid())); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.ITEM_FLAG)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); PlayerDataLogEvents.printLogs("triggerItemFlagDataLogEvent", sessionId, "Generating newly for flag"); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(startTime - startTime)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getItemFlagDataLogPayLoadObject(itemType, flagText, contentReportList)); String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String classpageEventId = AppClientFactory.getPlaceManager().getClasspageEventId(); String path = ""; if (!StringUtil.isEmpty(classpageId)) { path = classpageId + "/" + collectionDo.getGooruOid(); if (getPlaceManager().getRequestParameter("rid") != null) { path = path + "/" + itemGooruOid; }//from w ww. ja v a 2 s . c o m if (classpageEventId == null || classpageEventId.equals("")) { classpageEventId = AppClientFactory.getPlaceManager().getRequestParameter("eventid"); } } else if (AppClientFactory.getPlaceManager().getRequestParameter("lid") != null) { classpageEventId = AppClientFactory.getPlaceManager().getLibaryEventId(); if (classpageEventId == null || classpageEventId.equals("")) { classpageEventId = AppClientFactory.getPlaceManager().getRequestParameter("eventid"); } String libraryId = AppClientFactory.getPlaceManager().getRequestParameter("lid"); classpageId = libraryId; path = classpageId + "/" + collectionDo.getGooruOid(); if (getPlaceManager().getRequestParameter("rid") != null) { path = path + "/" + itemGooruOid; } } else { classpageId = AppClientFactory.getPlaceManager().getShelfParentGooruOid(); path = AppClientFactory.getPlaceManager().getFolderIds() + collectionDo.getGooruOid(); if (getPlaceManager().getRequestParameter("rid") != null) { path = path + "/" + itemGooruOid; } } String playerMode = getPlayerMode(); String parentEventId = itemType.equals(PlayerDataLogEvents.COLLECTION) ? classpageEventId : collectionNewDataLogEventId != null ? collectionNewDataLogEventId : ""; String parentGooruId = itemType.equals(PlayerDataLogEvents.COLLECTION) ? classpageId : collectionDo.getGooruOid(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObjectForItemLoad(itemGooruOid, collectionItemId, parentEventId, parentGooruId, "", playerMode, path, null, PlayerDataLogEvents.COLLECTION_FLAG_URL)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.AssessmentsPreviewPlayerPresenter.java
License:Open Source License
public void triggerCollectionNewDataLogStartStopEvent(Long collectionStartTime, Long collectionEndTime, String eventType, Integer score) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(collectionNewDataLogEventId)); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.COLLECTION_PLAY)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(collectionStartTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(collectionEndTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String classpageEventId = AppClientFactory.getPlaceManager().getClasspageEventId(); String path = ""; if (classpageId != null && !classpageId.equals("")) { path = classpageId + "/" + collectionDo.getGooruOid(); } else {//from ww w .ja va2s . com path = AppClientFactory.getPlaceManager().getFolderIds() + collectionDo.getGooruOid(); } String playerMode = AppClientFactory.getPlaceManager().getPlayerMode(); int totalQuestionsCount = "start".equalsIgnoreCase(eventType) ? 0 : collectionDo.getCollectionItems().size(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObject(collectionDo.getGooruOid(), classpageId, classpageEventId, eventType, playerMode, "", null, path, null, totalQuestionsCount)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); int viewCount = "start".equalsIgnoreCase(eventType) ? 0 : 1; collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject( collectionEndTime - newCollectionStartTime, getCollectionScore(), viewCount)); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, new JSONString(new JSONObject().toString())); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.AssessmentsPreviewPlayerPresenter.java
License:Open Source License
public void triggerCollectionItemNewDataLogStartStopEvent(String resourceId, Long resourceStartTime, Long resourceEndTime, String eventType, Integer score, String questionType) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(resourceNewDataLogEventId)); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.COLLECTION_RESOURCE_PLAY)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(resourceStartTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(resourceEndTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); String questionTypeString = questionType.equals("RES") ? "resource" : "question"; String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String path = ""; if (classpageId != null && !classpageId.equals("")) { path = classpageId + "/" + collectionDo.getGooruOid() + "/" + resourceId; } else {/*from w w w .ja v a2s. co m*/ path = AppClientFactory.getPlaceManager().getFolderIds() + collectionDo.getGooruOid() + "/" + resourceId; } String playerMode = AppClientFactory.getPlaceManager().getPlayerMode(); int totalQuestionsCount = "start".equalsIgnoreCase(eventType) ? 0 : collectionDo.getCollectionItems().size(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObject(resourceId, collectionDo.getGooruOid(), collectionNewDataLogEventId, eventType, playerMode, questionTypeString, null, path, null, totalQuestionsCount)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); int viewCount = "start".equalsIgnoreCase(eventType) ? 0 : 1; collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents .getDataLogMetricsObject(resourceEndTime - resourceStartTime, getResourceScore(), viewCount)); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getDataLogPayLoadObject(questionType, oeQuestionAnswerText, attemptStatusArray, attemptTrySequenceArray, answerIdsObject, hintIdsObject, explanationIdsObject, getAttemptCount(), answerObjectArray, null)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.AssessmentsPreviewPlayerPresenter.java
License:Open Source License
public void triggerSaveOeAnswerTextDataEvent(String eventId, String resourceId, Long oeStartTime, Long oeEndTime, int score) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(eventId)); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.COLLECTION_RESOURCE_SAVE)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(oeStartTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(oeEndTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String path = ""; if (classpageId != null && !classpageId.equals("")) { path = classpageId + "/" + collectionDo.getGooruOid() + "/" + resourceId; } else {/* ww w . ja v a2s . c o m*/ path = AppClientFactory.getPlaceManager().getFolderIds() + collectionDo.getGooruOid() + "/" + resourceId; } String playerMode = AppClientFactory.getPlaceManager().getPlayerMode(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObject(resourceId, collectionDo.getGooruOid(), resourceNewDataLogEventId, "", playerMode, "question", null, path, null, 0)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(oeEndTime - oeStartTime, 0, 0)); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getDataLogPayLoadObject(questionType, oeQuestionAnswerText, attemptStatusArray, attemptTrySequenceArray, answerIdsObject, hintIdsObject, explanationIdsObject, getAttemptCount(), answerObjectArray, null)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.AssessmentsPreviewPlayerPresenter.java
License:Open Source License
public void triggerReactiontDataLogEvent(String resourceId, Long reactionStartTime, Long reactionEndTime, String reactionType, String eventName) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(GwtUUIDGenerator.uuid())); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(eventName)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(reactionStartTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(reactionEndTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); String questionTypeString = questionType.equals("RES") ? "resource" : "question"; String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String path = ""; if (classpageId != null && !classpageId.equals("")) { path = classpageId + "/" + collectionDo.getGooruOid() + "/" + resourceId; } else {//from w ww . ja va 2s . c om path = AppClientFactory.getPlaceManager().getFolderIds() + collectionDo.getGooruOid() + "/" + resourceId; } String playerMode = AppClientFactory.getPlaceManager().getPlayerMode(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObject(resourceId, collectionDo.getGooruOid(), resourceNewDataLogEventId, "", playerMode, questionTypeString, reactionType, path, null, 0)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(reactionEndTime - reactionStartTime, 0, 0)); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getDataLogPayLoadObject(reactionType)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.AssessmentsPreviewPlayerPresenter.java
License:Open Source License
public void triggerItemLoadDataLogEvent(Long startTime, String itemType, String collectionId) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(GwtUUIDGenerator.uuid())); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.ITEM_LOAD)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(startTime - startTime)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getItemLoadDataLogPayLoadObject(itemType)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String classpageEventId = AppClientFactory.getPlaceManager().getClasspageEventId(); String path = ""; if (classpageId != null && !classpageId.equals("")) { path = classpageId + "/" + collectionId; } else {/*from w w w . j ava 2 s. co m*/ path = AppClientFactory.getPlaceManager().getFolderIds() + collectionId; } String playerMode = AppClientFactory.getPlaceManager().getPlayerMode(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObjectForItemLoad(collectionId, "", classpageEventId, classpageId, "", playerMode, path, null, PlayerDataLogEvents.COLLECTION_LOAD_URL)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.collection.preview.AssessmentsPreviewPlayerPresenter.java
License:Open Source License
public void triggerItemFlagDataLogEvent(Long startTime, String itemType, String flagText, ArrayList<String> contentReportList, String itemGooruOid, String collectionItemId) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(GwtUUIDGenerator.uuid())); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.ITEM_FLAG)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(startTime - startTime)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getItemFlagDataLogPayLoadObject(itemType, flagText, contentReportList)); String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String classpageEventId = AppClientFactory.getPlaceManager().getClasspageEventId(); String path = ""; if (!StringUtil.isEmpty(classpageId)) { path = classpageId + "/" + collectionDo.getGooruOid(); if (getPlaceManager().getRequestParameter("rid") != null) { path = path + "/" + itemGooruOid; }/*from w ww . j a v a 2s .c om*/ } else { path = AppClientFactory.getPlaceManager().getFolderIds() + collectionDo.getGooruOid(); if (getPlaceManager().getRequestParameter("rid") != null) { path = path + "/" + itemGooruOid; } } String playerMode = AppClientFactory.getPlaceManager().getPlayerMode(); String parentEventId = itemType.equals(PlayerDataLogEvents.COLLECTION) ? classpageEventId : collectionNewDataLogEventId != null ? collectionNewDataLogEventId : ""; String parentGooruId = itemType.equals(PlayerDataLogEvents.COLLECTION) ? classpageId : collectionDo.getGooruOid(); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObjectForItemLoad(itemGooruOid, collectionItemId, parentEventId, parentGooruId, "", playerMode, path, null, PlayerDataLogEvents.COLLECTION_FLAG_URL)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.resource.AssessmentsResourcePlayerPresenter.java
License:Open Source License
public void triggerCollectionItemNewDataLogStartStopEvent(String resourceId, Long resourceStartTime, Long resourceEndTime, String eventType, Integer score, String questionType) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(resourceNewDataLogEventId)); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.RESOURCE_PLAY)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(resourceStartTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(resourceEndTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); String questionTypeString = questionType.equals("RES") ? "resource" : "question"; collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObject(resourceId, "", "", eventType, PlayerDataLogEvents.STUDY, questionTypeString, null, resourceId, null, 0)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); int viewCount = "start".equalsIgnoreCase(eventType) ? 0 : 1; collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents .getDataLogMetricsObject(resourceEndTime - resourceStartTime, getResourceScore(), viewCount)); String searchTerm = null;//ww w .j a v a2s .c o m if (eventType.equals(PlayerDataLogEvents.START_EVENT_TYPE)) { searchTerm = getSearchKeyword(); } collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getDataLogPayLoadObject(questionType, oeQuestionAnswerText, attemptStatusArray, attemptTrySequenceArray, answerIdsObject, hintIdsObject, explanationIdsObject, getAttemptCount(), answerObjectArray, searchTerm)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.resource.AssessmentsResourcePlayerPresenter.java
License:Open Source License
public void triggerSaveOeAnswerTextDataEvent(String eventId, String resourceId, Long oeStartTime, Long oeEndTime, int score) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(eventId)); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.RESOURCE_SAVE)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(oeStartTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(oeEndTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObject(resourceId, "", resourceNewDataLogEventId, "", PlayerDataLogEvents.STUDY, "question", null, resourceId, null, 0)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(oeEndTime - oeStartTime, 0, 0)); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getDataLogPayLoadObject(questionType, oeQuestionAnswerText, attemptStatusArray, attemptTrySequenceArray, answerIdsObject, hintIdsObject, explanationIdsObject, getAttemptCount(), answerObjectArray, null)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }
From source file:org.ednovo.gooru.client.mvp.assessments.play.resource.AssessmentsResourcePlayerPresenter.java
License:Open Source License
public void triggerItemFlagDataLogEvent(Long startTime, String itemType, String flagText, ArrayList<String> contentReportList, String itemGooruOid, String collectionItemId) { JSONObject collectionDataLog = new JSONObject(); collectionDataLog.put(PlayerDataLogEvents.EVENTID, new JSONString(GwtUUIDGenerator.uuid())); collectionDataLog.put(PlayerDataLogEvents.EVENTNAME, new JSONString(PlayerDataLogEvents.ITEM_FLAG)); collectionDataLog.put(PlayerDataLogEvents.SESSION, PlayerDataLogEvents.getDataLogSessionObject(sessionId)); collectionDataLog.put(PlayerDataLogEvents.STARTTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.ENDTIME, new JSONNumber(startTime)); collectionDataLog.put(PlayerDataLogEvents.USER, PlayerDataLogEvents.getDataLogUserObject()); collectionDataLog.put(PlayerDataLogEvents.METRICS, PlayerDataLogEvents.getDataLogMetricsObject(startTime - startTime)); collectionDataLog.put(PlayerDataLogEvents.VERSION, PlayerDataLogEvents.getDataLogVersionObject()); collectionDataLog.put(PlayerDataLogEvents.PAYLOADOBJECT, PlayerDataLogEvents.getItemFlagDataLogPayLoadObject(itemType, flagText, contentReportList)); String classpageId = AppClientFactory.getPlaceManager().getDataLogClasspageId(); String path = ""; if (getPlaceManager().getRequestParameter("id") != null) { path = itemGooruOid;//from ww w . ja v a 2 s . c o m } collectionDataLog.put(PlayerDataLogEvents.CONTEXT, PlayerDataLogEvents.getDataLogContextObjectForItemLoad(itemGooruOid, itemGooruOid, "", classpageId, "", PlayerDataLogEvents.STUDY, path, null, PlayerDataLogEvents.COLLECTION_FLAG_URL)); PlayerDataLogEvents.collectionStartStopEvent(collectionDataLog); }