Package com.axway.apim.adapter.apis
Class APIManagerAPIAdapter
- java.lang.Object
-
- com.axway.apim.adapter.apis.APIManagerAPIAdapter
-
public class APIManagerAPIAdapter extends Object
-
-
Constructor Summary
Constructors Constructor Description APIManagerAPIAdapter()Maps the provided status to the REST-API endpoint to change the status!
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClientApplications(API api)voidaddClientOrganizations(API api)voidaddQuotaConfiguration(API api)APIcreateAPIProxy(API api)voiddeleteAPIProxy(API api)voiddeleteBackendAPI(API api)APIgetAPI(APIFilter filter, boolean logMessage)byte[]getAPIDatFile(API api, String password)List<API>getAPIs(APIFilter filter, boolean logProgress)APIgetAPIWithId(String id)voidgrantClientOrganization(List<Organization> grantAccessToOrgs, API api, boolean allOrgs)APIimportBackendAPI(API api)voidpublishAPI(API api, String vhost)voidtranslateMethodIds(API api, APIFilter.METHOD_TRANSLATION mode)Translates the methodIds of the given api.voidtranslateMethodIds(API api, String apiId, APIFilter.METHOD_TRANSLATION mode)Translates the methodIds of the given api.voidtranslateMethodIds(List<API> apis, List<String> apiIds, APIFilter.METHOD_TRANSLATION mode)voidupdateAPIImage(API api, Image image)APIupdateAPIProxy(API api)voidupdateAPIStatus(API api, String desiredState, String vhost)voidupdateRetirementDate(API api, Long retirementDate)voidupgradeAccessToNewerAPI(API apiToUpgradeAccess, API referenceAPI)booleanupgradeAccessToNewerAPI(API apiToUpgradeAccess, API referenceAPI, Boolean deprecateRefApi, Boolean retireRefApi, Long retirementDateRefAPI)
-
-
-
Field Detail
-
PROXIES
public static final String PROXIES
- See Also:
- Constant Field Values
-
APIREPO
public static final String APIREPO
- See Also:
- Constant Field Values
-
UNKNOWN_API
public static final String UNKNOWN_API
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAPIs
public List<API> getAPIs(APIFilter filter, boolean logProgress) throws AppException
- Throws:
AppException
-
getAPI
public API getAPI(APIFilter filter, boolean logMessage) throws AppException
- Throws:
AppException
-
getAPIWithId
public API getAPIWithId(String id) throws AppException
- Throws:
AppException
-
translateMethodIds
public void translateMethodIds(API api, String apiId, APIFilter.METHOD_TRANSLATION mode) throws AppException
Translates the methodIds of the given api. The operations are loaded from the API-Manager based on the apiId- Parameters:
api- in which the methods should be translatedapiId- the methods are loaded based on this API-ID (this might be an another referenced APImode- translation direction- Throws:
AppException- when something goes wrong
-
translateMethodIds
public void translateMethodIds(API api, APIFilter.METHOD_TRANSLATION mode) throws AppException
Translates the methodIds of the given api. The operations are loaded from the API-Manager based on the api.getId()- Parameters:
api- in which the methods should be translatedmode- translation direction- Throws:
AppException- if methods cannot be translated
-
translateMethodIds
public void translateMethodIds(List<API> apis, List<String> apiIds, APIFilter.METHOD_TRANSLATION mode) throws AppException
- Throws:
AppException
-
updateAPIImage
public void updateAPIImage(API api, Image image) throws AppException
- Throws:
AppException
-
addQuotaConfiguration
public void addQuotaConfiguration(API api) throws AppException
- Throws:
AppException
-
addClientOrganizations
public void addClientOrganizations(API api) throws AppException
- Throws:
AppException
-
addClientApplications
public void addClientApplications(API api) throws AppException
- Throws:
AppException
-
createAPIProxy
public API createAPIProxy(API api) throws AppException
- Throws:
AppException
-
updateAPIProxy
public API updateAPIProxy(API api) throws AppException
- Throws:
AppException
-
deleteAPIProxy
public void deleteAPIProxy(API api) throws AppException
- Throws:
AppException
-
deleteBackendAPI
public void deleteBackendAPI(API api) throws AppException
- Throws:
AppException
-
publishAPI
public void publishAPI(API api, String vhost) throws AppException
- Throws:
AppException
-
getAPIDatFile
public byte[] getAPIDatFile(API api, String password) throws AppException
- Throws:
AppException
-
updateAPIStatus
public void updateAPIStatus(API api, String desiredState, String vhost) throws AppException
- Throws:
AppException
-
updateRetirementDate
public void updateRetirementDate(API api, Long retirementDate) throws AppException
- Throws:
AppException
-
importBackendAPI
public API importBackendAPI(API api) throws AppException
- Throws:
AppException
-
upgradeAccessToNewerAPI
public void upgradeAccessToNewerAPI(API apiToUpgradeAccess, API referenceAPI) throws AppException
- Throws:
AppException
-
upgradeAccessToNewerAPI
public boolean upgradeAccessToNewerAPI(API apiToUpgradeAccess, API referenceAPI, Boolean deprecateRefApi, Boolean retireRefApi, Long retirementDateRefAPI) throws AppException
- Throws:
AppException
-
grantClientOrganization
public void grantClientOrganization(List<Organization> grantAccessToOrgs, API api, boolean allOrgs) throws AppException
- Throws:
AppException
-
-