public class UserAwareAPIProvider extends AbstractAPIManager
appMDAO, appRepository, log, registry, tenantDomain, tenantId| Modifier and Type | Method and Description |
|---|---|
void |
addAPIDefinitionContent(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier,
String documentationName,
String text)
This method used to update the WebApp definition content - Swagger
|
void |
addDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
org.wso2.carbon.appmgt.api.model.Documentation documentation)
Adds Documentation to an WebApp
|
void |
addDocumentationContent(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier,
String documentationName,
String text)
This method used to save the documentation content
|
void |
addFileToDocumentation(org.wso2.carbon.appmgt.api.model.WebApp webApp,
org.wso2.carbon.appmgt.api.model.Documentation documentation,
String filename,
InputStream content,
String contentType)
Add a file to a document of source type FILE
|
String |
addResourceFile(String resourcePath,
org.wso2.carbon.appmgt.api.model.FileContent resourceFile) |
void |
addTags(String appType,
String appId,
List<String> tags) |
void |
addTier(org.wso2.carbon.appmgt.api.model.Tier tier) |
void |
addWebApp(org.wso2.carbon.appmgt.api.model.WebApp app)
Adds a new WebApp to the Store
|
void |
changeAPIStatus(org.wso2.carbon.appmgt.api.model.WebApp api,
org.wso2.carbon.appmgt.api.model.APIStatus status,
String userId,
boolean updateGatewayConfig) |
void |
changeLifeCycleStatus(String appType,
String appId,
String lifecycleAction)
Change the lifecycle state of a given application
|
void |
checkCreatePermission() |
void |
checkDocumentAddPermission() |
void |
checkDocumentEditPermission() |
void |
checkDocumentRemovePermission() |
void |
checkManageTiersPermission() |
void |
checkPublishPermission() |
void |
checkPublishPermissionTenantMode(String userId) |
void |
checkWebappDeletePermission() |
void |
checkWebappUpdatePermission() |
void |
copyAllDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String toVersion)
Copies current Documentation into another version of the same WebApp.
|
void |
copyWebappDocumentations(org.wso2.carbon.appmgt.api.model.WebApp api,
String newVersion) |
String |
createMobileApp(org.wso2.carbon.appmgt.api.model.MobileApp mobileApp)
Create a new mobile applcation artifact
|
String |
createNewVersion(org.wso2.carbon.appmgt.api.model.App app)
Create new version of the application
|
String |
createWebApp(org.wso2.carbon.appmgt.api.model.WebApp webApp) |
boolean |
deleteApp(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier,
org.wso2.carbon.appmgt.api.model.SSOProvider ssoProvider,
String authorizedAdminCookie)
Delete applicatoion
|
boolean |
deleteBusinessOwner(int businessOwnerId)
Delete a given business owner.
|
boolean |
deleteEntitlementPolicyPartial(int policyPartialId,
String author) |
void |
generateEntitlementPolicies(org.wso2.carbon.appmgt.api.model.APIIdentifier apiIdentifier,
String authorizedAdminCookie)
Generates entitlement policies for the given app.
|
String |
generateOneTimeDownloadLink(String appId)
Generate one-time download link content in Database
|
org.wso2.carbon.appmgt.api.dto.UserApplicationAPIUsage[] |
getAllAPIUsageByProvider(String providerName)
Returns usage details of all APIs published by a provider
|
String[] |
getAllowedLifecycleActions(String appId,
String appType)
Get the available next lifecycle actions of a given application
|
Set<org.wso2.carbon.appmgt.api.model.Provider> |
getAllProviders()
Returns a list of all #
org.wso2.carbon.apimgt.api.model.Provider available on the system. |
Set<org.wso2.carbon.appmgt.api.model.Tag> |
getAllTags(String appType) |
Set<org.wso2.carbon.appmgt.api.model.Tag> |
getAllTags(String appType,
String appId) |
List<org.wso2.carbon.appmgt.api.model.WebApp> |
getAllWebApps() |
List<org.wso2.carbon.appmgt.api.model.WebApp> |
getAllWebApps(String tenantDomain) |
List<org.wso2.carbon.appmgt.api.model.WebApp> |
getAPIsByProvider(String providerId)
Get a list of APIs published by the given provider.
|
List<org.wso2.carbon.appmgt.api.model.WebApp> |
getAPIsByProvider(String providerId,
String appType)
Get a list of APIs published by the given provider.
|
long |
getAPISubscriptionCountByAPI(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
this method returns the Set
|
org.wso2.carbon.appmgt.api.model.Usage |
getAPIUsageBySubscriber(org.wso2.carbon.appmgt.api.model.APIIdentifier apiIdentifier,
String consumerEmail)
Shows how a given consumer uses the given WebApp.
|
org.wso2.carbon.appmgt.api.model.Usage |
getAPIUsageByUsers(String providerId,
String apiName)
Return Usage of given provider and WebApp
|
org.wso2.carbon.appmgt.api.model.WebApp |
getAppDetailsFromUUID(String uuid)
Get WebApp basic details by app uuid.
|
List<org.wso2.carbon.appmgt.api.model.WebApp> |
getAppsWithEndpoint(String tenantDomain) |
String |
getAppUUIDbyName(String appName,
String appVersion,
int tenantId) |
List<org.wso2.carbon.appmgt.api.model.APIIdentifier> |
getAssociatedApps(int policyPartialId) |
org.wso2.carbon.appmgt.api.model.BusinessOwner |
getBusinessOwner(int businessOwnerId)
Retrieve business owner by given id.
|
int |
getBusinessOwnerId(String businessOwnerName,
String businessOwnerEmail)
Get Business owner id by business owner name and email.
|
List<org.wso2.carbon.appmgt.api.model.BusinessOwner> |
getBusinessOwners()
Get all business owners.
|
int |
getBusinessOwnersCount()
Get the count of business owners.
|
List<String> |
getCustomInSequences()
Get stored custom inSequences from governanceSystem registry
|
List<String> |
getCustomOutSequences()
Get stored custom outSequences from governanceSystem registry
|
String |
getDefaultVersion(String appName,
String providerName,
org.wso2.carbon.appmgt.api.model.AppDefaultVersion appStatus)
Get web app default version.
|
String |
getEntitlementPolicy(String policyId,
String authorizedAdminCookie)
Get entitlement policy content from policy id.
|
Set<org.wso2.carbon.appmgt.api.model.AppStore> |
getExternalAppStores(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier) |
String |
getGatewayEndpoint() |
List<org.wso2.carbon.appmgt.api.model.LifeCycleEvent> |
getLifeCycleEvents(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId)
Returns the details of all the life-cycle changes done per api
|
org.wso2.carbon.appmgt.api.model.MobileApp |
getMobileApp(String uuid)
Retrieve webapp for the given uuid
|
org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink |
getOneTimeDownloadLinkDetails(String UUID)
Retrieve one-time download link details from database
|
List<org.wso2.carbon.appmgt.api.model.EntitlementPolicyGroup> |
getPolicyGroupListByApplication(int appId)
Get Policy Groups Application wise
|
org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicyPartial |
getPolicyPartial(int policyPartialId) |
org.wso2.carbon.appmgt.api.model.Provider |
getProvider(String providerName)
get details of provider
|
List<org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicyPartial> |
getSharedPolicyPartialsList() |
Map<String,List> |
getSubscribedAPPsByUsers(String fromDate,
String toDate) |
Set<org.wso2.carbon.appmgt.api.model.Subscriber> |
getSubscribersOfAPI(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
Returns full list of Subscribers of an WebApp
|
Set<org.wso2.carbon.appmgt.api.model.Subscriber> |
getSubscribersOfProvider(String providerId)
Get a list of all the consumers for all APIs
|
Map<String,Long> |
getSubscriptionCountByAPPs(String provider,
String fromDate,
String toDate,
boolean isSubscriptionOn) |
Set<TierPermissionDTO> |
getTierPermissions() |
String |
getTrackingID(String uuid)
Retrieves TRACKING_CODE sequences from APM_APP Table
|
org.wso2.carbon.appmgt.api.model.Usage |
getUsageByAPI(org.wso2.carbon.appmgt.api.model.APIIdentifier apiIdentifier)
Return Usage of given APIIdentifier
|
org.wso2.carbon.appmgt.api.model.WebApp |
getWebApp(String uuid)
Retrieve webapp for the given uuid
|
int |
getWebAppId(String uuid) |
boolean |
hasMoreVersions(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
Check if the given app has any other versions in any state.
|
boolean |
isDefaultVersion(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
Check if the given app is the default version.
|
int |
moveSubscriptions(org.wso2.carbon.appmgt.api.model.APIIdentifier fromIdentifier,
org.wso2.carbon.appmgt.api.model.APIIdentifier toIdentifier)
Moves subscriptions of one app to another app
|
void |
removeBinaryFromStorage(String filePath)
Remove mobile applications binary files from storage
|
void |
removeDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String docId) |
void |
removeDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String docName,
String docType)
Removes a given documentation
|
void |
removeTag(String appType,
String appId,
List<String> tags) |
void |
removeTier(org.wso2.carbon.appmgt.api.model.Tier tier) |
int |
saveBusinessOwner(org.wso2.carbon.appmgt.api.model.BusinessOwner businessOwner)
Save business owner.
|
int |
saveEntitlementPolicyPartial(String policyPartialName,
String policyPartial,
boolean isSharedPartial,
String policyAuthor,
String policyPartialDesc) |
List<org.wso2.carbon.appmgt.api.model.WebApp> |
searchAPIs(String searchTerm,
String searchType,
String providerId) |
List<org.wso2.carbon.appmgt.api.model.App> |
searchApps(String appType,
Map<String,String> searchTerms) |
List<org.wso2.carbon.appmgt.api.model.BusinessOwner> |
searchBusinessOwners(int startIndex,
int pageSize,
String searchKey)
Search business owners with pagination.
|
List<org.wso2.carbon.appmgt.api.model.App> |
searchPublishedApps(String appType,
Map<String,String> searchTerms)
Search and return the published apps for the given search terms.
|
boolean |
subscribeMobileApp(String userId,
String appId) |
boolean |
unSubscribeMobileApp(String userId,
String appId) |
void |
updateAPI(org.wso2.carbon.appmgt.api.model.WebApp api,
String authorizedAdminCookie)
Updates an existing WebApp
|
void |
updateApp(org.wso2.carbon.appmgt.api.model.App app) |
void |
updateAppsInExternalAppStores(org.wso2.carbon.appmgt.api.model.WebApp webApp,
Set<org.wso2.carbon.appmgt.api.model.AppStore> appStores) |
boolean |
updateBusinessOwner(org.wso2.carbon.appmgt.api.model.BusinessOwner businessOwner)
Update a given business owner.
|
void |
updateDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
org.wso2.carbon.appmgt.api.model.Documentation documentation)
Updates a given documentation
|
void |
updateEntitlementPolicies(List<org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicy> policies,
String authorizedAdminCookie)
Updates given entitlement policies.
|
boolean |
updateEntitlementPolicyPartial(int policyPartialId,
String policyPartial,
String author,
boolean isShared,
String policyPartialDesc,
String authorizedAdminCookie) |
void |
updateMobileApp(org.wso2.carbon.appmgt.api.model.MobileApp mobileApp)
Updates an existing WebApp
|
void |
updateOneTimeDownloadLinkStatus(org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink oneTimeDownloadLink)
Update one-time download link details in database
|
void |
updateSubscription(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String subStatus,
int appId)
Update the subscription status
|
void |
updateTier(org.wso2.carbon.appmgt.api.model.Tier tier) |
void |
updateTierPermissions(String tierName,
String permissionType,
String roles)
Update the Tier Permissions
|
void |
updateWebAppSynapse(org.wso2.carbon.appmgt.api.model.WebApp api) |
String |
uploadImage(org.wso2.carbon.appmgt.api.model.FileContent fileContent) |
org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicyValidationResult |
validateEntitlementPolicyPartial(String policyPartial) |
addIcon, addSubscriber, cleanup, getAccessTokenData, getAllAPIs, getAllAPIs, getAllDocumentation, getAllDocumentation, getAPI, getAPI, getAPI, getAPIVersions, getDocumentation, getDocumentation, getDocumentationContent, getIcon, getSubscriber, getSubscriberAPIs, getTiers, getTiers, handleException, handleException, handleResourceAlreadyExistsException, handleResourceAuthorizationException, handleResourceNotFoundException, isAPIAvailable, isApplicationTokenExists, isApplicationTokenRevoked, isContextExist, isDocumentationExist, searchAccessToken, updateSubscriberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddIcon, addSubscriber, cleanup, getAccessTokenData, getAllAPIs, getAllDocumentation, getAllDocumentation, getAPI, getAPIVersions, getDocumentation, getDocumentation, getDocumentationContent, getIcon, getSubscriber, getSubscriberAPIs, getTiers, getTiers, isAPIAvailable, isApplicationTokenExists, isApplicationTokenRevoked, isContextExist, isDocumentationExist, searchAccessToken, updateSubscriberpublic void addWebApp(org.wso2.carbon.appmgt.api.model.WebApp app)
throws org.wso2.carbon.appmgt.api.AppManagementException
addWebApp in interface org.wso2.carbon.appmgt.api.APIProviderapp - WebApporg.wso2.carbon.appmgt.api.AppManagementException - if failed to add WebApppublic String createWebApp(org.wso2.carbon.appmgt.api.model.WebApp webApp) throws org.wso2.carbon.appmgt.api.AppManagementException
createWebApp in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String createNewVersion(org.wso2.carbon.appmgt.api.model.App app) throws org.wso2.carbon.appmgt.api.AppManagementException
createNewVersion in interface org.wso2.carbon.appmgt.api.APIProviderapp - applictaionorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void copyWebappDocumentations(org.wso2.carbon.appmgt.api.model.WebApp api,
String newVersion)
throws org.wso2.carbon.appmgt.api.AppManagementException
copyWebappDocumentations in interface org.wso2.carbon.appmgt.api.APIProviderapi - origin web applicationnewVersion - The version of the new WebApporg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateAPI(org.wso2.carbon.appmgt.api.model.WebApp api,
String authorizedAdminCookie)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateAPI in interface org.wso2.carbon.appmgt.api.APIProviderapi - WebAppauthorizedAdminCookie - Authorized cookie to access IDP admin servicesorg.wso2.carbon.appmgt.api.AppManagementException - if failed to update WebApppublic void updateApp(org.wso2.carbon.appmgt.api.model.App app)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateApp in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void changeAPIStatus(org.wso2.carbon.appmgt.api.model.WebApp api,
org.wso2.carbon.appmgt.api.model.APIStatus status,
String userId,
boolean updateGatewayConfig)
throws org.wso2.carbon.appmgt.api.AppManagementException
changeAPIStatus in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void addDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
org.wso2.carbon.appmgt.api.model.Documentation documentation)
throws org.wso2.carbon.appmgt.api.AppManagementException
addDocumentation in interface org.wso2.carbon.appmgt.api.APIProviderapiId - APIIdentifierdocumentation - Documentationorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void removeDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String docName,
String docType)
throws org.wso2.carbon.appmgt.api.AppManagementException
removeDocumentation in interface org.wso2.carbon.appmgt.api.APIProviderapiId - APIIdentifierdocName - name of the documentdocType - the type of the documentationorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
org.wso2.carbon.appmgt.api.model.Documentation documentation)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateDocumentation in interface org.wso2.carbon.appmgt.api.APIProviderapiId - APIIdentifierdocumentation - Documentationorg.wso2.carbon.appmgt.api.AppManagementException - if failed to update docspublic void addDocumentationContent(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier,
String documentationName,
String text)
throws org.wso2.carbon.appmgt.api.AppManagementException
addDocumentationContent in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void copyAllDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String toVersion)
throws org.wso2.carbon.appmgt.api.AppManagementException
copyAllDocumentation in interface org.wso2.carbon.appmgt.api.APIProviderapiId - id of the APIIdentifiertoVersion - Version to which Documentation should be copied.org.wso2.carbon.appmgt.api.AppManagementExceptionpublic String getTrackingID(String uuid) throws org.wso2.carbon.appmgt.api.AppManagementException
getTrackingID in interface org.wso2.carbon.appmgt.api.APIProvideruuid - : Application UUIDorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkDocumentRemovePermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkDocumentEditPermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkDocumentAddPermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkCreatePermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkWebappUpdatePermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkWebappDeletePermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkManageTiersPermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkPublishPermission()
throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void generateEntitlementPolicies(org.wso2.carbon.appmgt.api.model.APIIdentifier apiIdentifier,
String authorizedAdminCookie)
throws org.wso2.carbon.appmgt.api.AppManagementException
generateEntitlementPolicies in interface org.wso2.carbon.appmgt.api.APIProviderauthorizedAdminCookie - Authorized cookie to access IDP admin servicesorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateEntitlementPolicies(List<org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicy> policies, String authorizedAdminCookie) throws org.wso2.carbon.appmgt.api.AppManagementException
updateEntitlementPolicies in interface org.wso2.carbon.appmgt.api.APIProviderpolicies - Entitlement policies to be updated.authorizedAdminCookie - Authorized cookie to access IDP admin servicesorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void checkPublishPermissionTenantMode(String userId) throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean deleteEntitlementPolicyPartial(int policyPartialId,
String author)
throws org.wso2.carbon.appmgt.api.AppManagementException
deleteEntitlementPolicyPartial in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean updateEntitlementPolicyPartial(int policyPartialId,
String policyPartial,
String author,
boolean isShared,
String policyPartialDesc,
String authorizedAdminCookie)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateEntitlementPolicyPartial in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic int saveEntitlementPolicyPartial(String policyPartialName, String policyPartial, boolean isSharedPartial, String policyAuthor, String policyPartialDesc) throws org.wso2.carbon.appmgt.api.AppManagementException
saveEntitlementPolicyPartial in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean deleteBusinessOwner(int businessOwnerId)
throws org.wso2.carbon.appmgt.api.AppManagementException
deleteBusinessOwner in interface org.wso2.carbon.appmgt.api.APIProviderbusinessOwnerId - Id of the business ownerorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to delete business ownerpublic boolean updateBusinessOwner(org.wso2.carbon.appmgt.api.model.BusinessOwner businessOwner)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateBusinessOwner in interface org.wso2.carbon.appmgt.api.APIProviderbusinessOwner - BusinessOwner objectorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to update business ownerpublic List<org.wso2.carbon.appmgt.api.model.BusinessOwner> getBusinessOwners() throws org.wso2.carbon.appmgt.api.AppManagementException
getBusinessOwners in interface org.wso2.carbon.appmgt.api.APIProviderBusinessOwner objectsorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to get business ownerspublic org.wso2.carbon.appmgt.api.model.BusinessOwner getBusinessOwner(int businessOwnerId)
throws org.wso2.carbon.appmgt.api.AppManagementException
getBusinessOwner in interface org.wso2.carbon.appmgt.api.APIProviderbusinessOwnerId - Business owner Id.BusinessOwner objectorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to get business ownerpublic List<org.wso2.carbon.appmgt.api.model.BusinessOwner> searchBusinessOwners(int startIndex, int pageSize, String searchKey) throws org.wso2.carbon.appmgt.api.AppManagementException
searchBusinessOwners in interface org.wso2.carbon.appmgt.api.APIProviderstartIndex - Start indexpageSize - Page sizesearchKey - Search keyBusinessOwner objectsorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to search business ownerspublic int getBusinessOwnersCount()
throws org.wso2.carbon.appmgt.api.AppManagementException
getBusinessOwnersCount in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to get business owners countpublic int saveBusinessOwner(org.wso2.carbon.appmgt.api.model.BusinessOwner businessOwner)
throws org.wso2.carbon.appmgt.api.AppManagementException
saveBusinessOwner in interface org.wso2.carbon.appmgt.api.APIProviderbusinessOwner - BusinessOwner objectorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to save business ownerpublic int getBusinessOwnerId(String businessOwnerName, String businessOwnerEmail) throws org.wso2.carbon.appmgt.api.AppManagementException
getBusinessOwnerId in interface org.wso2.carbon.appmgt.api.APIProviderbusinessOwnerName - Business owner namebusinessOwnerEmail - Business owner emailorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to get business owner idpublic Set<org.wso2.carbon.appmgt.api.model.Provider> getAllProviders() throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.apimgt.api.model.Provider available on the system.getAllProviders in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.apimgt.api.APIManagementException - if failed to get Providersorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.WebApp> getAPIsByProvider(String providerId) throws org.wso2.carbon.appmgt.api.AppManagementException
getAPIsByProvider in interface org.wso2.carbon.appmgt.api.APIProviderproviderId - , provider idorg.wso2.carbon.apimgt.api.APIManagementException - if failed to get set of WebApporg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Set<org.wso2.carbon.appmgt.api.model.Subscriber> getSubscribersOfProvider(String providerId) throws org.wso2.carbon.appmgt.api.AppManagementException
getSubscribersOfProvider in interface org.wso2.carbon.appmgt.api.APIProviderproviderId - if of the providerorg.wso2.carbon.apimgt.api.APIManagementException - if failed to get subscribed APIs of given providerorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.Provider getProvider(String providerName) throws org.wso2.carbon.appmgt.api.AppManagementException
getProvider in interface org.wso2.carbon.appmgt.api.APIProviderproviderName - name of the providerorg.wso2.carbon.apimgt.api.APIManagementException - if failed to get Providerorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.Usage getUsageByAPI(org.wso2.carbon.appmgt.api.model.APIIdentifier apiIdentifier)
getUsageByAPI in interface org.wso2.carbon.appmgt.api.APIProviderapiIdentifier - APIIdentifierpublic org.wso2.carbon.appmgt.api.model.Usage getAPIUsageByUsers(String providerId, String apiName)
getAPIUsageByUsers in interface org.wso2.carbon.appmgt.api.APIProviderproviderId - if of the providerapiName - name of the WebApppublic org.wso2.carbon.appmgt.api.dto.UserApplicationAPIUsage[] getAllAPIUsageByProvider(String providerName) throws org.wso2.carbon.appmgt.api.AppManagementException
getAllAPIUsageByProvider in interface org.wso2.carbon.appmgt.api.APIProviderproviderName - Provider Idorg.wso2.carbon.apimgt.api.APIManagementException - If failed to get UserApplicationAPIUsageorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.Usage getAPIUsageBySubscriber(org.wso2.carbon.appmgt.api.model.APIIdentifier apiIdentifier,
String consumerEmail)
getAPIUsageBySubscriber in interface org.wso2.carbon.appmgt.api.APIProviderapiIdentifier - APIIdentifierconsumerEmail - E-mal Address of consumerpublic Set<org.wso2.carbon.appmgt.api.model.Subscriber> getSubscribersOfAPI(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier) throws org.wso2.carbon.appmgt.api.AppManagementException
getSubscribersOfAPI in interface org.wso2.carbon.appmgt.api.APIProvideridentifier - APIIdentifierorg.wso2.carbon.apimgt.api.APIManagementException - if failed to get Subscribersorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic long getAPISubscriptionCountByAPI(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
throws org.wso2.carbon.appmgt.api.AppManagementException
getAPISubscriptionCountByAPI in interface org.wso2.carbon.appmgt.api.APIProvideridentifier - APIIdentifierorg.wso2.carbon.apimgt.api.APIManagementException - if failed to get APISubscriptionCountByAPIorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Map<String,List> getSubscribedAPPsByUsers(String fromDate, String toDate) throws org.wso2.carbon.appmgt.api.AppManagementException
getSubscribedAPPsByUsers in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void addTier(org.wso2.carbon.appmgt.api.model.Tier tier)
throws org.wso2.carbon.appmgt.api.AppManagementException
addTier in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateTier(org.wso2.carbon.appmgt.api.model.Tier tier)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateTier in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void removeTier(org.wso2.carbon.appmgt.api.model.Tier tier)
throws org.wso2.carbon.appmgt.api.AppManagementException
removeTier in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String createMobileApp(org.wso2.carbon.appmgt.api.model.MobileApp mobileApp) throws org.wso2.carbon.appmgt.api.AppManagementException
createMobileApp in interface org.wso2.carbon.appmgt.api.APIProvidermobileApp - Mobile Apporg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.WebApp getWebApp(String uuid) throws org.wso2.carbon.appmgt.api.AppManagementException
getWebApp in interface org.wso2.carbon.appmgt.api.APIProvideruuid - uuid of the Applicationorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.MobileApp getMobileApp(String uuid) throws org.wso2.carbon.appmgt.api.AppManagementException
getMobileApp in interface org.wso2.carbon.appmgt.api.APIProvideruuid - uuid of the Applicationorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String getEntitlementPolicy(String policyId, String authorizedAdminCookie) throws org.wso2.carbon.appmgt.api.AppManagementException
getEntitlementPolicy in interface org.wso2.carbon.appmgt.api.APIProviderpolicyId - Entitlement policy idauthorizedAdminCookie - Authorized cookie to access IDP admin servicesorg.wso2.carbon.appmgt.api.AppManagementException - on error while trying to get entitlement policypublic int getWebAppId(String uuid) throws org.wso2.carbon.appmgt.api.AppManagementException
getWebAppId in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicyPartial getPolicyPartial(int policyPartialId)
throws org.wso2.carbon.appmgt.api.AppManagementException
getPolicyPartial in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.APIIdentifier> getAssociatedApps(int policyPartialId) throws org.wso2.carbon.appmgt.api.AppManagementException
getAssociatedApps in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicyPartial> getSharedPolicyPartialsList() throws org.wso2.carbon.appmgt.api.AppManagementException
getSharedPolicyPartialsList in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.EntitlementPolicyGroup> getPolicyGroupListByApplication(int appId) throws org.wso2.carbon.appmgt.api.AppManagementException
getPolicyGroupListByApplication in interface org.wso2.carbon.appmgt.api.APIProviderappId - Application Idorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.entitlement.EntitlementPolicyValidationResult validateEntitlementPolicyPartial(String policyPartial) throws org.wso2.carbon.appmgt.api.AppManagementException
validateEntitlementPolicyPartial in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateMobileApp(org.wso2.carbon.appmgt.api.model.MobileApp mobileApp)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateMobileApp in interface org.wso2.carbon.appmgt.api.APIProviderapi - WebApporg.wso2.carbon.apimgt.api.APIManagementException - if failed to update WebApporg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateWebAppSynapse(org.wso2.carbon.appmgt.api.model.WebApp api)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateWebAppSynapse in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void removeDocumentation(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String docId)
throws org.wso2.carbon.appmgt.api.AppManagementException
removeDocumentation in interface org.wso2.carbon.appmgt.api.APIProviderapiId - APIIdentifierdocId - UUID of the docorg.wso2.carbon.appmgt.api.AppManagementException - if failed to remove documentationpublic void addFileToDocumentation(org.wso2.carbon.appmgt.api.model.WebApp webApp,
org.wso2.carbon.appmgt.api.model.Documentation documentation,
String filename,
InputStream content,
String contentType)
throws org.wso2.carbon.appmgt.api.AppManagementException
addFileToDocumentation in interface org.wso2.carbon.appmgt.api.APIProviderwebApp - documentation - documentfilename - name of the filecontent - content of the file as an Input StreamcontentType - content type of the fileorg.wso2.carbon.appmgt.api.AppManagementException - if failed to add the filepublic void addAPIDefinitionContent(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier,
String documentationName,
String text)
throws org.wso2.carbon.appmgt.api.AppManagementException
addAPIDefinitionContent in interface org.wso2.carbon.appmgt.api.APIProvideridentifier, - 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 registryorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.LifeCycleEvent> getLifeCycleEvents(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId) throws org.wso2.carbon.appmgt.api.AppManagementException
getLifeCycleEvents in interface org.wso2.carbon.appmgt.api.APIProviderapiId - WebApp Identifierorg.wso2.carbon.apimgt.api.APIManagementException - If failed to get Lifecycle Eventsorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateSubscription(org.wso2.carbon.appmgt.api.model.APIIdentifier apiId,
String subStatus,
int appId)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateSubscription in interface org.wso2.carbon.appmgt.api.APIProviderapiId - WebApp IdentifiersubStatus - Subscription StatusappId - Application Id *org.wso2.carbon.apimgt.api.APIManagementException - If failed to update subscription statusorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic int moveSubscriptions(org.wso2.carbon.appmgt.api.model.APIIdentifier fromIdentifier,
org.wso2.carbon.appmgt.api.model.APIIdentifier toIdentifier)
throws org.wso2.carbon.appmgt.api.AppManagementException
moveSubscriptions in interface org.wso2.carbon.appmgt.api.APIProviderfromIdentifier - subscriptions of this apptoIdentifier - will be moved into this apporg.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean deleteApp(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier,
org.wso2.carbon.appmgt.api.model.SSOProvider ssoProvider,
String authorizedAdminCookie)
throws org.wso2.carbon.appmgt.api.AppManagementException
deleteApp in interface org.wso2.carbon.appmgt.api.APIProvideridentifier - AppIdentifierssoProvider - SSO providerauthorizedAdminCookie - The cookie which was generated from the SAML assertion.org.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.WebApp> searchAPIs(String searchTerm, String searchType, String providerId) throws org.wso2.carbon.appmgt.api.AppManagementException
searchAPIs in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.WebApp> getAPIsByProvider(String providerId, String appType) throws org.wso2.carbon.appmgt.api.AppManagementException
providerId - , provider idappType - Asset Type(either webapp/mobileapp)org.wso2.carbon.appmgt.api.AppManagementException - if failed to get set of WebApppublic List<org.wso2.carbon.appmgt.api.model.App> searchApps(String appType, Map<String,String> searchTerms) throws org.wso2.carbon.appmgt.api.AppManagementException
searchApps in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.App> searchPublishedApps(String appType, Map<String,String> searchTerms) throws org.wso2.carbon.appmgt.api.AppManagementException
searchPublishedApps in interface org.wso2.carbon.appmgt.api.APIProviderappType - App typesearchTerms - Search termsApporg.wso2.carbon.appmgt.api.AppManagementException - on errors while trying to search published apps.public void updateTierPermissions(String tierName, String permissionType, String roles) throws org.wso2.carbon.appmgt.api.AppManagementException
updateTierPermissions in interface org.wso2.carbon.appmgt.api.APIProvidertierName - Tier NamepermissionType - Permission Typeroles - Rolesorg.wso2.carbon.apimgt.api.APIManagementException - If failed to update subscription statusorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Set<TierPermissionDTO> getTierPermissions() throws org.wso2.carbon.appmgt.api.AppManagementException
getTierPermissions in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<String> getCustomInSequences() throws org.wso2.carbon.appmgt.api.AppManagementException
getCustomInSequences in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<String> getCustomOutSequences() throws org.wso2.carbon.appmgt.api.AppManagementException
getCustomOutSequences in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.WebApp> getAllWebApps() throws org.wso2.carbon.appmgt.api.AppManagementException
getAllWebApps in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.WebApp> getAllWebApps(String tenantDomain) throws org.wso2.carbon.appmgt.api.AppManagementException
getAllWebApps in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Map<String,Long> getSubscriptionCountByAPPs(String provider, String fromDate, String toDate, boolean isSubscriptionOn) throws org.wso2.carbon.appmgt.api.AppManagementException
getSubscriptionCountByAPPs in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic List<org.wso2.carbon.appmgt.api.model.WebApp> getAppsWithEndpoint(String tenantDomain) throws org.wso2.carbon.appmgt.api.AppManagementException
getAppsWithEndpoint in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Set<org.wso2.carbon.appmgt.api.model.AppStore> getExternalAppStores(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier) throws org.wso2.carbon.appmgt.api.AppManagementException
getExternalAppStores in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateAppsInExternalAppStores(org.wso2.carbon.appmgt.api.model.WebApp webApp,
Set<org.wso2.carbon.appmgt.api.model.AppStore> appStores)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateAppsInExternalAppStores in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String getDefaultVersion(String appName, String providerName, org.wso2.carbon.appmgt.api.model.AppDefaultVersion appStatus) throws org.wso2.carbon.appmgt.api.AppManagementException
getDefaultVersion in interface org.wso2.carbon.appmgt.api.APIProviderappName - providerName - appStatus - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean isDefaultVersion(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
throws org.wso2.carbon.appmgt.api.AppManagementException
isDefaultVersion in interface org.wso2.carbon.appmgt.api.APIProvideridentifier - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean hasMoreVersions(org.wso2.carbon.appmgt.api.model.APIIdentifier identifier)
throws org.wso2.carbon.appmgt.api.AppManagementException
hasMoreVersions in interface org.wso2.carbon.appmgt.api.APIProvideridentifier - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.WebApp getAppDetailsFromUUID(String uuid) throws org.wso2.carbon.appmgt.api.AppManagementException
getAppDetailsFromUUID in interface org.wso2.carbon.appmgt.api.APIProvideruuid - org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void changeLifeCycleStatus(String appType, String appId, String lifecycleAction) throws org.wso2.carbon.appmgt.api.AppManagementException
changeLifeCycleStatus in interface org.wso2.carbon.appmgt.api.APIProviderappType - application type ie: webapp, mobileappappId - application uuidlifecycleAction - lifecycle action perform on the applicationorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String[] getAllowedLifecycleActions(String appId, String appType) throws org.wso2.carbon.appmgt.api.AppManagementException
getAllowedLifecycleActions in interface org.wso2.carbon.appmgt.api.APIProviderappId - application typeappType - application typeorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean subscribeMobileApp(String userId, String appId) throws org.wso2.carbon.appmgt.api.AppManagementException
subscribeMobileApp in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic boolean unSubscribeMobileApp(String userId, String appId) throws org.wso2.carbon.appmgt.api.AppManagementException
unSubscribeMobileApp in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void addTags(String appType, String appId, List<String> tags) throws org.wso2.carbon.appmgt.api.AppManagementException
addTags in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void removeTag(String appType, String appId, List<String> tags) throws org.wso2.carbon.appmgt.api.AppManagementException
removeTag in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Set<org.wso2.carbon.appmgt.api.model.Tag> getAllTags(String appType) throws org.wso2.carbon.appmgt.api.AppManagementException
getAllTags in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic Set<org.wso2.carbon.appmgt.api.model.Tag> getAllTags(String appType, String appId) throws org.wso2.carbon.appmgt.api.AppManagementException
getAllTags in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String addResourceFile(String resourcePath, org.wso2.carbon.appmgt.api.model.FileContent resourceFile) throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionpublic void removeBinaryFromStorage(String filePath) throws org.wso2.carbon.appmgt.api.AppManagementException
removeBinaryFromStorage in interface org.wso2.carbon.appmgt.api.APIProviderfilePath - file path of the banner image, thumbnail, screenshots and app binaryorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String generateOneTimeDownloadLink(String appId) throws org.wso2.carbon.appmgt.api.AppManagementException
generateOneTimeDownloadLink in interface org.wso2.carbon.appmgt.api.APIProviderappId - mobile application id that the one-time download link generated fororg.wso2.carbon.appmgt.api.AppManagementExceptionpublic org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink getOneTimeDownloadLinkDetails(String UUID) throws org.wso2.carbon.appmgt.api.AppManagementException
getOneTimeDownloadLinkDetails in interface org.wso2.carbon.appmgt.api.APIProviderUUID - UUID of the one-time download linkorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic void updateOneTimeDownloadLinkStatus(org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink oneTimeDownloadLink)
throws org.wso2.carbon.appmgt.api.AppManagementException
updateOneTimeDownloadLinkStatus in interface org.wso2.carbon.appmgt.api.APIProvideroneTimeDownloadLink - OneTimeDownloadLink contentorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String getGatewayEndpoint()
getGatewayEndpoint in interface org.wso2.carbon.appmgt.api.APIProviderpublic String getAppUUIDbyName(String appName, String appVersion, int tenantId) throws org.wso2.carbon.appmgt.api.AppManagementException
getAppUUIDbyName in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionpublic String uploadImage(org.wso2.carbon.appmgt.api.model.FileContent fileContent) throws org.wso2.carbon.appmgt.api.AppManagementException
uploadImage in interface org.wso2.carbon.appmgt.api.APIProviderorg.wso2.carbon.appmgt.api.AppManagementExceptionCopyright © 2017 WSO2. All rights reserved.