Class BaseAdminapiAction

    • Constructor Detail

      • BaseAdminapiAction

        public BaseAdminapiAction()
    • Method Detail

      • preProcess

        public void preProcess​(net.anotheria.maf.action.ActionMapping mapping,
                               jakarta.servlet.http.HttpServletRequest req,
                               jakarta.servlet.http.HttpServletResponse res)
                        throws java.lang.Exception
        Specified by:
        preProcess in interface net.anotheria.maf.action.Action
        Overrides:
        preProcess in class net.anotheria.webutils.actions.BaseAction
        Throws:
        java.lang.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 java.lang.Exception
        Throws:
        java.lang.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 java.lang.Exception
        Throws:
        java.lang.Exception
      • isAuthorizationRequired

        protected boolean isAuthorizationRequired()
      • getRequiredRoles

        protected java.util.List<java.lang.String> getRequiredRoles()
      • checkAuthorization

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

        public java.lang.String getSubsystem()
      • stripPath

        protected java.lang.String stripPath​(java.lang.String path)
      • 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,
                                       java.lang.String... roles)
      • prepareMenu

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

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

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

        protected abstract java.lang.String getActiveMainNavi()
      • getCurrentModuleDefName

        protected abstract java.lang.String getCurrentModuleDefName()
      • getCurrentDocumentDefName

        protected abstract java.lang.String getCurrentDocumentDefName()
      • getSupportedLanguages

        public static java.util.List<java.lang.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.