/** * Gets all the roles for the (un)authenticated user. Anonymous and Authenticated roles are * appended if necessary * * @return all expanded roles for a user * @throws Exception */ public Set<Role> getAllRoles() throws Exception { return getAllRoles(getAuthenticatedUser()); }
/** * Convenience method. Passes through to userContext.getAllRoles(User) */ public static Set<Role> getAllRoles(User user) throws Exception { return getUserContext().getAllRoles(); }