Class Organization
java.lang.Object
com.aeontronix.enhancedmule.tools.anypoint.AnypointObject
com.aeontronix.enhancedmule.tools.anypoint.Organization
- All Implemented Interfaces:
Serializable
public class Organization extends AnypointObject
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrganization.RequestAPIAccessResult -
Field Summary
Fields Modifier and Type Field Description protected booleanfederatedprotected Stringidstatic PatternMAJORVERSION_REGEXprotected Stringnameprotected StringparentIdFields inherited from class com.aeontronix.enhancedmule.tools.anypoint.AnypointObject
client, httpHelper, json, jsonHelper, parent -
Constructor Summary
Constructors Constructor Description Organization()Organization(AnypointClient client)Organization(AnypointClient client, String id) -
Method Summary
-
Field Details
-
MAJORVERSION_REGEX
-
id
-
name
-
parentId
-
federated
protected boolean federated
-
-
Constructor Details
-
Organization
public Organization() -
Organization
-
Organization
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
isFederated
public boolean isFederated() -
setFederated
public void setFederated(boolean federated) -
findAllEnvironments
- Throws:
HttpException
-
findEnvironmentByName
@NotNull public @NotNull Environment findEnvironmentByName(@NotNull @NotNull String name) throws NotFoundException, HttpException- Throws:
NotFoundExceptionHttpException
-
findEnvironmentById
@NotNull public @NotNull Environment findEnvironmentById(@NotNull @NotNull String id) throws NotFoundException, HttpException- Throws:
NotFoundExceptionHttpException
-
getParentId
-
setParentId
-
getParentOrganization
- Throws:
HttpException
-
getRootOrganization
- Throws:
HttpException
-
createEnvironment
public Environment createEnvironment(@NotNull @NotNull String name, @NotNull Environment.Type type) throws HttpException- Throws:
HttpException
-
createClientApplication
public ClientApplication createClientApplication(String name, String url, String description) throws HttpException- Throws:
HttpException
-
createClientApplication
public ClientApplication createClientApplication(String name, String url, String description, String accessedAPIInstanceId) throws HttpException- Throws:
HttpException
-
createClientApplication
public ClientApplication createClientApplication(String name, String url, String description, List<String> redirectUri, String apiEndpoints, String accessedAPIInstanceId) throws HttpException- Throws:
HttpException
-
createSubOrganization
public Organization createSubOrganization(String name, String ownerId, boolean createSubOrgs, boolean createEnvironments) throws HttpException- Throws:
HttpException
-
findAllClientApplications
- Throws:
HttpException
-
findAllClientApplications
public List<ClientApplication> findAllClientApplications(@Nullable @Nullable String filter) throws HttpException- Throws:
HttpException
-
findClientApplicationById
public ClientApplication findClientApplicationById(@NotNull @NotNull String id) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
findClientApplicationByName
public ClientApplication findClientApplicationByName(@NotNull @NotNull String name) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
findClientApplicationByName
public ClientApplication findClientApplicationByName(@NotNull @NotNull String name, boolean fullData) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
findAPISpecs
- Throws:
HttpException
-
findAPISpecsByFilter
@NotNull public @NotNull APISpecList findAPISpecsByFilter(@Nullable @Nullable String filter) throws HttpException- Throws:
HttpException
-
findAPISpecsByIdOrNameAndVersion
public APISpec findAPISpecsByIdOrNameAndVersion(String idOrName, String version) throws NotFoundException, HttpException- Throws:
NotFoundExceptionHttpException
-
findAPISpecsByNameAndVersion
public APISpec findAPISpecsByNameAndVersion(String name, String version) throws NotFoundException, HttpException- Throws:
NotFoundExceptionHttpException
-
createSubOrganization
public Organization createSubOrganization(String name, String ownerId, boolean createSubOrgs, boolean createEnvironments, boolean globalDeployment, int vCoresProduction, int vCoresSandbox, int vCoresDesign, int staticIps, int vpcs, int loadBalancer) throws HttpException- Throws:
HttpException
-
delete
- Throws:
HttpException
-
getUriPath
-
toString
-
findDesignCenterProjects
- Throws:
HttpException
-
findDesignCenterProject
public DesignCenterProject findDesignCenterProject(String name) throws NotFoundException, HttpException- Throws:
NotFoundExceptionHttpException
-
createDesignCenterProject
public DesignCenterProject createDesignCenterProject(String name, String type, boolean visualDesignerMode, String ownerId) throws HttpException- Throws:
HttpException
-
findExchangeAssets
- Throws:
HttpException
-
findExchangeAssets
- Throws:
HttpException
-
findExchangeAsset
public ExchangeAsset findExchangeAsset(@NotNull @NotNull String groupId, @NotNull @NotNull String assetId) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
findExchangeAssetVersion
public AssetVersion findExchangeAssetVersion(@NotNull @NotNull String groupId, @NotNull @NotNull String assetId, @NotNull @NotNull String version) throws HttpException, NotFoundException- Throws:
HttpExceptionNotFoundException
-
createEnvironmentObject
-
getEnvironmentClass
-
provisionVPC
public VPC provisionVPC(VPCProvisioningDescriptor vd, boolean deleteExisting) throws NotFoundException, HttpException- Throws:
NotFoundExceptionHttpException
-
provisionVPC
public void provisionVPC(File file, boolean deleteExisting) throws NotFoundException, HttpException, IOException -
findVPCs
- Throws:
HttpException
-
findVPCByName
- Throws:
NotFoundExceptionHttpException
-
findAllTargets
- Throws:
HttpException
-
findTargetById
- Throws:
NotFoundExceptionHttpException
-
findExchangeReleaseManifest
-
findAllRoleGroups
- Throws:
HttpException
-
findRoleGroupById
- Throws:
HttpExceptionNotFoundException
-
findAllProductPermissions
- Throws:
HttpException
-
findAllRoles
- Throws:
HttpException
-
findAllRolesIndexedByName
- Throws:
HttpException
-
createRoleGroup
- Throws:
HttpException
-
findRoleGroupByName
- Throws:
HttpExceptionNotFoundException
-
createExchangeHTTPAPIAsset
public void createExchangeHTTPAPIAsset(String groupId, String name, String assetId, String version, String apiVersion) throws AssetCreationException- Throws:
AssetCreationException
-
export
- Throws:
HttpException
-
publishExchangeAPIAsset
public ExchangeAsset publishExchangeAPIAsset(String name, String assetId, String assetVersion, String assetAPIVersion, String assetClassifier, String assetMainFile, File file) throws IOException, HttpException- Throws:
IOExceptionHttpException
-
findFabricByName
- Throws:
NotFoundExceptionHttpException
-
findAllFabric
- Throws:
HttpException
-
promoteExchangeApplication
public void promoteExchangeApplication(EnhancedMuleClient emClient, String groupId, String artifactId, String version, String newVersion) throws IOException, NotFoundException- Throws:
IOExceptionNotFoundException
-