Class HtmlPageUtil
java.lang.Object
fr.paris.lutece.plugins.htmlpage.utils.HtmlPageUtil
- Author:
- lenaini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampconvertToTimestamp(String strDate) Convert to sql datestatic booleanisActivedPageHtml(HtmlPage htmlPage) Checks if the htmlpage could be shownstatic booleanisRoleExist(String strRole) Checks if htmlpage have rolestatic booleanChecks if the page is visible for the current user
-
Constructor Details
-
HtmlPageUtil
public HtmlPageUtil()
-
-
Method Details
-
isVisible
Checks if the page is visible for the current user- Parameters:
request- The HTTP request- Returns:
- true if the page could be shown to the user
-
isActivedPageHtml
Checks if the htmlpage could be shown- Parameters:
htmlPage-- Returns:
- true if the htmlpage could be shown
-
isRoleExist
Checks if htmlpage have role- Parameters:
strRole-- Returns:
- true if htmlpage have role
-
convertToTimestamp
Convert to sql date- Parameters:
strDate-- Returns:
- return sql date
-