use of org.olat.modules.coach.model.IdentityResourceKey in project OpenOLAT by OpenOLAT.
the class EfficiencyStatementEntryTableDataModel method putCertificate.
public void putCertificate(CertificateLight certificate) {
if (certificateMap != null && certificate != null) {
IdentityResourceKey key = new IdentityResourceKey(certificate.getIdentityKey(), certificate.getOlatResourceKey());
certificateMap.put(key, certificate);
}
}
use of org.olat.modules.coach.model.IdentityResourceKey in project OpenOLAT by OpenOLAT.
the class GroupController method event.
@Override
public void event(Event event) {
if (event instanceof CertificateEvent) {
CertificateEvent ce = (CertificateEvent) event;
IdentityResourceKey key = new IdentityResourceKey(ce.getOwnerKey(), ce.getResourceKey());
if (model.contains(key)) {
updateCertificate(ce.getCertificateKey());
}
}
}
use of org.olat.modules.coach.model.IdentityResourceKey in project OpenOLAT by OpenOLAT.
the class GroupController method loadModel.
private List<EfficiencyStatementEntry> loadModel() {
List<EfficiencyStatementEntry> allGroup = coachingService.getGroup(group, userPropertyHandlers, getLocale());
List<CertificateLight> certificates = certificatesManager.getLastCertificates(group);
ConcurrentMap<IdentityResourceKey, CertificateLight> certificateMap = new ConcurrentHashMap<>();
for (CertificateLight certificate : certificates) {
IdentityResourceKey key = new IdentityResourceKey(certificate.getIdentityKey(), certificate.getOlatResourceKey());
certificateMap.put(key, certificate);
}
model.setObjects(allGroup, certificateMap);
tableEl.reloadData();
tableEl.reset();
return allGroup;
}
use of org.olat.modules.coach.model.IdentityResourceKey in project openolat by klemens.
the class EfficiencyStatementEntryTableDataModel method putCertificate.
public void putCertificate(CertificateLight certificate) {
if (certificateMap != null && certificate != null) {
IdentityResourceKey key = new IdentityResourceKey(certificate.getIdentityKey(), certificate.getOlatResourceKey());
certificateMap.put(key, certificate);
}
}
use of org.olat.modules.coach.model.IdentityResourceKey in project openolat by klemens.
the class GroupController method loadModel.
private List<EfficiencyStatementEntry> loadModel() {
List<EfficiencyStatementEntry> allGroup = coachingService.getGroup(group, userPropertyHandlers, getLocale());
List<CertificateLight> certificates = certificatesManager.getLastCertificates(group);
ConcurrentMap<IdentityResourceKey, CertificateLight> certificateMap = new ConcurrentHashMap<>();
for (CertificateLight certificate : certificates) {
IdentityResourceKey key = new IdentityResourceKey(certificate.getIdentityKey(), certificate.getOlatResourceKey());
certificateMap.put(key, certificate);
}
model.setObjects(allGroup, certificateMap);
tableEl.reloadData();
tableEl.reset();
return allGroup;
}
Aggregations