344345346347348349350351352353354
} try { user.addGroupRole(groupName, roleName); user.update(false); if (cachingEnable) { JetspeedSecurityCache.addRole(username, role); }
389390391392393394395396397398399
} try { user.removeGroupRole(groupname, rolename); user.update(false); if (cachingEnable) { JetspeedSecurityCache.removeRole(username, rolename, groupname); }
322323324325326327328329330331332
throw new GroupException("Failed to Retrieve User: ", e); } try { user.addGroupRole(groupname, defaultRole); user.update(false); } catch(Exception e) { throw new GroupException("Failed to add group info ", e); }
357358359360361362363364365366367
throw new GroupException("Failed to Retrieve User: ", e); } try { user.addGroupRole(groupname, rolename); user.update(false); } catch(Exception e) { throw new GroupException("Failed to add group info ", e); }
391392393394395396397398399400401
} try { user.removeGroup(groupName); user.update(false); } catch(Exception e) { throw new GroupException("Failed to add group info ", e); }
425426427428429430431432433434435