Search in sources :

Example 1 with CoOpsSessionOpenEvent

use of fi.otavanopisto.muikku.plugins.material.coops.event.CoOpsSessionOpenEvent in project muikku by otavanopisto.

the class CoOpsSessionController method createSession.

public CoOpsSession createSession(HtmlMaterial htmlMaterial, UserEntity userEntity, String sessionId, Long joinRevision, String algorithm) {
    CoOpsSession session = coOpsSessionDAO.create(htmlMaterial, userEntity != null ? userEntity.getId() : null, sessionId, CoOpsSessionType.REST, joinRevision, algorithm, Boolean.FALSE, new Date());
    sessionOpenEvent.fire(new CoOpsSessionOpenEvent(session.getSessionId()));
    return session;
}
Also used : CoOpsSession(fi.otavanopisto.muikku.plugins.material.coops.model.CoOpsSession) CoOpsSessionOpenEvent(fi.otavanopisto.muikku.plugins.material.coops.event.CoOpsSessionOpenEvent) Date(java.util.Date)

Aggregations

CoOpsSessionOpenEvent (fi.otavanopisto.muikku.plugins.material.coops.event.CoOpsSessionOpenEvent)1 CoOpsSession (fi.otavanopisto.muikku.plugins.material.coops.model.CoOpsSession)1 Date (java.util.Date)1