Class WebJETActionBean

java.lang.Object
sk.iway.iwcm.system.stripes.WebJETActionBean
All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean
Direct Known Subclasses:
AdresarAction, ConfImportAction, GalleryActionBean, NewsActionBean, RegUserAction, ReservationAjaxAction, SyncDirAction, UniversalCrudAction

public class WebJETActionBean extends Object implements net.sourceforge.stripes.action.ActionBean
WebJETActionBean.java - supertrieda pre standardne Stripes Action Beany
  • Field Details

  • Constructor Details

    • WebJETActionBean

      public WebJETActionBean()
  • Method Details

    • isAdminLogged

      public boolean isAdminLogged()
      Vrati true, ak je prihlaseny administrator
      Returns:
    • isAdminLoggedWithPerms

      public boolean isAdminLoggedWithPerms(String module)
      Vrati true, ak je prihlaseny administrator a ma povoleny dany modul
      Parameters:
      module -
      Returns:
    • isAnyUserLogged

      public boolean isAnyUserLogged()
      Vrati true ak je prihlaseny akykolvek user (navstevnik stranky)
      Returns:
    • setErrorText

      public void setErrorText(String text)
    • getRequest

      public javax.servlet.http.HttpServletRequest getRequest()
    • getSession

      public javax.servlet.http.HttpSession getSession()
    • getCurrentUser

      public Identity getCurrentUser()
    • getContext

      public net.sourceforge.stripes.action.ActionBeanContext getContext()
      Specified by:
      getContext in interface net.sourceforge.stripes.action.ActionBean
    • setContext

      public void setContext(net.sourceforge.stripes.action.ActionBeanContext context)
      Specified by:
      setContext in interface net.sourceforge.stripes.action.ActionBean
    • prepareIncludeRequestWrapper

      @Before(stages=BindingAndValidation) public void prepareIncludeRequestWrapper()
      vykona sa pri kazdom requeste pred BindingAndValidation stage a v pripade ze je actionBean anotovana InjectPageParams, zabezpeci zabalenie povodneho requestu do specialneho-vyčuraného requestu, ktory podsunie pageparams ako parametre requestu zaroven zabezpeci ze nieje mozne poslat ako parameter actionbeane taky ktory ma rovnaky nazov ako atribut actionbeany, anotovany //
    • removeIncludeRequestWrapper

      @After(stages=BindingAndValidation) public void removeIncludeRequestWrapper()
      odstrani IncludePageParamsRequestWrapper z stripesrequestu aby v dalsom vykonavani uz nezavadzal