Class BaseAnositeAction
- java.lang.Object
-
- net.anotheria.webutils.actions.BaseAction
-
- net.anotheria.anosite.gen.shared.action.BaseAnositeAction
-
- 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 BaseAnositeAction extends net.anotheria.webutils.actions.BaseAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseAnositeAction.LockedDocumentAttributeActually simplest been - which should hold information about document ID and Clazz.
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_CURRENT_APPLICATIONstatic StringBEAN_CURRENT_SYSTEMstatic StringBEAN_DOCUMENT_DEF_NAMEstatic StringBEAN_MAIN_NAVIGATIONstatic StringBEAN_MODULE_DEF_NAMEstatic StringBEAN_SEARCH_SCOPEstatic StringBEAN_USER_DEF_IDstatic StringBEAN_VIEW_SELECTORstatic StringFLAG_DISABLED_SEARCHstatic StringPARAM_SORT_ORDERstatic StringPARAM_SORT_TYPEstatic StringPARAM_SORT_TYPE_NAMEstatic StringSA_FILTER_PREFIXstatic StringSA_PREFIXstatic StringSA_SORT_TYPE_PREFIX
-
Constructor Summary
Constructors Constructor Description BaseAnositeAction()
-
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 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 StringgetCurrentDocumentDefName()protected abstract StringgetCurrentModuleDefName()protected IImagesServicegetImagesService()protected longgetLockingTimeout()protected List<net.anotheria.webutils.bean.NavigationItemBean>getMainNavigation(jakarta.servlet.http.HttpServletRequest req)protected List<String>getRequiredRoles()protected booleangetSortOder(jakarta.servlet.http.HttpServletRequest req)protected abstract List<net.anotheria.webutils.bean.NavigationItemBean>getSubNavigation()StringgetSubsystem()static List<String>getSupportedLanguages()Get current application supported languages wrapper method.protected booleanisAuthorizationRequired()protected booleanisAutoLockingEnabled()protected booleanisUserInRole(jakarta.servlet.http.HttpServletRequest req, 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 StringstripPath(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 String BEAN_MAIN_NAVIGATION
- See Also:
- Constant Field Values
-
BEAN_CURRENT_SYSTEM
public static final String BEAN_CURRENT_SYSTEM
- See Also:
- Constant Field Values
-
BEAN_CURRENT_APPLICATION
public static final String BEAN_CURRENT_APPLICATION
- See Also:
- Constant Field Values
-
BEAN_SEARCH_SCOPE
public static final String BEAN_SEARCH_SCOPE
- See Also:
- Constant Field Values
-
BEAN_DOCUMENT_DEF_NAME
public static final String BEAN_DOCUMENT_DEF_NAME
- See Also:
- Constant Field Values
-
BEAN_MODULE_DEF_NAME
public static final String BEAN_MODULE_DEF_NAME
- See Also:
- Constant Field Values
-
FLAG_DISABLED_SEARCH
public static final String FLAG_DISABLED_SEARCH
- See Also:
- Constant Field Values
-
PARAM_SORT_TYPE
public static final String PARAM_SORT_TYPE
- See Also:
- Constant Field Values
-
PARAM_SORT_TYPE_NAME
public static final String PARAM_SORT_TYPE_NAME
- See Also:
- Constant Field Values
-
PARAM_SORT_ORDER
public static final String PARAM_SORT_ORDER
- See Also:
- Constant Field Values
-
SA_PREFIX
public static final String SA_PREFIX
- See Also:
- Constant Field Values
-
SA_SORT_TYPE_PREFIX
public static final String SA_SORT_TYPE_PREFIX
- See Also:
- Constant Field Values
-
SA_FILTER_PREFIX
public static final String SA_FILTER_PREFIX
- See Also:
- Constant Field Values
-
BEAN_VIEW_SELECTOR
public static final String BEAN_VIEW_SELECTOR
- See Also:
- Constant Field Values
-
BEAN_USER_DEF_ID
public static final 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 Exception- Specified by:
preProcessin interfacenet.anotheria.maf.action.Action- Overrides:
preProcessin classnet.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
-
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()
-
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.
-
-