public class RBACManager
extends java.lang.Object
Constructor and Description |
---|
RBACManager(BmContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
can(java.util.Set<java.lang.String> roles) |
boolean |
can(java.lang.String... roles) |
boolean |
canAll(java.util.Set<java.lang.String> roles) |
void |
check(java.util.Set<java.lang.String> roles) |
void |
check(java.lang.String... roles) |
void |
checkNotAnoynmous() |
java.util.List<java.lang.String> |
directRoles() |
RBACManager |
forContainer(Container container) |
RBACManager |
forContainer(java.lang.String uid) |
static RBACManager |
forContext(BmContext context) |
RBACManager |
forDomain(java.lang.String domainUid) |
RBACManager |
forEntry(java.lang.String uid) |
RBACManager |
forOrgUnit(java.lang.String orgUnitUid) |
static RBACManager |
forSecurityContext(SecurityContext tok) |
java.util.Set<Permission> |
resolve() |
java.util.Set<java.lang.String> |
roles() |
public RBACManager(BmContext context)
public boolean can(java.lang.String... roles)
public java.util.Set<Permission> resolve()
public boolean canAll(java.util.Set<java.lang.String> roles)
public boolean can(java.util.Set<java.lang.String> roles)
public void checkNotAnoynmous() throws ServerFault
ServerFault
public void check(java.util.Set<java.lang.String> roles) throws ServerFault
ServerFault
public void check(java.lang.String... roles) throws ServerFault
ServerFault
public RBACManager forContainer(java.lang.String uid) throws ServerFault
ServerFault
public RBACManager forContainer(Container container) throws ServerFault
ServerFault
public RBACManager forEntry(java.lang.String uid) throws ServerFault
ServerFault
public RBACManager forDomain(java.lang.String domainUid)
public RBACManager forOrgUnit(java.lang.String orgUnitUid)
public java.util.Set<java.lang.String> roles()
public java.util.List<java.lang.String> directRoles()
public static RBACManager forContext(BmContext context)
public static RBACManager forSecurityContext(SecurityContext tok)
Copyright © 2021. All Rights Reserved.