Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
82a6ea11
Commit
82a6ea11
authored
6 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: add audit log before starting to delete a business group
parent
223812bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/group/BusinessGroupImpl.java
+9
-12
9 additions, 12 deletions
src/main/java/org/olat/group/BusinessGroupImpl.java
src/main/java/org/olat/group/manager/BusinessGroupServiceImpl.java
+2
-0
2 additions, 0 deletions
...java/org/olat/group/manager/BusinessGroupServiceImpl.java
with
11 additions
and
12 deletions
src/main/java/org/olat/group/BusinessGroupImpl.java
+
9
−
12
View file @
82a6ea11
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/group/manager/BusinessGroupServiceImpl.java
+
2
−
0
View file @
82a6ea11
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment