public class PopulateHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FAKE_CYRUS_IP |
Constructor and Description |
---|
PopulateHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addDomain(java.lang.String domain) |
static void |
addDomain(java.lang.String domain,
Mailbox.Routing adminRouting) |
static java.lang.String |
addDomainAdmin(java.lang.String login,
java.lang.String domain) |
static java.lang.String |
addDomainAdmin(java.lang.String login,
java.lang.String domain,
Mailbox.Routing routing) |
static java.lang.String |
addExternalUser(java.lang.String domain,
java.lang.String email,
java.lang.String name) |
static void |
addGlobalVirt(javax.sql.DataSource pool) |
static void |
addOrgUnit(java.lang.String domainUid,
java.lang.String uid,
java.lang.String name,
java.lang.String parentUid) |
static java.lang.String |
addSimpleUser(java.lang.String login,
java.lang.String domain,
Mailbox.Routing mailrouting,
java.lang.String... roles) |
static java.lang.String |
addUser(java.lang.String login,
java.lang.String domain) |
static java.lang.String |
addUser(java.lang.String login,
java.lang.String domain,
Mailbox.Routing mailrouting,
java.lang.String... roles) |
static java.lang.String |
addUser(java.lang.String domain,
User user,
java.lang.String... roles) |
static java.lang.String |
addUserWithRoles(java.lang.String login,
java.lang.String domain,
java.lang.String... roles) |
static void |
assign(javax.sql.DataSource pool,
java.lang.String serverUid,
java.lang.String tag,
java.lang.String domainUid) |
static void |
createDomain(java.lang.String domain) |
static void |
createDomainSettings(java.lang.String domainUid,
java.util.Map<java.lang.String,java.lang.String> domainSettings) |
static void |
createServers(Server... servers)
|
static ItemValue<Domain> |
createTestDomain(java.lang.String domainUid,
Domain domain,
Server... servers) |
static ItemValue<Domain> |
createTestDomain(java.lang.String domainUid,
Server... servers) |
static void |
domainAdmin(java.lang.String domainUid,
java.lang.String userUid) |
static User |
getUser(java.lang.String login,
java.lang.String domain,
Mailbox.Routing mailrouting) |
static void |
initGlobalVirt(boolean withCore,
Server... servers) |
static void |
initGlobalVirt(Server... servers) |
static void |
unAssignFakeCyrus(java.lang.String domainUid) |
public static final java.lang.String FAKE_CYRUS_IP
public static void addDomain(java.lang.String domain) throws java.lang.Exception
java.lang.Exception
public static void addDomain(java.lang.String domain, Mailbox.Routing adminRouting) throws java.lang.Exception
java.lang.Exception
public static void createDomain(java.lang.String domain) throws java.lang.Exception
java.lang.Exception
public static void initGlobalVirt(Server... servers) throws java.lang.Exception
java.lang.Exception
public static void initGlobalVirt(boolean withCore, Server... servers) throws java.lang.Exception
java.lang.Exception
public static ItemValue<Domain> createTestDomain(java.lang.String domainUid, Server... servers) throws java.lang.Exception
java.lang.Exception
public static ItemValue<Domain> createTestDomain(java.lang.String domainUid, Domain domain, Server... servers) throws java.lang.Exception
java.lang.Exception
public static void unAssignFakeCyrus(java.lang.String domainUid) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public static void domainAdmin(java.lang.String domainUid, java.lang.String userUid) throws java.lang.Exception
java.lang.Exception
public static void createServers(Server... servers) throws ServerFault
ServerFault
public static void addGlobalVirt(javax.sql.DataSource pool) throws java.lang.Exception
java.lang.Exception
public static java.lang.String addDomainAdmin(java.lang.String login, java.lang.String domain) throws ServerFault, java.io.IOException
ServerFault
java.io.IOException
public static java.lang.String addDomainAdmin(java.lang.String login, java.lang.String domain, Mailbox.Routing routing) throws ServerFault, java.io.IOException
ServerFault
java.io.IOException
public static java.lang.String addUser(java.lang.String login, java.lang.String domain) throws ServerFault, java.io.IOException
ServerFault
java.io.IOException
public static java.lang.String addUserWithRoles(java.lang.String login, java.lang.String domain, java.lang.String... roles) throws ServerFault, java.io.IOException
ServerFault
java.io.IOException
public static java.lang.String addUser(java.lang.String login, java.lang.String domain, Mailbox.Routing mailrouting, java.lang.String... roles) throws ServerFault
ServerFault
public static java.lang.String addSimpleUser(java.lang.String login, java.lang.String domain, Mailbox.Routing mailrouting, java.lang.String... roles) throws ServerFault
ServerFault
public static java.lang.String addUser(java.lang.String domain, User user, java.lang.String... roles)
public static User getUser(java.lang.String login, java.lang.String domain, Mailbox.Routing mailrouting)
public static java.lang.String addExternalUser(java.lang.String domain, java.lang.String email, java.lang.String name)
public static void assign(javax.sql.DataSource pool, java.lang.String serverUid, java.lang.String tag, java.lang.String domainUid) throws ServerFault, java.io.IOException
ServerFault
java.io.IOException
public static void createDomainSettings(java.lang.String domainUid, java.util.Map<java.lang.String,java.lang.String> domainSettings) throws ServerFault
ServerFault
public static void addOrgUnit(java.lang.String domainUid, java.lang.String uid, java.lang.String name, java.lang.String parentUid)
Copyright © 2021. All Rights Reserved.