use of org.olat.modules.scorm.server.beans.LMSDataFormBean in project openolat by klemens.
the class OLATApiAdapter method isItemCompleted.
// </OLATCE-289>
/**
* @param itemId
* @return true if the item is completed
*/
public boolean isItemCompleted(String itemId) {
// TODO:gs make method faster by caching lmsBean, but when to set out of date?
LMSDataFormBean lmsDataBean = new LMSDataFormBean();
lmsDataBean.setItemID(itemId);
lmsDataBean.setLmsAction("get");
odatahandler = new LMSDataHandler(scormManager, lmsDataBean, scormSettingsHandler);
LMSResultsBean lmsBean = odatahandler.getResultsBean();
return lmsBean.getIsItemCompleted().equals("true");
}
Aggregations