Constructor and Description |
---|
BmTestContext(SecurityContext sc) |
BmTestContext(SecurityContext sc,
IServiceProvider provider) |
BmTestContext(SecurityContext sc,
IServiceProvider provider,
javax.sql.DataSource datasource) |
Modifier and Type | Method and Description |
---|---|
static BmTestContext |
context(java.lang.String subject,
java.lang.String domainUid,
java.lang.String... roles) |
static BmTestContext |
contextWithSession(java.lang.String sid,
java.lang.String subject,
java.lang.String domainUid,
java.lang.String... roles) |
javax.sql.DataSource |
getDataSource() |
SecurityContext |
getSecurityContext() |
IServiceProvider |
getServiceProvider() |
IServiceProvider |
provider() |
BmTestContext |
session(java.lang.String sid) |
BmContext |
su() |
BmContext |
su(java.lang.String userUid,
java.lang.String domainUid) |
static BmTestContext |
withDataSource(SecurityContext sc,
javax.sql.DataSource ds) |
BmTestContext |
withGroup(java.lang.String... groups) |
BmContext |
withRoles(java.util.Set<java.lang.String> roles) |
BmTestContext |
withRoles(java.lang.String... roles) |
BmTestContext |
withRolesOnOrgUnit(java.lang.String ouUid,
java.lang.String... roles) |
public BmTestContext(SecurityContext sc)
public BmTestContext(SecurityContext sc, IServiceProvider provider)
public BmTestContext(SecurityContext sc, IServiceProvider provider, javax.sql.DataSource datasource)
public SecurityContext getSecurityContext()
getSecurityContext
in interface BmContext
public javax.sql.DataSource getDataSource()
getDataSource
in interface BmContext
public IServiceProvider getServiceProvider()
getServiceProvider
in interface BmContext
public IServiceProvider provider()
public BmContext su(java.lang.String userUid, java.lang.String domainUid)
public BmContext withRoles(java.util.Set<java.lang.String> roles)
public BmTestContext withRoles(java.lang.String... roles)
public BmTestContext withRolesOnOrgUnit(java.lang.String ouUid, java.lang.String... roles)
public static BmTestContext contextWithSession(java.lang.String sid, java.lang.String subject, java.lang.String domainUid, java.lang.String... roles) throws ServerFault
ServerFault
public BmTestContext session(java.lang.String sid) throws ServerFault
ServerFault
public static BmTestContext context(java.lang.String subject, java.lang.String domainUid, java.lang.String... roles) throws ServerFault
ServerFault
public static BmTestContext withDataSource(SecurityContext sc, javax.sql.DataSource ds)
public BmTestContext withGroup(java.lang.String... groups)
Copyright © 2021. All Rights Reserved.