Class MobileAppServiceUtil
- java.lang.Object
-
- lumis.service.portalmanagement.mobileapp.util.MobileAppServiceUtil
-
public class MobileAppServiceUtil extends Object
Utility class for mobile app service.- Since:
- 10.0.0
- Version:
- $Revision: 19932 $ $Date: 2017-02-16 13:14:18 -0200 (Thu, 16 Feb 2017) $
-
-
Field Summary
Fields Modifier and Type Field Description static String
APP_DEFINITION_FILE_NAME
static String
PUBLISHER_TYPE
static String
USER_TYPE
-
Constructor Summary
Constructors Constructor Description MobileAppServiceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
APP_DEFINITION_FILE_NAME
public static final String APP_DEFINITION_FILE_NAME
- See Also:
- Constant Field Values
-
USER_TYPE
public static final String USER_TYPE
- See Also:
- Constant Field Values
-
PUBLISHER_TYPE
public static final String PUBLISHER_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseURLCompositeId
public static String getBaseURLCompositeId(String id, String protocol)
Returns the base URL composite id.- Parameters:
id
- the base URL id.protocol
- the protocol (for additional URLs).- Returns:
- the base URL composite id.
- Since:
- 10.0.0
-
getBaseURLDecomposedId
public static String[] getBaseURLDecomposedId(String compositeId)
Decompose base URL id.- Parameters:
compositeId
- the composite id.- Returns:
- the decomposed id.
- Since:
- 10.0.0
-
getId
public static String getId(MobileAppConfig appConfig, IModule module)
Returns the composite id of the given app config.- Parameters:
appConfig
- the app config.module
- the module.- Returns:
- the composite id of the given app config.
- Since:
- 10.0.0
-
getAppConfigByAppCompositeId
public static Map.Entry<MobileAppConfig,IModule> getAppConfigByAppCompositeId(String compositeId) throws PortalException
Returns the app config by the given composite id.- Parameters:
compositeId
- the composite id.- Returns:
- the app config by the given composite id.
- Throws:
PortalException
- Since:
- 10.0.0
-
decomposeAppConfigCompositeId
public static String[] decomposeAppConfigCompositeId(String compositeId)
Returns the decomposed id by the given composite id.- In position 0: app Id
- In position 1: module Id
- Parameters:
compositeId
- the composite id.- Returns:
- the decomposed id by the given composite id.
- Since:
- 10.0.0
-
findAppConfigPaths
public static Map<MobileAppConfig,IModule> findAppConfigPaths() throws PortalException
Find app configs in deployed modules.- Returns:
- the app configs.
- Throws:
PortalException
- Since:
- 10.0.0
-
getDefinitionFromPath
public static MobileAppConfig getDefinitionFromPath(String path) throws PortalException, SAXException, IOException
Returns the app config from the given path.- Parameters:
path
- the path.- Returns:
- the app config from the given path.
- Throws:
PortalException
SAXException
IOException
- Since:
- 10.0.0
-
getPathFromAppId
public static String getPathFromAppId(String appId)
Returns the app path from the given app id.- Parameters:
appId
- the app id.- Returns:
- the app path from the given app id.
- Since:
- 10.0.0
-
getAppIdFromPath
public static String getAppIdFromPath(String path)
Returns the app id from the given path.- Parameters:
path
- the path.- Returns:
- the app id from the given path.
- Since:
- 10.0.0
-
getAppConfigBaseFolder
public static IFile getAppConfigBaseFolder(String appId, IModule module)
Returns the app configuration base folder.- Parameters:
appId
- the app id.module
- the module.- Returns:
- the app configuration base folder.
- Since:
- 10.0.0
-
getLogoFile
public static IFile getLogoFile(String appId, IModule module, String name)
Returns the logo file.- Parameters:
appId
- the app id.module
- the module.name
- the logo filename.- Returns:
- the logo file.
- Since:
- 10.0.0
-
getAppConfigFile
public static IFile getAppConfigFile(String appId, IModule module)
Returns the app config file.- Parameters:
appId
- the app id.module
- the module.- Returns:
- the app config file.
- Since:
- 10.0.0
-
getIconsFile
public static IFile getIconsFile(String appId, IModule module)
Returns the icons file.- Parameters:
appId
- the app id.module
- the module id.- Returns:
- the icons file.
- Since:
- 10.0.0
-
getSplashScreensFile
public static IFile getSplashScreensFile(String appId, IModule module)
Returns the splashscreens file.- Parameters:
appId
- the app id.module
- the module.- Returns:
- the splashscreens file.
- Since:
- 10.0.0
-
getAppURL
public static String getAppURL(MobileAppConfig appConfig) throws PortalException
Returns the app access URL.- Parameters:
appConfig
- the app config.- Returns:
- the app access URL.
- Throws:
PortalException
- Since:
- 10.0.0
-
-