Class RoleService
- java.lang.Object
-
- fr.paris.lutece.plugins.wiki.service.RoleService
-
public final class RoleService extends Object
Diff Service
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static fr.paris.lutece.util.ReferenceListgetUserRoles(javax.servlet.http.HttpServletRequest request)Gets all the user's rolestatic booleanhasAdminRole(javax.servlet.http.HttpServletRequest request)Checks if the user has the admin rolestatic booleanhasEditRole(javax.servlet.http.HttpServletRequest request, Topic topic)Checks if the user has the edit role for the given topic
-
-
-
Method Detail
-
getUserRoles
public static fr.paris.lutece.util.ReferenceList getUserRoles(javax.servlet.http.HttpServletRequest request)
Gets all the user's role- Parameters:
request- The request- Returns:
- the reference list of all the user's role
-
hasEditRole
public static boolean hasEditRole(javax.servlet.http.HttpServletRequest request, Topic topic)Checks if the user has the edit role for the given topic- Parameters:
request- The requesttopic- The topic- Returns:
- true if he has otherwise false
-
hasAdminRole
public static boolean hasAdminRole(javax.servlet.http.HttpServletRequest request)
Checks if the user has the admin role- Parameters:
request- The HTTP request- Returns:
- true if he has otherwise false
-
-