Remove functionality on member managenent of course details view screen of learning resources tab

9 views
Skip to first unread message

Subbarao Cherukuri

unread,
Aug 11, 2014, 7:51:10 AM8/11/14
to open...@googlegroups.com
Hi,

what is the functionality on 'remove button ' of  member managenent navigation  of course details view screen of learning resources tab.

In Code there are conditions as following in AbstractMemberListController.java :

if(numOfRemovedOwner == 0 || numOfOwners - numOfRemovedOwner > 0) {
List<Identity> ids = securityManager.loadIdentityByKeys(identityKeys);
leaveDialogBox = new MemberLeaveConfirmationController(ureq, getWindowControl(), ids);
listenTo(leaveDialogBox);
cmc = new CloseableModalController(getWindowControl(), translate("close"), leaveDialogBox.getInitialComponent(),
true, translate("edit.member"));
cmc.activate();
listenTo(cmc);
}else {
showWarning("error.atleastone");
}


Please explain what exactly the purpose of following condition functionally :

if (numOfRemovedOwner == 0 || numOfOwners - numOfRemovedOwner > 0)

PFA for your reference.

Thanks ,
Subbarao.
Remove screen.docx

Stéphane Rossé

unread,
Aug 11, 2014, 11:26:15 AM8/11/14
to open...@googlegroups.com
Hi

This ensures that at least repository entries have at least one owner and business group at least one coach.

Best regards
Stéphane Rossé
---------------------------------------------------------------
professional services for the open source eLearning system OLAT
hosting - operating - support - java development - consulting
---------------------------------------------------------------
http://www.frentix.com | http://www.olat.com | http://openolat.org

frentix  GmbH
Stéphane Rossé
Hardturmstrasse 76
CH-8005 Zürich, Switzerland

tel://+41-43-544-9000
skype://s_rosse
--------------------------------------------------------------- 
Reply all
Reply to author
Forward
0 new messages