|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.website.WebsiteUtil
public class WebsiteUtil
Website utility class.
Constructor Summary | |
---|---|
WebsiteUtil()
|
Method Summary | |
---|---|
static boolean |
compareURLs(IWebsiteBaseURL firstURL,
IWebsiteBaseURL secondURL)
Compares if the URLs are equals |
static String |
getDefaultPageWebSiteURL(HttpServletRequest request,
int portalMode)
Returns the URL to the current website with page id to the defined portal mode. |
static String |
getId(IWebsiteBaseURL url)
Returns the identifier of the given website base
URL . |
static IWebsiteBaseURL |
getWebsiteBaseURLById(String id)
Returns the website base URL based on its
identification. |
static String |
getWebsiteURL(HttpServletRequest request)
Returns the current WebsiteURL. |
static IWebsiteBaseURL |
resolveWebsiteBaseURLByString(String websiteStr)
Resolves the given website string in a website
base URL .The given string will be parsed as new
URI(String) , so that it must adhere with URI syntax. |
static IWebsite |
resolveWebsiteByString(String websiteStr)
Resolves the given website string in a website .The given string will be parsed as new
URI(String) , so that it must adhere with URI syntax. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebsiteUtil()
Method Detail |
---|
public static IWebsite resolveWebsiteByString(String websiteStr) throws PortalException
website
.new
URI(String)
, so that it must adhere with URI
syntax.
websiteStr
- the website string to be parsed.
website
.
IllegalArgumentException
- if the given string is a malformed URL.
IllegalArgumentException
- if the protocol isn't neither HTTP
nor HTTPS
.
PortalException
resolveWebsiteBaseURLByString(String)
public static boolean compareURLs(IWebsiteBaseURL firstURL, IWebsiteBaseURL secondURL)
firstURL
- IWebsiteBaseURL
to be comparedsecondURL
- IWebsiteBaseURL
to be compared
public static IWebsiteBaseURL resolveWebsiteBaseURLByString(String websiteStr) throws PortalException
website
base URL
.new
URI(String)
, so that it must adhere with URI
syntax.
websiteStr
- the website string to be parsed.
website base URL
.
IllegalArgumentException
- if the given string is a malformed URL.
IllegalArgumentException
- if the protocol isn't neither HTTP
nor HTTPS
.
PortalException
public static String getId(IWebsiteBaseURL url)
website base
URL
.
url
- the website base URL.
website base
URL
.
IllegalArgumentException
- if the given object is null
.
IllegalArgumentException
- if the given object's class is unknown.public static IWebsiteBaseURL getWebsiteBaseURLById(String id)
website base URL
based on its
identification.
id
- the website base URL
identification.
website base URL
based on its
identification.public static String getWebsiteURL(HttpServletRequest request)
request
- request in which the website is situated.
public static String getDefaultPageWebSiteURL(HttpServletRequest request, int portalMode) throws PortalException
request
- from where to find website.portalMode
- value of the portal mode for the url to be generated to.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |