| Package | Description |
|---|---|
| org.wso2.carbon.appmgt.api | |
| org.wso2.carbon.appmgt.api.model |
| Modifier and Type | Class and Description |
|---|---|
class |
AppMgtAuthorizationFailedException
This is the custom exception class to be thrown when the user tries to access/update a resource but the user does not
have enough permission
|
class |
AppMgtResourceAlreadyExistsException
This is the custom exception class to be thrown when a new resource which is attempted to add conflicts
with an already existing resource.
|
class |
AppMgtResourceNotFoundException
This is the custom exception class to be thrown when required resource is not found.
|
| Modifier and Type | Method and Description |
|---|---|
void |
APIProvider.addAPIDefinitionContent(APIIdentifier identifier,
String documentationName,
String text)
This method used to update the WebApp definition content - Swagger
|
String |
APIConsumer.addApplication(Application application,
String userId)
Adds an application
|
void |
APIProvider.addDocumentation(APIIdentifier apiId,
Documentation documentation)
Adds Documentation to an WebApp
|
void |
APIProvider.addDocumentationContent(APIIdentifier identifier,
String documentationName,
String text)
This method used to save the documentation content
|
void |
APIProvider.addFileToDocumentation(WebApp appId,
Documentation documentation,
String filename,
InputStream content,
String contentType)
Add a file to a document of source type FILE
|
String |
APIManager.addIcon(String resourcePath,
Icon icon)
Associates the given icon image with the specified path.
|
void |
APIManager.addSubscriber(Subscriber subscriber)
Creates a new subscriber.
|
String |
APIConsumer.addSubscription(APIIdentifier identifier,
String subscriptionType,
String userId,
int applicationId,
String trustedIdp)
Add new Subscriber
|
void |
APIConsumer.addSubscription(String subscriberName,
WebApp webApp,
String applicationName) |
void |
APIProvider.addTags(String appType,
String appId,
List<String> tags)
Add tags to a given application
|
void |
APIProvider.addTier(Tier tier) |
void |
APIConsumer.addToFavouriteApps(APIIdentifier identifier,
String username,
int tenantIdOfUser,
int tenantIdOfStore)
Add the given app as favourite app for given user.
|
void |
APIProvider.addWebApp(WebApp api)
Adds a new WebApp to the Store
|
void |
APIProvider.changeAPIStatus(WebApp api,
APIStatus status,
String userId,
boolean updateGatewayConfig) |
void |
APIProvider.changeLifeCycleStatus(String appType,
String appId,
String action)
Change the lifecycle status of a given application
|
void |
APIManager.cleanup()
Cleans up any resources acquired by this APIManager instance.
|
void |
APIProvider.copyAllDocumentation(APIIdentifier apiId,
String toVersion)
Copies current Documentation into another version of the same WebApp.
|
void |
APIProvider.copyWebappDocumentations(WebApp api,
String newVersion)
Copy web applications documentations
|
IdentityApplicationManagementAdapter |
IdentityApplicationManagementFactory.createAdapter(String backendServerURL,
String authCookie)
Returns an adapter for the given backend URL
|
String |
APIProvider.createMobileApp(MobileApp mobileApp)
Adds a new Mobile Application to the Store
|
String |
APIProvider.createNewVersion(App app)
Creates a new versions using the attributes (inlcuding the new version number) of the given app.
|
String |
APIProvider.createWebApp(WebApp webApp)
Add new webapp
|
boolean |
APIProvider.deleteApp(APIIdentifier identifier,
SSOProvider ssoProvider,
String authorizedAdminCookie)
Delete an WebApp
|
boolean |
APIProvider.deleteBusinessOwner(int businessOwnerId)
Delete a given business owner.
|
boolean |
APIProvider.deleteEntitlementPolicyPartial(int policyPartialId,
String author)
Delete entitlement policy partial
|
void |
APIProvider.generateEntitlementPolicies(APIIdentifier apiIdentifier,
String authorizedAdminCookie)
Generates entitlement policies for the given app.
|
String |
APIProvider.generateOneTimeDownloadLink(String appId)
Generate generated one-time download link URL
|
APIKey |
APIManager.getAccessTokenData(String accessToken)
Return information related to a specific access token
|
List<WebApp> |
APIManager.getAllAPIs()
Returns a list of all existing APIs by all providers.
|
UserApplicationAPIUsage[] |
APIProvider.getAllAPIUsageByProvider(String providerId)
Returns usage details of all APIs published by a provider
|
List<Documentation> |
APIManager.getAllDocumentation(APIIdentifier appId)
Returns a list of documentation attached to a particular WebApp
|
List<Documentation> |
APIManager.getAllDocumentation(APIIdentifier apiId,
String loggedUserName)
Returns a list of documentation attached to a particular WebApp
|
String[] |
APIProvider.getAllowedLifecycleActions(String appType,
String appId)
Get allowed lifecycle actions to perform on a given application
|
Map<String,Object> |
APIConsumer.getAllPaginatedPublishedAPIs(String tenantDomain,
int start,
int end)
Returns a paginated list of all published APIs.
|
Set<Provider> |
APIProvider.getAllProviders()
Returns a list of all #
org.wso2.carbon.apimgt.api.model.Provider available on the system. |
Set<WebApp> |
APIConsumer.getAllPublishedAPIs(String tenantDomain)
Returns a list of all published APIs.
|
Set<Tag> |
APIProvider.getAllTags(String appType)
Retrieve all tags for a given application type
|
Set<Tag> |
APIConsumer.getAllTags(String tenantDomain)
Get all tags of published Apps
|
Set<Tag> |
APIProvider.getAllTags(String appType,
String appId)
Retrieve all tags for a given application
|
Set<Tag> |
APIConsumer.getAllTags(String tenantDomain,
String assetType,
Map<String,String> attributeMap) |
List<WebApp> |
APIProvider.getAllWebApps()
Get the all web apps
|
List<WebApp> |
APIProvider.getAllWebApps(String tenantDomain)
Get the all web apps of tenant
|
WebApp |
APIManager.getAPI(APIIdentifier identifier)
Returns details of an WebApp
|
List<WebApp> |
APIProvider.getAPIsByProvider(String providerId)
Get a list of APIs published by the given provider.
|
long |
APIProvider.getAPISubscriptionCountByAPI(APIIdentifier identifier)
this method returns the Set
|
Set<WebApp> |
APIConsumer.getAPIsWithTag(String tag)
Returns a list of #
org.wso2.carbon.apimgt.api.model.API bearing the selected tag |
Set<String> |
APIManager.getAPIVersions(String providerName,
String apiName)
Returns a set of WebApp versions for the given provider and WebApp name
|
WebApp |
APIProvider.getAppDetailsFromUUID(String uuid)
Get WebApp basic details by app uuid.
|
Application[] |
APIConsumer.getApplications(Subscriber subscriber)
Returns a list of applications for a given subscriber
|
List<WebApp> |
APIProvider.getAppsWithEndpoint(String tenantDomain) |
String |
APIProvider.getAppUUIDbyName(String appName,
String appVersion,
int tenantId) |
List<APIIdentifier> |
APIProvider.getAssociatedApps(int policyPartialId)
Get the apps which use the given policy partial
|
float |
APIConsumer.getAverageRating(String uuid,
String assetType)
Get average rating of an App by UUID
|
BusinessOwner |
APIProvider.getBusinessOwner(int businessOwnerId)
Retrieve business owner by given id.
|
BusinessOwner |
APIConsumer.getBusinessOwner(int businessOwnerId)
Retrieve business owner by given id.
|
BusinessOwner |
APIConsumer.getBusinessOwnerForAppStore(int businessOwnerId,
int appTenantId)
Retrieve business owner for a given business owner id.
|
int |
APIProvider.getBusinessOwnerId(String businessOwnerName,
String businessOwnerEmail)
Get business owner id by business owner name and email.
|
List<String> |
APIConsumer.getBusinessOwnerIdsBySearchPrefix(String searchPrefix,
int tenantId)
Search business owner.
|
List<BusinessOwner> |
APIProvider.getBusinessOwners()
Get all business owners.
|
int |
APIProvider.getBusinessOwnersCount()
Get the count of business owners.
|
List<String> |
APIProvider.getCustomInSequences()
Get the list of Custom InSequences.
|
List<String> |
APIProvider.getCustomOutSequences()
Get the list of Custom OutSequences.
|
String |
APIProvider.getDefaultVersion(String appName,
String providerName,
AppDefaultVersion appStatus)
Get WebApp default version details.
|
Set<String> |
APIConsumer.getDeniedTiers()
Returns a list of Tiers denied for the current user
|
Documentation |
APIManager.getDocumentation(APIIdentifier apiId,
DocumentationType docType,
String docName)
Returns the specified document attached to the given WebApp
|
Documentation |
APIManager.getDocumentation(String docId,
String requestedTenantDomain)
Get a documentation by artifact Id
|
String |
APIManager.getDocumentationContent(APIIdentifier identifier,
String documentationName)
This method used to get the content of a documentation
|
String |
APIProvider.getEntitlementPolicy(String policyId,
String authorizedAdminCookie)
Get entitlement policy content by policyId
|
Set<AppStore> |
APIProvider.getExternalAppStores(APIIdentifier identifier)
Get the external app stores for given identifier.
|
List<APIIdentifier> |
APIConsumer.getFavouriteApps(String username,
int tenantIdOfUser,
int tenantIdOfStore,
WebAppSortOption sortOption)
Returns favourite apps of given user for given tenant store based on given sorting option.
|
Icon |
APIManager.getIcon(APIIdentifier identifier)
Retrieves the icon image associated with a particular WebApp as a stream.
|
List<LifeCycleEvent> |
APIProvider.getLifeCycleEvents(APIIdentifier apiId)
Returns the details of all the life-cycle changes done per WebApp.
|
MobileApp |
APIProvider.getMobileApp(String uuid)
Returns details of a Mobile App
|
OneTimeDownloadLink |
APIProvider.getOneTimeDownloadLinkDetails(String UUID)
Retrieve one-time download link details from database
|
Map<String,Object> |
APIConsumer.getPaginatedAPIsWithTag(String tag,
int start,
int end)
Returns a paginated list of #
org.wso2.carbon.apimgt.api.model.API bearing the selected tag |
List<EntitlementPolicyGroup> |
APIProvider.getPolicyGroupListByApplication(int appId)
Get Application wise policy group list
|
EntitlementPolicyPartial |
APIProvider.getPolicyPartial(int policyPartialId)
Get policyPartial content
|
Provider |
APIProvider.getProvider(String providerName)
get details of provider
|
Set<WebApp> |
APIConsumer.getPublishedAPIsByProvider(String providerId,
int limit)
/** Get a list of published APIs by the given provider.
|
Set<WebApp> |
APIConsumer.getPublishedAPIsByProvider(String providerId,
String loggedUser,
int limit)
Get a list of published APIs by the given provider.
|
Set<WebApp> |
APIConsumer.getRecentlyAddedAPIs(int limit,
String tenantDomain)
Get recently added APIs to the store
|
List<EntitlementPolicyPartial> |
APIProvider.getSharedPolicyPartialsList()
Get the list of shared policy partials
|
Set<SubscribedAPI> |
APIConsumer.getSubscribedAPIs(Subscriber subscriber)
Returns a set of SubscribedAPI purchased by the given Subscriber
|
Set<SubscribedAPI> |
APIConsumer.getSubscribedAPIs(Subscriber subscriber,
String applicationName)
Returns a set of SubscribedAPIs filtered by the given application name.
|
Map<String,List> |
APIProvider.getSubscribedAPPsByUsers(String fromDate,
String toDate)
This method returns the subscribed apps by users
|
Set<SubscribedAPI> |
APIConsumer.getSubscribedIdentifiers(Subscriber subscriber,
APIIdentifier identifier) |
Subscriber |
APIManager.getSubscriber(int subscriberId)
Returns the subscriber for the given subscriber id.
|
Subscriber |
APIConsumer.getSubscriber(String subscriberId) |
Set<WebApp> |
APIManager.getSubscriberAPIs(Subscriber subscriber)
Returns a set of APIs purchased by the given Subscriber
|
Set<Subscriber> |
APIProvider.getSubscribersOfAPI(APIIdentifier identifier)
Returns full list of Subscribers of an WebApp
|
Set<Subscriber> |
APIProvider.getSubscribersOfProvider(String providerId)
Get a list of all the consumers for all APIs
|
Subscription |
APIConsumer.getSubscription(APIIdentifier apiIdentifier,
int applicationId,
String subscriptionType)
Get the subscription for given search criteria.
|
Map<String,Long> |
APIProvider.getSubscriptionCountByAPPs(String provider,
String fromDate,
String toDate,
boolean isSubscriptionOn)
This method returns the subscription count of apps for given period.
|
Set |
APIProvider.getTierPermissions()
Get the list of Tier Permissions
|
Set<Tier> |
APIManager.getTiers()
Returns a list of pre-defined #
org.wso2.carbon.apimgt.api.model.Tier in the system. |
Set<Tier> |
APIManager.getTiers(String tenantDomain)
Returns a list of pre-defined #
org.wso2.carbon.apimgt.api.model.Tier in the system. |
Set<WebApp> |
APIConsumer.getTopRatedAPIs(int limit)
Returns top rated APIs
|
String |
APIProvider.getTrackingID(String uuid)
Retrieves TRACKING_CODE sequences from APM_APP Table
|
List<APIIdentifier> |
APIConsumer.getUserAccessibleApps(String username,
int tenantIdOfUser,
int tenantIdOfStore,
WebAppSortOption sortOption,
boolean treatAsSite)
Returns the accessible web apps(anonymous + subscribed) of given user for given tenant store.
|
WebApp |
APIProvider.getWebApp(String uuid)
Returns details of an WebApp
|
WebApp |
APIConsumer.getWebApp(String uuid)
Returns details of an WebApp
|
int |
APIProvider.getWebAppId(String uuid)
Get web application id
|
boolean |
APIConsumer.hasFavouritePage(String username,
int tenantIdOfUser,
int tenantIdOfStore)
Checks whether user has selected favourite page as default landing page in store.
|
boolean |
APIProvider.hasMoreVersions(APIIdentifier identifier)
Check if the given WebApp has any other versions in any lifecycle state.
|
void |
EntitlementService.init()
Initializes entitlement service.
|
boolean |
APIManager.isAPIAvailable(APIIdentifier identifier)
Checks the Availability of given APIIdentifier
|
boolean |
APIManager.isApplicationTokenExists(String accessToken)
Check whether an application access token is already persist in database.
|
boolean |
APIConsumer.isApplicationTokenExists(String accessToken)
Check whether an application access token is already persist in database.
|
boolean |
APIManager.isApplicationTokenRevoked(String accessToken)
Check whether an application access token is already revoked.
|
boolean |
APIManager.isContextExist(String context)
Checks whether the given WebApp context is already registered in the system
|
boolean |
APIProvider.isDefaultVersion(APIIdentifier identifier)
Check if the given WebApp version is the default version.
|
boolean |
APIManager.isDocumentationExist(APIIdentifier identifier,
String docName)
Checks whether the given document already exists for the given app
|
boolean |
APIConsumer.isFavouriteApp(APIIdentifier identifier,
String username,
int tenantIdOfUser,
int tenantIdOfStore)
Check whether given app exists in the favourite app list of the user in given tenant store.
|
boolean |
EntitlementService.isPermitted(EntitlementDecisionRequest request)
Check whether the request is permitted ot not.
|
boolean |
APIConsumer.isSubscribed(APIIdentifier apiIdentifier,
String userId)
Returns true if a given user has subscribed to the WebApp
|
boolean |
APIConsumer.isSubscribedToMobileApp(String userId,
String appId) |
boolean |
APIConsumer.isTierDeneid(String tierName)
Check whether given Tier is denied for the user
|
int |
APIProvider.moveSubscriptions(APIIdentifier fromIdentifier,
APIIdentifier toIdentifier)
Moves subscriptions from one app (@{code fromApp}) to another app (
toApp) |
void |
APIConsumer.removeAPISubscription(APIIdentifier identifier,
String userId,
String applicationName) |
void |
APIProvider.removeBinaryFromStorage(String fileName)
Remove mobile application binary file from storage
|
void |
APIProvider.removeDocumentation(APIIdentifier appId,
String documentId)
Removes a given documentation
|
void |
APIProvider.removeDocumentation(APIIdentifier apiId,
String docType,
String docName)
Removes a given documentation
|
void |
APIConsumer.removeFavouritePage(String username,
int tenantIdOfUser,
int tenantIdOfStore)
Remove the favourite page from default landing page in store.
|
void |
APIConsumer.removeFromFavouriteApps(APIIdentifier identifier,
String username,
int tenantIdOfUser,
int tenantIdOfStore)
Remove the given app from favourite app list of given user.
|
void |
APIConsumer.removeSubscriber(APIIdentifier identifier,
String userId)
Remove a Subscriber
|
void |
APIConsumer.removeSubscription(APIIdentifier identifier,
String userId,
int applicationId)
Unsubscribe the specified user from the specified WebApp in the given application
|
void |
APIProvider.removeTag(String appType,
String appId,
List<String> tags)
Remove tag from a given application
|
void |
APIProvider.removeTier(Tier tier) |
int |
APIProvider.saveBusinessOwner(BusinessOwner businessOwner)
Save business owner.
|
int |
APIProvider.saveEntitlementPolicyPartial(String policyPartialName,
String policyPartial,
boolean isSharedPartial,
String policyAuthor,
String policyPartialDescription)
Save the entitlement policy partial
|
Map<Integer,APIKey> |
APIManager.searchAccessToken(String searchType,
String searchTerm,
String loggedInUser)
/**
Return information related to access token by a searchTerm and searchType *
|
Set<WebApp> |
APIConsumer.searchAPI(String searchTerm,
String searchType,
String tenantDomain) |
List<WebApp> |
APIProvider.searchAPIs(String searchTerm,
String searchType,
String providerId)
Search WebApp
|
List<App> |
APIProvider.searchApps(String appType,
Map<String,String> searchTerms)
Searches and returns the apps for the given search terms.
|
List<BusinessOwner> |
APIProvider.searchBusinessOwners(int startIndex,
int pageSize,
String searchKey)
Search business owners with pagination.
|
List<APIIdentifier> |
APIConsumer.searchFavouriteApps(String username,
int tenantIdOfUser,
int tenantIdOfStore,
WebAppSearchOption searchOption,
String searchValue)
Returns favourite apps of user for given tenant store based on given search criteria.
|
Map<String,Object> |
APIConsumer.searchPaginatedAPIs(String searchTerm,
String searchType,
String tenantDomain,
int start,
int end) |
List<App> |
APIProvider.searchPublishedApps(String appType,
Map<String,String> searchTerms)
Search and return the published apps for the given search terms.
|
List<APIIdentifier> |
APIConsumer.searchUserAccessibleApps(String username,
int tenantIdOfUser,
int tenantIdOfStore,
boolean treatAsSite,
WebAppSearchOption searchOption,
String searchValue)
Returns accessible apps(anonymous + subscribed) of given user based on give search option.
|
void |
APIConsumer.setFavouritePage(String username,
int tenantIdOfUser,
int tenantIdOfStore)
Add favourite page as default landing page in store.
|
boolean |
APIProvider.subscribeMobileApp(String userId,
String appId)
Add mobile application subscription for a given user
|
boolean |
APIProvider.unSubscribeMobileApp(String userId,
String appId)
Remove mobile application subscription for a given user
|
void |
APIProvider.updateAPI(WebApp api,
String authorizedAdminCookie)
Updates an existing WebApp.
|
void |
APIProvider.updateApp(App app)
Updates the given app.
|
void |
APIConsumer.updateApplication(Application application)
Updates the details of the specified user application.
|
void |
APIProvider.updateAppsInExternalAppStores(WebApp webApp,
Set<AppStore> appStores)
Update (add/delete) the the app in external stores.
|
boolean |
APIProvider.updateBusinessOwner(BusinessOwner businessOwner)
Update business owner.
|
void |
APIProvider.updateDocumentation(APIIdentifier apiId,
Documentation documentation)
Updates a given documentation
|
void |
APIProvider.updateEntitlementPolicies(List<EntitlementPolicy> policies,
String authorizedAdminCookie)
Updates given entitlement policies.
|
boolean |
APIProvider.updateEntitlementPolicyPartial(int policyPartialId,
String policyPartial,
String author,
boolean isShared,
String policyPartialDescription,
String authorizedAdminCookie)
Update the policy partial
|
void |
APIProvider.updateMobileApp(MobileApp mobileApp)
Updates an existing Mobile Application.
|
void |
APIProvider.updateOneTimeDownloadLinkStatus(OneTimeDownloadLink oneTimeDownloadLink)
Update one-time download link details in database
|
void |
APIManager.updateSubscriber(Subscriber subscriber)
Updates the details of the given subscriber.
|
void |
APIProvider.updateSubscription(APIIdentifier apiId,
String subStatus,
int appId)
Update the subscription status
|
void |
APIConsumer.updateSubscriptions(APIIdentifier identifier,
String userId,
int applicationId)
This method is to update the subscriber.
|
void |
APIProvider.updateTier(Tier tier) |
void |
APIProvider.updateTierPermissions(String tierName,
String permissionType,
String roles)
Update the Tier Permissions
|
void |
APIProvider.updateWebAppSynapse(WebApp api)
redeploy the synapse when webapp is being edited
|
String |
APIProvider.uploadImage(FileContent fileContent) |
EntitlementPolicyValidationResult |
APIProvider.validateEntitlementPolicyPartial(String policyPartial)
Validates the given entitlement policy partial.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExternalAppStorePublisher.deleteFromStore(WebApp webApp,
AppStore store)
Delete WebApp from external store.
|
void |
ExternalAppStorePublisher.publishToStore(WebApp webApp,
AppStore store)
Publish WebApp to external store.
|
| Constructor and Description |
|---|
APIIdentifier(String apiId) |
Copyright © 2017 WSO2. All rights reserved.