/** * Get the security roles by principal * * @param userName the principal name * @return the security roles containing the principal or null for no roles * @throws IllegalArgumentException for a null user name */ @Deprecated public SecurityRolesMetaData getSecurityRolesByPrincipal(String userName) { if (userName == null) throw new IllegalArgumentException("Null userName"); if (securityRoles == null) return null; return securityRoles.getSecurityRolesByPrincipal(userName); }
/** * Get the security roles by principal * * @param userName the principal name * @return the security roles containing the principal or null for no roles * @throws IllegalArgumentException for a null user name */ @Deprecated public SecurityRolesMetaData getSecurityRolesByPrincipal(String userName) { if (userName == null) throw new IllegalArgumentException("Null userName"); if (securityRoles == null) return null; return securityRoles.getSecurityRolesByPrincipal(userName); }