Revision 60661
Added by Konstantina Galouni about 3 years ago
ManagerUtils.java | ||
---|---|---|
120 | 120 |
|
121 | 121 |
return managerUtilsList; |
122 | 122 |
} |
123 |
|
|
124 |
public Boolean isCommunityManager(String communityId, String userMail) { |
|
125 |
List<ManagerUtils> managerUtils = this.getManagersByEmail(communityId); |
|
126 |
if(managerUtils != null) { |
|
127 |
for(ManagerUtils manager : managerUtils) { |
|
128 |
if(manager.getEmail().equals(userMail)) { |
|
129 |
return true; |
|
130 |
} |
|
131 |
} |
|
132 |
} |
|
133 |
return false; |
|
134 |
} |
|
123 | 135 |
} |
Also available in: Unified diff
[Trunk | Claims Service]:
1. ManagerUtils.java: Added method "isCommunityManager()" to check if a user_email is among managers of a community.
2. springContext-claims.xml: Added in bean with id=emailSender, property name="managerUtils" and removed property name="communityUtils".