public interface APIProvider extends APIManager
| Modifier and Type | Method and Description |
|---|---|
void |
addAPIDefinitionContent(APIIdentifier identifier,
String documentationName,
String text)
This method used to update the WebApp definition content - Swagger
|
void |
addDocumentation(APIIdentifier apiId,
Documentation documentation)
Adds Documentation to an WebApp
|
void |
addDocumentationContent(APIIdentifier identifier,
String documentationName,
String text)
This method used to save the documentation content
|
void |
addTier(Tier tier) |
void |
addWebApp(WebApp api)
Adds a new WebApp to the Store
|
void |
changeAPIStatus(WebApp api,
APIStatus status,
String userId,
boolean updateGatewayConfig)
Change the lifecycle state of the specified WebApp
|
void |
copyAllDocumentation(APIIdentifier apiId,
String toVersion)
Copies current Documentation into another version of the same WebApp.
|
void |
copyWebappDocumentations(WebApp api,
String newVersion)
Copy web applications documentations
|
boolean |
deleteApp(APIIdentifier identifier,
SSOProvider ssoProvider)
Delete an WebApp
|
boolean |
deleteEntitlementPolicyPartial(int policyPartialId,
String author)
Delete entitlement policy partial
|
void |
generateEntitlementPolicies(APIIdentifier apiIdentifier)
Generates entitlement policies for the given app.
|
UserApplicationAPIUsage[] |
getAllAPIUsageByProvider(String providerId)
Returns usage details of all APIs published by a provider
|
Set<Provider> |
getAllProviders()
Returns a list of all #
org.wso2.carbon.apimgt.api.model.Provider available on the system. |
List<WebApp> |
getAllWebApps()
Get the all web apps
|
List<WebApp> |
getAllWebApps(String tenantDomain)
Get the all web apps of tenant
|
List<WebApp> |
getAPIsByProvider(String providerId)
Get a list of APIs published by the given provider.
|
long |
getAPISubscriptionCountByAPI(APIIdentifier identifier)
this method returns the Set
|
Usage |
getAPIUsageBySubscriber(APIIdentifier apiIdentifier,
String consumerEmail)
Shows how a given consumer uses the given WebApp.
|
Usage |
getAPIUsageByUsers(String providerId,
String apiName)
Return Usage of given provider and WebApp
|
List<EntitlementPolicyPartial> |
getApplicationPolicyPartialList(int applicationId)
Get the list of policy partials of an given application
|
List<WebApp> |
getAppsWithEndpoint(String tenantDomain) |
List<APIIdentifier> |
getAssociatedApps(int policyPartialId)
Get the apps which use the given policy partial
|
List<String> |
getCustomInSequences()
Get the list of Custom InSequences.
|
List<String> |
getCustomOutSequences()
Get the list of Custom OutSequences.
|
String |
getEntitlementPolicy(String policyId)
Get entitlement policy content from policyId
|
List<LifeCycleEvent> |
getLifeCycleEvents(APIIdentifier apiId)
Returns the details of all the life-cycle changes done per WebApp.
|
List<EntitlementPolicyGroup> |
getPolicyGroupListByApplication(int appId)
Get Application wise policy group list
|
EntitlementPolicyPartial |
getPolicyPartial(int policyPartialId)
Get policyPartial content
|
Provider |
getProvider(String providerName)
get details of provider
|
List<EntitlementPolicyPartial> |
getSharedPolicyPartialsList()
Get the list of shared policy partials
|
Map<String,List> |
getSubscribedAPPsByUsers(String fromDate,
String toDate)
This method returns the subscribed apps by users
|
Set<Subscriber> |
getSubscribersOfAPI(APIIdentifier identifier)
Returns full list of Subscribers of an WebApp
|
Set<Subscriber> |
getSubscribersOfProvider(String providerId)
Get a list of all the consumers for all APIs
|
Map<String,Long> |
getSubscriptionCountByAPPs(String provider,
String fromDate,
String toDate)
This method returns the subscription count of apps for given period.
|
Set |
getTierPermissions()
Get the list of Tier Permissions
|
String |
getTrackingID(String uuid)
Retrieves TRACKING_CODE sequences from APM_APP Table
|
Usage |
getUsageByAPI(APIIdentifier apiIdentifier)
Return Usage of given APIIdentifier
|
int |
getWebAppId(String uuid)
Get web application id
|
int |
moveSubscriptions(APIIdentifier fromIdentifier,
APIIdentifier toIdentifier)
Moves subscriptions from one app (@{code fromApp}) to another app (
toApp) |
void |
removeDocumentation(APIIdentifier apiId,
String docType,
String docName)
Removes a given documentation
|
void |
removeTier(Tier tier) |
int |
saveEntitlementPolicyPartial(String policyPartialName,
String policyPartial,
boolean isSharedPartial,
String policyAuthor,
String policyPartialDescription)
Save the entitlement policy partial
|
List<WebApp> |
searchAPIs(String searchTerm,
String searchType,
String providerId)
Search WebApp
|
void |
updateAPI(WebApp api)
Updates an existing WebApp.
|
void |
updateDocumentation(APIIdentifier apiId,
Documentation documentation)
Updates a given documentation
|
void |
updateEntitlementPolicies(List<EntitlementPolicy> policies)
Updates given entitlement policies.
|
boolean |
updateEntitlementPolicyPartial(int policyPartialId,
String policyPartial,
String author,
boolean isShared,
String policyPartialDescription)
Update the policy partial
|
void |
updateSubscription(APIIdentifier apiId,
String subStatus,
int appId)
Update the subscription status
|
void |
updateTier(Tier tier) |
void |
updateTierPermissions(String tierName,
String permissionType,
String roles)
Update the Tier Permissions
|
void |
updateWebAppSynapse(WebApp api)
redeploy the synapse when webapp is being edited
|
EntitlementPolicyValidationResult |
validateEntitlementPolicyPartial(String policyPartial)
Validates the given entitlement policy partial.
|
addIcon, addSubscriber, cleanup, getAccessTokenData, getAllAPIs, getAllDocumentation, getAllDocumentation, getAPI, getAPIVersions, getDocumentation, getDocumentationContent, getIcon, getSubscriber, getSubscriberAPIs, getTiers, getTiers, isAPIAvailable, isApplicationTokenExists, isApplicationTokenRevoked, isContextExist, searchAccessToken, updateSubscriberSet<Provider> getAllProviders() throws AppManagementException
org.wso2.carbon.apimgt.api.model.Provider available on the system.AppManagementException - if failed to get ProvidersList<WebApp> getAPIsByProvider(String providerId) throws AppManagementException
providerId - , provider idAppManagementException - if failed to get set of WebAppSet<Subscriber> getSubscribersOfProvider(String providerId) throws AppManagementException
providerId - if of the providerAppManagementException - if failed to get subscribed APIs of given providerProvider getProvider(String providerName) throws AppManagementException
providerName - name of the providerAppManagementException - if failed to get ProviderUsage getUsageByAPI(APIIdentifier apiIdentifier)
apiIdentifier - APIIdentifierUsage getAPIUsageByUsers(String providerId, String apiName)
providerId - if of the providerapiName - name of the WebAppUserApplicationAPIUsage[] getAllAPIUsageByProvider(String providerId) throws AppManagementException
providerId - Provider IdAppManagementException - If failed to get UserApplicationAPIUsageUsage getAPIUsageBySubscriber(APIIdentifier apiIdentifier, String consumerEmail)
apiIdentifier - APIIdentifierconsumerEmail - E-mal Address of consumerSet<Subscriber> getSubscribersOfAPI(APIIdentifier identifier) throws AppManagementException
identifier - APIIdentifierAppManagementException - if failed to get Subscriberslong getAPISubscriptionCountByAPI(APIIdentifier identifier) throws AppManagementException
identifier - APIIdentifierAppManagementException - if failed to get APISubscriptionCountByAPIMap<String,List> getSubscribedAPPsByUsers(String fromDate, String toDate) throws AppManagementException
fromDate - From datetoDate - To dateAppManagementExceptionList<WebApp> getAppsWithEndpoint(String tenantDomain) throws AppManagementException
AppManagementExceptionvoid addTier(Tier tier) throws AppManagementException
AppManagementExceptionvoid updateTier(Tier tier) throws AppManagementException
AppManagementExceptionvoid removeTier(Tier tier) throws AppManagementException
AppManagementExceptionvoid generateEntitlementPolicies(APIIdentifier apiIdentifier) throws AppManagementException
apiIdentifier - ID of the app.AppManagementException - when entitlement service implementation is unable to generate policies.void updateEntitlementPolicies(List<EntitlementPolicy> policies) throws AppManagementException
policies - Entitlement policies to be updated.AppManagementException - when entitlement service implementation is unable to update policies.String getEntitlementPolicy(String policyId)
policyId - Entitlement policy idint getWebAppId(String uuid) throws AppManagementException
uuid - web application uuidAppManagementExceptionint saveEntitlementPolicyPartial(String policyPartialName, String policyPartial, boolean isSharedPartial, String policyAuthor, String policyPartialDescription) throws AppManagementException
policyPartialName - Name of the policy partialpolicyPartial - policy contentisSharedPartial - policy statuspolicyAuthor - author of the policypolicyPartialDescription - policy descriptionAppManagementExceptionboolean updateEntitlementPolicyPartial(int policyPartialId,
String policyPartial,
String author,
boolean isShared,
String policyPartialDescription)
throws AppManagementException
policyPartialId - policy partial idpolicyPartial - policy contentauthor - author of the partialisShared - policy statuspolicyPartialDescription - policy descriptionAppManagementExceptionEntitlementPolicyPartial getPolicyPartial(int policyPartialId) throws AppManagementException
policyPartialId - AppManagementExceptionList<APIIdentifier> getAssociatedApps(int policyPartialId) throws AppManagementException
policyPartialId - policy partial idAppManagementExceptionboolean deleteEntitlementPolicyPartial(int policyPartialId,
String author)
throws AppManagementException
policyPartialId - author - author of the partialAppManagementExceptionList<EntitlementPolicyPartial> getApplicationPolicyPartialList(int applicationId) throws AppManagementException
applicationId - AppManagementExceptionList<EntitlementPolicyPartial> getSharedPolicyPartialsList() throws AppManagementException
AppManagementExceptionEntitlementPolicyValidationResult validateEntitlementPolicyPartial(String policyPartial) throws AppManagementException
policyPartial - AppManagementExceptionvoid addWebApp(WebApp api) throws AppManagementException
api - WebAppAppManagementException - if failed to add WebAppvoid updateAPI(WebApp api) throws AppManagementException
api - WebAppAppManagementException - if failed to update WebAppvoid changeAPIStatus(WebApp api, APIStatus status, String userId, boolean updateGatewayConfig) throws AppManagementException
api - The WebApp whose status to be updatedstatus - New status of the WebAppuserId - User performing the WebApp state changeupdateGatewayConfig - Whether the changes should be pushed to the WebApp gateway or notAppManagementException - on errorvoid updateWebAppSynapse(WebApp api) throws AppManagementException
api - The WebApp whose status to be updatedAppManagementException - on errorvoid copyWebappDocumentations(WebApp api, String newVersion) throws AppManagementException
api - The WebApp id of the copying docsnewVersion - The version of the new WebAppAppManagementException - If an error occurs while trying to create
the new version of the WebAppvoid removeDocumentation(APIIdentifier apiId, String docType, String docName) throws AppManagementException
apiId - APIIdentifierdocType - the type of the documentationdocName - name of the documentAppManagementException - if failed to remove documentationvoid addDocumentation(APIIdentifier apiId, Documentation documentation) throws AppManagementException
apiId - APIIdentifierdocumentation - DocumentationAppManagementException - if failed to add documentationvoid addDocumentationContent(APIIdentifier identifier, String documentationName, String text) throws AppManagementException
identifier, - WebApp identifierdocumentationName, - name of the inline documentationtext, - content of the inline documentationAppManagementException - if failed to add the document as a resource to registryvoid addAPIDefinitionContent(APIIdentifier identifier, String documentationName, String text) throws AppManagementException
identifier, - WebApp identifierdocumentationName, - name of the inline documentationtext, - content of the inline documentationorg.wso2.carbon.apimgt.api.APIManagementException - if failed to add the document as a resource to registryAppManagementExceptionvoid updateDocumentation(APIIdentifier apiId, Documentation documentation) throws AppManagementException
apiId - APIIdentifierdocumentation - DocumentationAppManagementException - if failed to update docsvoid copyAllDocumentation(APIIdentifier apiId, String toVersion) throws AppManagementException
toVersion - Version to which Documentation should be copied.apiId - id of the APIIdentifierAppManagementException - if failed to copy docsList<LifeCycleEvent> getLifeCycleEvents(APIIdentifier apiId) throws AppManagementException
apiId - id of the APIIdentifierAppManagementException - if failed to copy docsList<WebApp> searchAPIs(String searchTerm, String searchType, String providerId) throws AppManagementException
searchTerm - Search TermsearchType - Search TypeAppManagementExceptionvoid updateSubscription(APIIdentifier apiId, String subStatus, int appId) throws AppManagementException
apiId - WebApp IdentifiersubStatus - Subscription StatusappId - Application Id *org.wso2.carbon.apimgt.api.APIManagementException - If failed to update subscription statusAppManagementExceptionvoid updateTierPermissions(String tierName, String permissionType, String roles) throws AppManagementException
tierName - Tier NamepermissionType - Permission Typeroles - Rolesorg.wso2.carbon.apimgt.api.APIManagementException - If failed to update subscription statusAppManagementExceptionSet getTierPermissions() throws AppManagementException
org.wso2.carbon.apimgt.api.APIManagementException - If failed to update subscription statusAppManagementExceptionint moveSubscriptions(APIIdentifier fromIdentifier, APIIdentifier toIdentifier) throws AppManagementException
toApp)fromIdentifier - subscriptions of this apptoIdentifier - will be moved into this appAppManagementExceptionboolean deleteApp(APIIdentifier identifier, SSOProvider ssoProvider) throws AppManagementException
identifier - APIIdentifierssoProvider - SSOProviderAppManagementException - if failed to remove the WebAppList<String> getCustomInSequences() throws AppManagementException
AppManagementExceptionList<String> getCustomOutSequences() throws AppManagementException
AppManagementExceptionList<WebApp> getAllWebApps(String tenantDomain) throws AppManagementException
AppManagementExceptionList<WebApp> getAllWebApps() throws AppManagementException
AppManagementExceptionMap<String,Long> getSubscriptionCountByAPPs(String provider, String fromDate, String toDate) throws AppManagementException
provider - provider of appfromDate - From datetoDate - To dateAppManagementExceptionList<EntitlementPolicyGroup> getPolicyGroupListByApplication(int appId) throws AppManagementException
appId - Application IdAppManagementException - on errorString getTrackingID(String uuid) throws AppManagementException
uuid - : Application UUIDAppManagementExceptionCopyright © 2016 WSO2. All rights reserved.