public interface AppRepository
| Modifier and Type | Method and Description |
|---|---|
int |
addSubscription(String subscriberName,
org.wso2.carbon.appmgt.api.model.WebApp webApp,
String applicationName)
Add user subscription for a webapp/site
|
String |
createNewVersion(org.wso2.carbon.appmgt.api.model.App app)
Creates and persists a new version using the attributes in the given app.
|
org.wso2.carbon.appmgt.api.model.App |
getApp(String type,
String uuid)
Returns the app for the given uuid.
|
String |
getAppUUIDbyName(String appName,
String appVersion,
int tenantId) |
org.wso2.carbon.appmgt.api.model.Subscription |
getEnterpriseSubscription(String webAppContext,
String webAppVersion) |
org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink |
getOneTimeDownloadLinkDetails(String UUID)
Retrieve one-time download link details from database
|
org.wso2.carbon.appmgt.api.model.FileContent |
getStaticContent(String contentId)
Retrieve the given static content from storage
|
org.wso2.carbon.appmgt.api.model.WebApp |
getWebAppByContextAndVersion(String context,
String version,
int tenantId)
Returns the web app for the give context and the version.
|
org.wso2.carbon.appmgt.api.model.WebApp |
getWebAppByNameAndVersion(String name,
String version,
int tenantId)
Returns the web app for the given name and version.
|
void |
persistOneTimeDownloadLink(org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink oneTimeDownloadLink)
Persist one-time download link reference in database
|
void |
persistStaticContents(org.wso2.carbon.appmgt.api.model.FileContent fileContent)
Save static content into storage
|
String |
saveApp(org.wso2.carbon.appmgt.api.model.App app)
Persists the given app in the repository.
|
List<org.wso2.carbon.appmgt.api.model.App> |
searchApps(String appType,
Map<String,String> searchTerms)
Searches and returns the apps for the given search terms.
|
void |
updateApp(org.wso2.carbon.appmgt.api.model.App app)
Updates the given app.
|
void |
updateOneTimeDownloadLinkStatus(org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink oneTimeDownloadLink)
Update one-time download link details in database
|
String saveApp(org.wso2.carbon.appmgt.api.model.App app) throws org.wso2.carbon.appmgt.api.AppManagementException
app - org.wso2.carbon.appmgt.api.AppManagementExceptionString createNewVersion(org.wso2.carbon.appmgt.api.model.App app) throws org.wso2.carbon.appmgt.api.AppManagementException
app - org.wso2.carbon.appmgt.api.AppManagementExceptionvoid updateApp(org.wso2.carbon.appmgt.api.model.App app)
throws org.wso2.carbon.appmgt.api.AppManagementException
app - org.wso2.carbon.appmgt.api.AppManagementExceptionorg.wso2.carbon.appmgt.api.model.App getApp(String type, String uuid) throws org.wso2.carbon.appmgt.api.AppManagementException
type - uuid - org.wso2.carbon.appmgt.api.AppManagementExceptionorg.wso2.carbon.appmgt.api.model.WebApp getWebAppByNameAndVersion(String name, String version, int tenantId) throws org.wso2.carbon.appmgt.api.AppManagementException
name - version - tenantId - org.wso2.carbon.appmgt.api.AppManagementExceptionorg.wso2.carbon.appmgt.api.model.WebApp getWebAppByContextAndVersion(String context, String version, int tenantId) throws org.wso2.carbon.appmgt.api.AppManagementException
context - version - org.wso2.carbon.appmgt.api.AppManagementExceptionList<org.wso2.carbon.appmgt.api.model.App> searchApps(String appType, Map<String,String> searchTerms) throws org.wso2.carbon.appmgt.api.AppManagementException
appType - searchTerms - org.wso2.carbon.appmgt.api.AppManagementExceptionvoid persistStaticContents(org.wso2.carbon.appmgt.api.model.FileContent fileContent)
throws org.wso2.carbon.appmgt.api.AppManagementException
fileContent - details of file contentorg.wso2.carbon.appmgt.api.AppManagementExceptionorg.wso2.carbon.appmgt.api.model.FileContent getStaticContent(String contentId) throws org.wso2.carbon.appmgt.api.AppManagementException
contentId - static content uuidorg.wso2.carbon.appmgt.api.AppManagementExceptionint addSubscription(String subscriberName, org.wso2.carbon.appmgt.api.model.WebApp webApp, String applicationName) throws org.wso2.carbon.appmgt.api.AppManagementException
subscriberName - Subscriber usernamewebApp - WebApp objectapplicationName - Application Nameorg.wso2.carbon.appmgt.api.AppManagementExceptionvoid persistOneTimeDownloadLink(org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink oneTimeDownloadLink)
throws org.wso2.carbon.appmgt.api.AppManagementException
oneTimeDownloadLink - OneTimeDownloadLink contentorg.wso2.carbon.appmgt.api.AppManagementExceptionorg.wso2.carbon.appmgt.api.model.OneTimeDownloadLink getOneTimeDownloadLinkDetails(String UUID) throws org.wso2.carbon.appmgt.api.AppManagementException
UUID - UUID of the one-time download linkorg.wso2.carbon.appmgt.api.AppManagementExceptionvoid updateOneTimeDownloadLinkStatus(org.wso2.carbon.appmgt.api.model.OneTimeDownloadLink oneTimeDownloadLink)
throws org.wso2.carbon.appmgt.api.AppManagementException
oneTimeDownloadLink - OneTimeDownloadLink contentorg.wso2.carbon.appmgt.api.AppManagementExceptionorg.wso2.carbon.appmgt.api.model.Subscription getEnterpriseSubscription(String webAppContext, String webAppVersion) throws org.wso2.carbon.appmgt.api.AppManagementException
org.wso2.carbon.appmgt.api.AppManagementExceptionCopyright © 2017 WSO2. All rights reserved.