Class 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) $
    • Constructor Detail

      • MobileAppServiceUtil

        public MobileAppServiceUtil()
    • 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
      • 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