Class BaseAdminapiAction
- java.lang.Object
-
- net.anotheria.webutils.actions.BaseAction
-
- net.anotheria.anosite.gen.shared.action.BaseAdminapiAction
-
- All Implemented Interfaces:
net.anotheria.maf.action.Action
- Direct Known Subclasses:
BaseActionsAction,BaseAnoAccessApplicationDataAction,BaseAnoAccessConfigurationAction,BaseBrandsAction,BaseContentAction,BaseDefinitionsAction,BaseFeaturesAction,BaseLayoutAction,BaseResourcesAction,BaseSiteConfigAction,BaseSitexAction,BaseToolsAction,BaseUserAction,BaseWizardAction,CmsSearchAction,WelcomePageMafAction
public abstract class BaseAdminapiAction extends net.anotheria.webutils.actions.BaseAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseAdminapiAction.LockedDocumentAttributeActually simplest been - which should hold information about document ID and Clazz.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_CURRENT_APPLICATIONstatic java.lang.StringBEAN_CURRENT_SYSTEMstatic java.lang.StringBEAN_DOCUMENT_DEF_NAMEstatic java.lang.StringBEAN_MAIN_NAVIGATIONstatic java.lang.StringBEAN_MODULE_DEF_NAMEstatic java.lang.StringBEAN_SEARCH_SCOPEstatic java.lang.StringBEAN_USER_DEF_IDstatic java.lang.StringBEAN_VIEW_SELECTORstatic java.lang.StringFLAG_DISABLED_SEARCHstatic java.lang.StringPARAM_SORT_ORDERstatic java.lang.StringPARAM_SORT_TYPEstatic java.lang.StringPARAM_SORT_TYPE_NAMEstatic java.lang.StringSA_FILTER_PREFIXstatic java.lang.StringSA_PREFIXstatic java.lang.StringSA_SORT_TYPE_PREFIX
-
Constructor Summary
Constructors Constructor Description BaseAdminapiAction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddLockedAttribute(jakarta.servlet.http.HttpServletRequest req, net.anotheria.asg.data.AbstractASGDocument doc)Adding attribute to the session list as LockedDocumentAttribute.abstract net.anotheria.maf.action.ActionCommandanoDocExecute(net.anotheria.maf.action.ActionMapping mapping, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)protected booleancheckAuthorization(jakarta.servlet.http.HttpServletRequest req)protected booleancontainsLockedAttribute(jakarta.servlet.http.HttpServletRequest req, net.anotheria.asg.data.AbstractASGDocument doc)Return true if current document represented as LockedDocumentAttribute.net.anotheria.maf.action.ActionCommandexecute(net.anotheria.maf.action.ActionMapping mapping, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)protected abstract java.lang.StringgetActiveMainNavi()protected IAnoAccessApplicationDataServicegetAnoAccessApplicationDataService()protected IAnoAccessConfigurationServicegetAnoAccessConfigurationService()protected IASActionServicegetASActionService()protected IASBrandServicegetASBrandService()protected IASCustomActionServicegetASCustomActionService()protected IASCustomDataServicegetASCustomDataService()protected IASExperimentServicegetASExperimentService()protected IASFeatureServicegetASFeatureService()protected IASFederatedDataServicegetASFederatedDataService()protected IASGenericActionServicegetASGenericActionService()protected IASGenericDataServicegetASGenericDataService()protected IASLayoutDataServicegetASLayoutDataService()protected IASResourceDataServicegetASResourceDataService()protected IASSiteConfigServicegetASSiteConfigService()protected IASSiteDataServicegetASSiteDataService()protected IASUserDataServicegetASUserDataService()protected IASWebDataServicegetASWebDataService()protected IASWizardDataServicegetASWizardDataService()protected abstract java.lang.StringgetCurrentDocumentDefName()protected abstract java.lang.StringgetCurrentModuleDefName()protected IImagesServicegetImagesService()protected longgetLockingTimeout()protected java.util.List<net.anotheria.webutils.bean.NavigationItemBean>getMainNavigation(jakarta.servlet.http.HttpServletRequest req)protected java.util.List<java.lang.String>getRequiredRoles()protected booleangetSortOder(jakarta.servlet.http.HttpServletRequest req)protected abstract java.util.List<net.anotheria.webutils.bean.NavigationItemBean>getSubNavigation()java.lang.StringgetSubsystem()static java.util.List<java.lang.String>getSupportedLanguages()Get current application supported languages wrapper method.protected booleanisAuthorizationRequired()protected booleanisAutoLockingEnabled()protected booleanisUserInRole(jakarta.servlet.http.HttpServletRequest req, java.lang.String... roles)protected voidprepareMenu(jakarta.servlet.http.HttpServletRequest req)voidpreProcess(net.anotheria.maf.action.ActionMapping mapping, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)protected voidremoveLockedAttribute(jakarta.servlet.http.HttpServletRequest req, net.anotheria.asg.data.AbstractASGDocument doc)Removing attributes List from session.protected java.lang.StringstripPath(java.lang.String path)-
Methods inherited from class net.anotheria.webutils.actions.BaseAction
addBean, addBeanToApplication, addBeanToRequest, addBeanToSession, getBean, getBeanFromApplication, getBeanFromRequest, getBeanFromSession, getErrorPageForward, getIntParameter, getStringParameter, getUserId, handleError, itoa, itoa, makeDateString, makeDateStringLong, makeDigitalDateString, makeDigitalDateStringShort, makeSizeString, makeTimeString, postProcess, removeBean, removeBeanFromApplication, removeBeanFromRequest, removeBeanFromSession, setUserId, throwableToStrackTrace
-
-
-
-
Field Detail
-
BEAN_MAIN_NAVIGATION
public static final java.lang.String BEAN_MAIN_NAVIGATION
- See Also:
- Constant Field Values
-
BEAN_CURRENT_SYSTEM
public static final java.lang.String BEAN_CURRENT_SYSTEM
- See Also:
- Constant Field Values
-
BEAN_CURRENT_APPLICATION
public static final java.lang.String BEAN_CURRENT_APPLICATION
- See Also:
- Constant Field Values
-
BEAN_SEARCH_SCOPE
public static final java.lang.String BEAN_SEARCH_SCOPE
- See Also:
- Constant Field Values
-
BEAN_DOCUMENT_DEF_NAME
public static final java.lang.String BEAN_DOCUMENT_DEF_NAME
- See Also:
- Constant Field Values
-
BEAN_MODULE_DEF_NAME
public static final java.lang.String BEAN_MODULE_DEF_NAME
- See Also:
- Constant Field Values
-
FLAG_DISABLED_SEARCH
public static final java.lang.String FLAG_DISABLED_SEARCH
- See Also:
- Constant Field Values
-
PARAM_SORT_TYPE
public static final java.lang.String PARAM_SORT_TYPE
- See Also:
- Constant Field Values
-
PARAM_SORT_TYPE_NAME
public static final java.lang.String PARAM_SORT_TYPE_NAME
- See Also:
- Constant Field Values
-
PARAM_SORT_ORDER
public static final java.lang.String PARAM_SORT_ORDER
- See Also:
- Constant Field Values
-
SA_PREFIX
public static final java.lang.String SA_PREFIX
- See Also:
- Constant Field Values
-
SA_SORT_TYPE_PREFIX
public static final java.lang.String SA_SORT_TYPE_PREFIX
- See Also:
- Constant Field Values
-
SA_FILTER_PREFIX
public static final java.lang.String SA_FILTER_PREFIX
- See Also:
- Constant Field Values
-
BEAN_VIEW_SELECTOR
public static final java.lang.String BEAN_VIEW_SELECTOR
- See Also:
- Constant Field Values
-
BEAN_USER_DEF_ID
public static final java.lang.String BEAN_USER_DEF_ID
- See Also:
- Constant Field Values
-
-
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:
preProcessin interfacenet.anotheria.maf.action.Action- Overrides:
preProcessin classnet.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
-
getASGenericActionService
protected IASGenericActionService getASGenericActionService()
-
getASUserDataService
protected IASUserDataService getASUserDataService()
-
getASSiteDataService
protected IASSiteDataService getASSiteDataService()
-
getASGenericDataService
protected IASGenericDataService getASGenericDataService()
-
getImagesService
protected IImagesService getImagesService()
-
getASCustomDataService
protected IASCustomDataService getASCustomDataService()
-
getASResourceDataService
protected IASResourceDataService getASResourceDataService()
-
getAnoAccessApplicationDataService
protected IAnoAccessApplicationDataService getAnoAccessApplicationDataService()
-
getASFederatedDataService
protected IASFederatedDataService getASFederatedDataService()
-
getASLayoutDataService
protected IASLayoutDataService getASLayoutDataService()
-
getASActionService
protected IASActionService getASActionService()
-
getASWebDataService
protected IASWebDataService getASWebDataService()
-
getASExperimentService
protected IASExperimentService getASExperimentService()
-
getASCustomActionService
protected IASCustomActionService getASCustomActionService()
-
getASFeatureService
protected IASFeatureService getASFeatureService()
-
getAnoAccessConfigurationService
protected IAnoAccessConfigurationService getAnoAccessConfigurationService()
-
getASWizardDataService
protected IASWizardDataService getASWizardDataService()
-
getASBrandService
protected IASBrandService getASBrandService()
-
getASSiteConfigService
protected IASSiteConfigService getASSiteConfigService()
-
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.
-
-