mirror of
https://github.com/sismics/docs.git
synced 2025-12-19 12:41:40 +00:00
#18: ACL check for groups
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.sismics.security;
|
||||
|
||||
import java.security.Principal;
|
||||
import java.util.List;
|
||||
|
||||
import org.joda.time.DateTimeZone;
|
||||
|
||||
@@ -24,6 +25,14 @@ public interface IPrincipal extends Principal {
|
||||
*/
|
||||
public String getId();
|
||||
|
||||
/**
|
||||
* Returns the list of group ID of the connected user,
|
||||
* or an empty list if the user is anonymous.
|
||||
*
|
||||
* @return List of group ID
|
||||
*/
|
||||
public List<String> getGroupIdList();
|
||||
|
||||
/**
|
||||
* Returns the timezone of the principal.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user