Skip to content
Snippets Groups Projects
Commit 82a6ea11 authored by srosse's avatar srosse
Browse files

no-jira: add audit log before starting to delete a business group

parent 223812bb
No related branches found
No related tags found
No related merge requests found
......@@ -373,26 +373,14 @@ public class BusinessGroupImpl implements Persistable, ModifiedInfo, BusinessGro
}
}
/**
* @see org.olat.group.BusinessGroup#getMinParticipants()
*/
public Integer getMinParticipants() {
return minParticipants;
}
/**
* @see org.olat.group.BusinessGroup#setMinParticipants(java.lang.Integer)
*/
public void setMinParticipants(Integer minParticipants) {
this.minParticipants = minParticipants;
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return "name=" + name + "::" + "::" + super.toString();
}
public Boolean getAutoCloseRanksEnabled() {
return autoCloseRanksEnabled;
......@@ -434,4 +422,13 @@ public class BusinessGroupImpl implements Persistable, ModifiedInfo, BusinessGro
public int hashCode() {
return getKey() == null ? 2901 : getKey().hashCode();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder(256);
sb.append("businessGroup[key=").append(getKey() == null ? "" : getKey())
.append(";name=").append(getName() == null ? "" : getName()).append("]")
.append(super.toString());
return sb.toString();
}
}
\ No newline at end of file
......@@ -747,6 +747,8 @@ public class BusinessGroupServiceImpl implements BusinessGroupService, UserDataD
@Override
public void deleteBusinessGroup(BusinessGroup group) {
try{
log.audit("Start deleting Business Group", group.toString());
OLATResourceableJustBeforeDeletedEvent delEv = new OLATResourceableJustBeforeDeletedEvent(group);
// notify all (currently running) BusinessGroupXXXcontrollers
// about the deletion which will occur.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment