mirror of
https://github.com/sismics/docs.git
synced 2025-12-17 03:31:48 +00:00
#18: Group resource, groups handling in ACL, groups returned in users
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
package com.sismics.security;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.joda.time.DateTimeZone;
|
||||
|
||||
import jersey.repackaged.com.google.common.collect.Lists;
|
||||
|
||||
/**
|
||||
* Authenticated users principal.
|
||||
*
|
||||
@@ -38,6 +35,11 @@ public class UserPrincipal implements IPrincipal {
|
||||
*/
|
||||
private Set<String> baseFunctionSet;
|
||||
|
||||
/**
|
||||
* User groups.
|
||||
*/
|
||||
private Set<String> groupIdSet;
|
||||
|
||||
/**
|
||||
* Constructor of UserPrincipal.
|
||||
*
|
||||
@@ -99,8 +101,11 @@ public class UserPrincipal implements IPrincipal {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getGroupIdList() {
|
||||
// TODO Real groups
|
||||
return Lists.newArrayList("members");
|
||||
public Set<String> getGroupIdSet() {
|
||||
return groupIdSet;
|
||||
}
|
||||
|
||||
public void setGroupIdSet(Set<String> groupIdSet) {
|
||||
this.groupIdSet = groupIdSet;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user