Class HtmlPageUtil


  • public class HtmlPageUtil
    extends java.lang.Object
    Author:
    lenaini
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlPageUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.sql.Timestamp convertToTimestamp​(java.lang.String strDate)
      Convert to sql date
      static boolean isActivedPageHtml​(HtmlPage htmlPage)
      Checks if the htmlpage could be shown
      static boolean isRoleExist​(java.lang.String strRole)
      Checks if htmlpage have role
      static boolean isVisible​(javax.servlet.http.HttpServletRequest request, java.lang.String strRole)
      Checks if the page is visible for the current user
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlPageUtil

        public HtmlPageUtil()
    • Method Detail

      • isVisible

        public static boolean isVisible​(javax.servlet.http.HttpServletRequest request,
                                        java.lang.String strRole)
        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

        public static boolean isActivedPageHtml​(HtmlPage htmlPage)
        Checks if the htmlpage could be shown
        Parameters:
        htmlPage -
        Returns:
        true if the htmlpage could be shown
      • isRoleExist

        public static boolean isRoleExist​(java.lang.String strRole)
        Checks if htmlpage have role
        Parameters:
        strRole -
        Returns:
        true if htmlpage have role
      • convertToTimestamp

        public static java.sql.Timestamp convertToTimestamp​(java.lang.String strDate)
        Convert to sql date
        Parameters:
        strDate -
        Returns:
        return sql date