Class MobileBannerHelper
- java.lang.Object
-
- org.nuxeo.ecm.platform.web.common.MobileBannerHelper
-
public class MobileBannerHelper extends Object
Helper for the banner to open a document in the mobile application.- Since:
- 9.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANDROID_PACKAGE_PROPERTY
static String
ANDROID_PROTOCOL_SCHEME
static String
ITUNES_ID_PROPERTY
static String
ITUNES_URL
static String
PROTOCOL_PROPERTY
-
Constructor Summary
Constructors Constructor Description MobileBannerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAndroidProtocol()
static String
getAppStoreURL()
Returns the URL of the iOS mobile application in the App Store.protected static String
getDocumentPart(String requestedURL)
protected static String
getDocumentPart(DocumentModel doc)
static String
getIOSProtocol()
protected static String
getServerPart(String baseURL)
static String
getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request)
Returns a full URL opening the Android mobile application.static String
getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request, DocumentModel doc)
Returns a full URL opening the Android mobile application for the given document.static String
getURLForIOSApplication(javax.servlet.http.HttpServletRequest request)
Returns a full URL opening the iOS mobile application.static String
getURLForIOSApplication(javax.servlet.http.HttpServletRequest request, DocumentModel doc)
Returns a full URL opening the iOS mobile application for the given document.static String
getURLForMobileApplication(String protocol, String baseURL, DocumentModel doc, String requestedURL)
static String
getURLForMobileApplication(String protocol, javax.servlet.http.HttpServletRequest request, DocumentModel doc)
-
-
-
Field Detail
-
PROTOCOL_PROPERTY
public static final String PROTOCOL_PROPERTY
- See Also:
- Constant Field Values
-
ANDROID_PACKAGE_PROPERTY
public static final String ANDROID_PACKAGE_PROPERTY
- See Also:
- Constant Field Values
-
ITUNES_ID_PROPERTY
public static final String ITUNES_ID_PROPERTY
- See Also:
- Constant Field Values
-
ANDROID_PROTOCOL_SCHEME
public static final String ANDROID_PROTOCOL_SCHEME
- See Also:
- Constant Field Values
-
ITUNES_URL
public static final String ITUNES_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getURLForAndroidApplication
public static String getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request)
Returns a full URL opening the Android mobile application.
-
getURLForAndroidApplication
public static String getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request, DocumentModel doc)
Returns a full URL opening the Android mobile application for the given document.
-
getURLForIOSApplication
public static String getURLForIOSApplication(javax.servlet.http.HttpServletRequest request)
Returns a full URL opening the iOS mobile application.
-
getURLForIOSApplication
public static String getURLForIOSApplication(javax.servlet.http.HttpServletRequest request, DocumentModel doc)
Returns a full URL opening the iOS mobile application for the given document.
-
getAppStoreURL
public static String getAppStoreURL()
Returns the URL of the iOS mobile application in the App Store.
-
getAndroidProtocol
public static String getAndroidProtocol()
-
getIOSProtocol
public static String getIOSProtocol()
-
getURLForMobileApplication
public static String getURLForMobileApplication(String protocol, javax.servlet.http.HttpServletRequest request, DocumentModel doc)
-
getURLForMobileApplication
public static String getURLForMobileApplication(String protocol, String baseURL, DocumentModel doc, String requestedURL)
-
getDocumentPart
protected static String getDocumentPart(DocumentModel doc)
-
-