1.0-PR2
@@ -55,7 +55,7 @@ | ||
55 | 55 | |
56 | 56 | UserManager userManager = getUserManager(); |
57 | 57 | if (userManager.userExists(userInfo.getUserId())) { |
58 | - throw new PortalException("errors.user_already_exists", "User(" | |
58 | + throw new PortalException("errors.user_already_exists_on_portal", "User(" | |
59 | 59 | + userInfo.getUserId() + ") already exists."); |
60 | 60 | } |
61 | 61 |
@@ -147,7 +147,7 @@ | ||
147 | 147 | |
148 | 148 | UserManager userManager = getUserManager(); |
149 | 149 | if (!userManager.userExists(userInfo.getUserId())) { |
150 | - throw new PortalException("errors.user_does_not_exist", "User(" | |
150 | + throw new PortalException("errors.user_does_not_exist_on_portal", "User(" | |
151 | 151 | + userInfo.getUserId() + ") does not exist."); |
152 | 152 | } |
153 | 153 |
@@ -201,7 +201,7 @@ | ||
201 | 201 | |
202 | 202 | UserManager userManager = getUserManager(); |
203 | 203 | if (!userManager.userExists(userInfo.getUserId())) { |
204 | - throw new PortalException("errors.user_does_not_exist", "User(" | |
204 | + throw new PortalException("errors.user_does_not_exist_on_portal", "User(" | |
205 | 205 | + userInfo.getUserId() + ") does not exist."); |
206 | 206 | } |
207 | 207 |
@@ -270,7 +270,7 @@ | ||
270 | 270 | RoleManager roleManager = getRoleManager(); |
271 | 271 | try { |
272 | 272 | if (roleManager.roleExists(roleInfo.getRoleId())) { |
273 | - throw new PortalException("errors.role_already_exists", "Role(" | |
273 | + throw new PortalException("errors.role_already_exists_on_portal", "Role(" | |
274 | 274 | + roleInfo.getRoleId() + ") already exists."); |
275 | 275 | } |
276 | 276 | roleManager.addRole(roleInfo.getRoleId()); |
@@ -292,7 +292,7 @@ | ||
292 | 292 | RoleManager roleManager = getRoleManager(); |
293 | 293 | try { |
294 | 294 | if (!roleManager.roleExists(roleInfo.getRoleId())) { |
295 | - throw new PortalException("errors.role_does_not_exist", "Role(" | |
295 | + throw new PortalException("errors.role_does_not_exist_on_portal", "Role(" | |
296 | 296 | + roleInfo.getRoleId() + ") does not exist."); |
297 | 297 | } |
298 | 298 | roleManager.removeRole(roleInfo.getRoleId()); |
@@ -330,7 +330,7 @@ | ||
330 | 330 | GroupManager groupManager = getGroupManager(); |
331 | 331 | try { |
332 | 332 | if (groupManager.groupExists(groupInfo.getGroupId())) { |
333 | - throw new PortalException("errors.group_already_exists", | |
333 | + throw new PortalException("errors.group_already_exists_on_portal", | |
334 | 334 | "Group(" + groupInfo.getGroupId() + ") already exists."); |
335 | 335 | } |
336 | 336 | groupManager.addGroup(groupInfo.getGroupId()); |
@@ -352,7 +352,7 @@ | ||
352 | 352 | GroupManager groupManager = getGroupManager(); |
353 | 353 | try { |
354 | 354 | if (!groupManager.groupExists(groupInfo.getGroupId())) { |
355 | - throw new PortalException("errors.group_does_not_exist", | |
355 | + throw new PortalException("errors.group_does_not_exist_on_portal", | |
356 | 356 | "Group(" + groupInfo.getGroupId() + ") does not exist."); |
357 | 357 | } |
358 | 358 | groupManager.removeGroup(groupInfo.getGroupId()); |