Package sk.iway.iwcm.system.stripes
Class WebJETActionBean
java.lang.Object
sk.iway.iwcm.system.stripes.WebJETActionBean
- All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean,IncludeRequestWrapperInterface
- Direct Known Subclasses:
AdresarAction,ConfImportAction,GalleryActionBean,RegUserAction,ReservationAjaxAction,SyncDirAction,UniversalCrudAction
public class WebJETActionBean
extends Object
implements net.sourceforge.stripes.action.ActionBean, IncludeRequestWrapperInterface
WebJETActionBean.java - supertrieda pre standardne Stripes Action Beany
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sourceforge.stripes.action.ActionBeanContextjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpSessionbooleanVrati true, ak je prihlaseny administratorbooleanisAdminLoggedWithPerms(String module) Vrati true, ak je prihlaseny administrator a ma povoleny dany modulbooleanVrati true ak je prihlaseny akykolvek user (navstevnik stranky)voidvoidvoidsetContext(net.sourceforge.stripes.action.ActionBeanContext context) voidsetErrorText(String text) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sk.iway.iwcm.system.stripes.IncludeRequestWrapperInterface
prepareIncludeRequestWrapper, removeIncludeRequestWrapper
-
Field Details
-
RESOLUTION_CLOSE
- See Also:
-
RESOLUTION_CONTINUE
- See Also:
-
RESOLUTION_NOT_LOGGED
- See Also:
-
RESOLUTION_CSRF
- See Also:
-
context
protected net.sourceforge.stripes.action.ActionBeanContext context
-
-
Constructor Details
-
WebJETActionBean
public WebJETActionBean()
-
-
Method Details
-
isAdminLogged
public boolean isAdminLogged()Vrati true, ak je prihlaseny administrator- Returns:
-
isAdminLoggedWithPerms
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
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
getSession
public javax.servlet.http.HttpSession getSession() -
getCurrentUser
-
getContext
public net.sourceforge.stripes.action.ActionBeanContext getContext()- Specified by:
getContextin interfacenet.sourceforge.stripes.action.ActionBean
-
setContext
public void setContext(net.sourceforge.stripes.action.ActionBeanContext context) - Specified by:
setContextin interfacenet.sourceforge.stripes.action.ActionBean
-
prepareIncludeRequestWrapper
@Before(stages=BindingAndValidation) public void prepareIncludeRequestWrapper() -
removeIncludeRequestWrapper
@After(stages=BindingAndValidation) public void removeIncludeRequestWrapper()
-