public abstract class AbstractMuleApi extends AbstractApi
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
NAME |
static String |
ORGANIZATION |
static String |
SUB_ORGANIZATION_IDS |
protected String |
uri |
static String |
USER |
log, LOGIN| Constructor and Description |
|---|
AbstractMuleApi(String uri,
org.apache.maven.plugin.logging.Log log,
String username,
String password,
String environment,
String businessGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureRequest(javax.ws.rs.client.Invocation.Builder builder)
Template method to allow subclasses to configure the request (adding headers for example).
|
protected String[] |
createBusinessGroupPath() |
Environment |
findEnvironmentByName(String name) |
String |
getBusinessGroupIdByBusinessGroupPath() |
UserInfo |
getMe() |
String |
getOrgId() |
Set<String> |
getSuborganizationIds(com.google.gson.JsonObject organizationJson) |
void |
init() |
protected List<Organization> |
resolveSuborganizations(com.google.gson.JsonObject userJson,
com.google.gson.JsonObject organizationJson) |
protected void |
validateStatusSuccess(javax.ws.rs.core.Response response) |
configureSecurityContext, delete, get, get, getTarget, isLoginRequest, patch, post, post, put, putpublic static final String ORGANIZATION
public static final String SUB_ORGANIZATION_IDS
public static final String NAME
public static final String USER
public static final String ID
protected String uri
public void init()
protected void validateStatusSuccess(javax.ws.rs.core.Response response)
public String getOrgId()
public Environment findEnvironmentByName(String name)
protected void configureRequest(javax.ws.rs.client.Invocation.Builder builder)
AbstractApiconfigureRequest in class AbstractApibuilder - The invocation builder for the request.public String getBusinessGroupIdByBusinessGroupPath()
public UserInfo getMe()
protected List<Organization> resolveSuborganizations(com.google.gson.JsonObject userJson, com.google.gson.JsonObject organizationJson)
public Set<String> getSuborganizationIds(com.google.gson.JsonObject organizationJson)
protected String[] createBusinessGroupPath()
Copyright © 2019 MuleSoft Inc. All rights reserved.