public class CommonAuthModule extends Object
Constructor and Description |
---|
CommonAuthModule() |
Modifier and Type | Method and Description |
---|---|
static String |
getMail(String user)
Get mail from user
|
static String |
getName(String user)
Get name from user.
|
static PrincipalAdapter |
getPrincipalAdapter()
Singleton pattern for global Principal Adapter.
|
static List<String> |
getRoles()
Get roles
|
static List<String> |
getRolesByUser(String user)
Get roles from user
|
static List<String> |
getUsers()
Get users
|
static List<String> |
getUsersByRole(String role)
Get users by role
|
public static List<String> getUsers() throws PrincipalAdapterException
PrincipalAdapterException
public static List<String> getRoles() throws PrincipalAdapterException
PrincipalAdapterException
public static List<String> getUsersByRole(String role) throws PrincipalAdapterException
PrincipalAdapterException
public static List<String> getRolesByUser(String user) throws PrincipalAdapterException
PrincipalAdapterException
public static String getMail(String user) throws PrincipalAdapterException
PrincipalAdapterException
public static String getName(String user) throws PrincipalAdapterException
PrincipalAdapterException
public static PrincipalAdapter getPrincipalAdapter() throws PrincipalAdapterException
PrincipalAdapterException
Copyright © 2016. All rights reserved.