Class BaseAnositeAction

    • Constructor Detail

      • BaseAnositeAction

        public BaseAnositeAction()
    • Method Detail

      • preProcess

        public void preProcess​(net.anotheria.maf.action.ActionMapping mapping,
                               jakarta.servlet.http.HttpServletRequest req,
                               jakarta.servlet.http.HttpServletResponse res)
                        throws Exception
        Specified by:
        preProcess in interface net.anotheria.maf.action.Action
        Overrides:
        preProcess in class net.anotheria.webutils.actions.BaseAction
        Throws:
        Exception
      • anoDocExecute

        public abstract net.anotheria.maf.action.ActionCommand anoDocExecute​(net.anotheria.maf.action.ActionMapping mapping,
                                                                             jakarta.servlet.http.HttpServletRequest req,
                                                                             jakarta.servlet.http.HttpServletResponse res)
                                                                      throws Exception
        Throws:
        Exception
      • execute

        public net.anotheria.maf.action.ActionCommand execute​(net.anotheria.maf.action.ActionMapping mapping,
                                                              jakarta.servlet.http.HttpServletRequest req,
                                                              jakarta.servlet.http.HttpServletResponse res)
                                                       throws Exception
        Throws:
        Exception
      • isAuthorizationRequired

        protected boolean isAuthorizationRequired()
      • getRequiredRoles

        protected List<String> getRequiredRoles()
      • checkAuthorization

        protected boolean checkAuthorization​(jakarta.servlet.http.HttpServletRequest req)
      • getSubsystem

        public String getSubsystem()
      • getSortOder

        protected boolean getSortOder​(jakarta.servlet.http.HttpServletRequest req)
      • getLockingTimeout

        protected long getLockingTimeout()
      • isAutoLockingEnabled

        protected boolean isAutoLockingEnabled()
      • isUserInRole

        protected boolean isUserInRole​(jakarta.servlet.http.HttpServletRequest req,
                                       String... roles)
      • prepareMenu

        protected void prepareMenu​(jakarta.servlet.http.HttpServletRequest req)
      • getSubNavigation

        protected abstract List<net.anotheria.webutils.bean.NavigationItemBean> getSubNavigation()
      • getMainNavigation

        protected List<net.anotheria.webutils.bean.NavigationItemBean> getMainNavigation​(jakarta.servlet.http.HttpServletRequest req)
      • getActiveMainNavi

        protected abstract String getActiveMainNavi()
      • getCurrentModuleDefName

        protected abstract String getCurrentModuleDefName()
      • getCurrentDocumentDefName

        protected abstract String getCurrentDocumentDefName()
      • getSupportedLanguages

        public static List<String> getSupportedLanguages()
        Get current application supported languages wrapper method.
      • addLockedAttribute

        protected void addLockedAttribute​(jakarta.servlet.http.HttpServletRequest req,
                                          net.anotheria.asg.data.AbstractASGDocument doc)
        Adding attribute to the session list as LockedDocumentAttribute. for Locking and Unlocking functionality
      • removeLockedAttribute

        protected void removeLockedAttribute​(jakarta.servlet.http.HttpServletRequest req,
                                             net.anotheria.asg.data.AbstractASGDocument doc)
        Removing attributes List from session.
      • containsLockedAttribute

        protected boolean containsLockedAttribute​(jakarta.servlet.http.HttpServletRequest req,
                                                  net.anotheria.asg.data.AbstractASGDocument doc)
        Return true if current document represented as LockedDocumentAttribute. in session attributes list.