use of edu.harvard.iq.dataverse.actionlogging.ActionLogRecord in project dataverse by IQSS.
the class ShibGroupServiceBean method save.
public ShibGroup save(String name, String shibIdpAttribute, String shibIdp) {
ActionLogRecord alr = new ActionLogRecord(ActionLogRecord.ActionType.GlobalGroups, "shibCreate");
alr.setInfo(name + ": " + shibIdp + "/" + shibIdpAttribute);
ShibGroup institutionalGroup = new ShibGroup(name, shibIdpAttribute, shibIdp, groupService.getShibGroupProvider());
em.persist(institutionalGroup);
em.flush();
ShibGroup merged = em.merge(institutionalGroup);
actionLogSvc.log(alr);
return merged;
}
Aggregations