Package com.axway.apim.adapter.apis
Class APIManagerQuotaAdapter
- java.lang.Object
-
- com.axway.apim.adapter.apis.APIManagerQuotaAdapter
-
public class APIManagerQuotaAdapter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAPIManagerQuotaAdapter.Quota
-
Constructor Summary
Constructors Constructor Description APIManagerQuotaAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIQuotagetDefaultQuota(APIManagerQuotaAdapter.Quota quotaType)APIQuotagetQuota(String quotaId, API api, boolean addRestrictedAPI, boolean ignoreSystemQuotas)Returns the configured quotas for the quota ID from the API manager.voidsaveQuota(APIQuota quotaConfig, String quotaId)
-
-
-
Method Detail
-
getQuota
public APIQuota getQuota(String quotaId, API api, boolean addRestrictedAPI, boolean ignoreSystemQuotas) throws AppException
Returns the configured quotas for the quota ID from the API manager.- Parameters:
quotaId- is either system or application default or a concrete quota IDapi- is the quote for an API, then it can be passed here directly. This is then bound to the quote as restrictedAPIaddRestrictedAPI- If false, then no effort is made to load the restricted api and bind it to the quote during deserialization. In this case the api should be passed. Defaults to trueignoreSystemQuotas- If true, then no quotas are returned with the switch: system: true. This is useful if quotas for applications are requested and they should not contain application default quotas.- Returns:
- the configured quotas
- Throws:
AppException- is something goes wrong.
-
saveQuota
public void saveQuota(APIQuota quotaConfig, String quotaId) throws AppException
- Throws:
AppException
-
getDefaultQuota
public APIQuota getDefaultQuota(APIManagerQuotaAdapter.Quota quotaType) throws AppException
- Throws:
AppException
-
-