[Yanel-commits] rev 40308 -
public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Mon Dec 8 15:48:19 CET 2008
Author: michi
Date: 2008-12-08 15:48:19 +0100 (Mon, 08 Dec 2008)
New Revision: 40308
Modified:
public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateGroupResource.java
Log:
obsolete else removed
Modified: public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateGroupResource.java
===================================================================
--- public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateGroupResource.java 2008-12-08 14:47:57 UTC (rev 40307)
+++ public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateGroupResource.java 2008-12-08 14:48:19 UTC (rev 40308)
@@ -56,16 +56,15 @@
if (id == null || id.length()==0) {
this.addError("Please enter a group ID.");
return false;
- } else {
- GroupManager groupManager = getRealm().getIdentityManager().getGroupManager();
- try {
- if (groupManager.existsGroup(id)) {
- this.addError("Group with this ID exists already.");
- return false;
- }
- } catch (AccessManagementException e) {
- throw new UsecaseException(e.getMessage(), e);
+ }
+ GroupManager groupManager = getRealm().getIdentityManager().getGroupManager();
+ try {
+ if (groupManager.existsGroup(id)) {
+ this.addError("Group with this ID exists already.");
+ return false;
}
+ } catch (AccessManagementException e) {
+ throw new UsecaseException(e.getMessage(), e);
}
if (name == null || name.length()==0) {
this.addError("Please enter a user name.");
More information about the Yanel-commits
mailing list