public class MobileAppServiceUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APP_DEFINITION_FILE_NAME |
static String |
PUBLISHER_TYPE |
static String |
USER_TYPE |
Constructor and Description |
---|
MobileAppServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static String[] |
decomposeAppConfigCompositeId(String compositeId)
Returns the decomposed id by the given composite id.
|
static Map<MobileAppConfig,IModule> |
findAppConfigPaths()
Find app configs in deployed modules.
|
static IFile |
getAppConfigBaseFolder(String appId,
IModule module)
Returns the app configuration base folder.
|
static Map.Entry<MobileAppConfig,IModule> |
getAppConfigByAppCompositeId(String compositeId)
Returns the app config by the given composite id.
|
static IFile |
getAppConfigFile(String appId,
IModule module)
Returns the app config file.
|
static String |
getAppIdFromPath(String path)
Returns the app id from the given path.
|
static String |
getAppURL(MobileAppConfig appConfig)
Returns the app access URL.
|
static String |
getBaseURLCompositeId(String id,
String protocol)
Returns the base URL composite id.
|
static String[] |
getBaseURLDecomposedId(String compositeId)
Decompose base URL id.
|
static MobileAppConfig |
getDefinitionFromPath(String path)
Returns the app config from the given path.
|
static IFile |
getIconsFile(String appId,
IModule module)
Returns the icons file.
|
static String |
getId(MobileAppConfig appConfig,
IModule module)
Returns the composite id of the given app config.
|
static IFile |
getLogoFile(String appId,
IModule module,
String name)
Returns the logo file.
|
static String |
getPathFromAppId(String appId)
Returns the app path from the given app id.
|
static IFile |
getSplashScreensFile(String appId,
IModule module)
Returns the splashscreens file.
|
public static final String APP_DEFINITION_FILE_NAME
public static final String USER_TYPE
public static final String PUBLISHER_TYPE
public static String getBaseURLCompositeId(String id, String protocol)
id
- the base URL id.protocol
- the protocol (for additional URLs).public static String[] getBaseURLDecomposedId(String compositeId)
compositeId
- the composite id.public static String getId(MobileAppConfig appConfig, IModule module)
appConfig
- the app config.module
- the module.public static Map.Entry<MobileAppConfig,IModule> getAppConfigByAppCompositeId(String compositeId) throws PortalException
compositeId
- the composite id.PortalException
public static String[] decomposeAppConfigCompositeId(String compositeId)
compositeId
- the composite id.public static Map<MobileAppConfig,IModule> findAppConfigPaths() throws PortalException
PortalException
public static MobileAppConfig getDefinitionFromPath(String path) throws PortalException, SAXException, IOException
path
- the path.PortalException
SAXException
IOException
public static String getPathFromAppId(String appId)
appId
- the app id.public static String getAppIdFromPath(String path)
path
- the path.public static IFile getAppConfigBaseFolder(String appId, IModule module)
appId
- the app id.module
- the module.public static IFile getLogoFile(String appId, IModule module, String name)
appId
- the app id.module
- the module.name
- the logo filename.public static IFile getAppConfigFile(String appId, IModule module)
appId
- the app id.module
- the module.public static IFile getIconsFile(String appId, IModule module)
appId
- the app id.module
- the module id.public static IFile getSplashScreensFile(String appId, IModule module)
appId
- the app id.module
- the module.public static String getAppURL(MobileAppConfig appConfig) throws PortalException
appConfig
- the app config.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.