Class BaseAction

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
ru.bgcrm.struts.action.BaseAction
Direct Known Subclasses:
AccountHandlingAction, AddressDistributionAction, AppointmentAction, AuthenticationAction, BaseAction, BeelineSimCardAction, CamerasWizardAction, CardAction, CompensationAction, ConfigAction, ConfigHistoryAction, ContractAction, ContractAuthAction, CustomerAction, CustomerAction, CustomerApiAction, CustomProcessCreateAction, DeviceHistoryAction, DiagnosticsAction, DirectoryAction, DirectoryAddressAction, DispatchAction, DispatchAction, DocumentAction, DynamicAction, EmptyAction, FileAction, GSMAction, HelpDeskAction, HousesUploadAction, ItMaintenanceAction, LinkAction, LockAction, LogAction, LoginAction, MaintenanceULAction, MessageAction, MessageCallAction, NewsAction, NomenclatureLinkAction, NotificationAction, ParameterAction, PerimeterApiAction, PhoneAction, PKOAction, PoolAction, ProcessAction, ProcessAction, ProfileAction, PromotionsAction, QueueAction, RedisAction, ReportAction, SberbankApiAction, SearchAction, ServiceCardAction, ServicePasswordAction, ServiceWizardAction, SimCardAction, SimCardAction, SmartHouseAction, SmartyAction, StateAction, SuspensionAction, TariffInfoAction, TaskAction, TransferBackendAction, UserAction, UserAction, VacancyAction, WebRequestAction, WifiPortalAction, WorkAction

public class BaseAction extends org.apache.struts.actions.DispatchAction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final ru.bgcrm.logging.Logger
     
    static final com.fasterxml.jackson.databind.ObjectMapper
     
    protected Setup
     

    Fields inherited from class org.apache.struts.actions.DispatchAction

    clazz, methods, types

    Fields inherited from class org.apache.struts.actions.BaseAction

    messages

    Fields inherited from class org.apache.struts.action.Action

    servlet
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BaseAction(Class<?> clazz)
    Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected org.apache.struts.action.ActionForward
    dispatchMethod(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String name)
     
    protected boolean
    getAccess(String accessList, String accessItemKey, int value)
     
    protected com.fasterxml.jackson.databind.ObjectMapper
     
    protected org.apache.struts.action.ActionForward
    Отправляет ответ в по-умолчанию в JSON форме.
    protected org.apache.struts.action.ActionForward
    processJsonForward(Connection con, DynActionForm form, com.fasterxml.jackson.databind.ObjectMapper customMapper)
     
    protected org.apache.struts.action.ActionForward
    processJsonForward(Connection con, DynActionForm form, javax.servlet.http.HttpServletResponse response)
    Deprecated.
    protected org.apache.struts.action.ActionForward
     
    protected org.apache.struts.action.ActionForward
    processJsonForward(ConnectionSet conSet, DynActionForm form, com.fasterxml.jackson.databind.ObjectMapper usedMapper)
    Отправляет ответ в по-умолчанию в JSON форме.
    protected org.apache.struts.action.ActionForward
    processJsonForward(ConnectionSet conSet, DynActionForm form, javax.servlet.http.HttpServletResponse response)
    Deprecated.
    protected org.apache.struts.action.ActionForward
    processUserTypedForward(Connection con, org.apache.struts.action.ActionMapping mapping, DynActionForm form, String htmlForwardName)
    Отправляет ответ в JSON либо HTML форме.
    protected org.apache.struts.action.ActionForward
    processUserTypedForward(Connection con, org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletResponse response, String htmlForwardName)
    Deprecated.
    protected org.apache.struts.action.ActionForward
    processUserTypedForward(ConnectionSet conSet, org.apache.struts.action.ActionMapping mapping, DynActionForm form, String htmlForwardName)
    Отправляет ответ в JSON либо HTML форме.
    protected org.apache.struts.action.ActionForward
    processUserTypedForward(ConnectionSet conSet, org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletResponse response, String htmlForwardName)
    Deprecated.
    protected final org.apache.struts.action.ActionForward
    unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected org.apache.struts.action.ActionForward
    unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, Connection con)
     
    protected org.apache.struts.action.ActionForward
    unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Connection con)
     
    protected org.apache.struts.action.ActionForward
    unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ConnectionSet conSet)
     
    protected org.apache.struts.action.ActionForward
    unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, ConnectionSet conSet)
     
    protected void
     

    Methods inherited from class org.apache.struts.actions.DispatchAction

    cancelled, execute, getMethod, getMethodName, getParameter

    Methods inherited from class org.apache.struts.action.Action

    addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mapper

      public static final com.fasterxml.jackson.databind.ObjectMapper mapper
    • FORWARD_DEFAULT

      protected final String FORWARD_DEFAULT
      See Also:
    • log

      protected final ru.bgcrm.logging.Logger log
    • setup

      protected Setup setup
  • Constructor Details

    • BaseAction

      public BaseAction()
    • BaseAction

      @Deprecated public BaseAction(Class<?> clazz)
      Deprecated.
      Использовать пустой конструктор
  • Method Details

    • unspecified

      protected final org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Overrides:
      unspecified in class org.apache.struts.actions.DispatchAction
      Throws:
      Exception
    • unspecified

      protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Connection con) throws Exception
      Throws:
      Exception
    • unspecified

      protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, Connection con) throws Exception
      Throws:
      Exception
    • unspecified

      protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ConnectionSet conSet) throws Exception
      Throws:
      Exception
    • unspecified

      protected org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, DynActionForm form, ConnectionSet conSet) throws Exception
      Throws:
      Exception
    • dispatchMethod

      protected org.apache.struts.action.ActionForward dispatchMethod(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String name) throws Exception
      Overrides:
      dispatchMethod in class org.apache.struts.actions.DispatchAction
      Throws:
      Exception
    • processUserTypedForward

      @Deprecated protected org.apache.struts.action.ActionForward processUserTypedForward(Connection con, org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletResponse response, String htmlForwardName)
      Deprecated.
    • processUserTypedForward

      protected org.apache.struts.action.ActionForward processUserTypedForward(Connection con, org.apache.struts.action.ActionMapping mapping, DynActionForm form, String htmlForwardName)
      Отправляет ответ в JSON либо HTML форме. В зависимости от параметра responseType в form. По-умолчанию HTML. При отправке в JSON вызывается processJsonForward(Connection, DynActionForm, HttpServletResponse)
      Parameters:
      con - TODO
      form -
      htmlForwardName - имя форварда из struts-config.xml
      Returns:
    • processUserTypedForward

      @Deprecated protected org.apache.struts.action.ActionForward processUserTypedForward(ConnectionSet conSet, org.apache.struts.action.ActionMapping mapping, DynActionForm form, javax.servlet.http.HttpServletResponse response, String htmlForwardName)
      Deprecated.
    • processUserTypedForward

      protected org.apache.struts.action.ActionForward processUserTypedForward(ConnectionSet conSet, org.apache.struts.action.ActionMapping mapping, DynActionForm form, String htmlForwardName)
      Отправляет ответ в JSON либо HTML форме. В зависимости от параметра responseType в form. По-умолчанию HTML. При отправке в JSON вызывается processJsonForward(Connection, DynActionForm, HttpServletResponse)
      Parameters:
      conSet -
      form -
      htmlForwardName - имя форварда из struts-config.xml
      Returns:
    • processJsonForward

      @Deprecated protected org.apache.struts.action.ActionForward processJsonForward(Connection con, DynActionForm form, javax.servlet.http.HttpServletResponse response)
      Deprecated.
    • processJsonForward

      protected org.apache.struts.action.ActionForward processJsonForward(Connection con, DynActionForm form)
      Отправляет ответ в по-умолчанию в JSON форме. Если только не указан атрибут form.forwardFile
      Parameters:
      con - TODO
      form -
      Returns:
    • processJsonForward

      protected org.apache.struts.action.ActionForward processJsonForward(ConnectionSet conSet, DynActionForm form, com.fasterxml.jackson.databind.ObjectMapper usedMapper)
      Отправляет ответ в по-умолчанию в JSON форме. Если только не указан атрибут form.forwardFile
      Parameters:
      conSet -
      form -
      Returns:
    • processJsonForward

      @Deprecated protected org.apache.struts.action.ActionForward processJsonForward(ConnectionSet conSet, DynActionForm form, javax.servlet.http.HttpServletResponse response)
      Deprecated.
    • getAccess

      protected boolean getAccess(String accessList, String accessItemKey, int value)
    • checkModifyed

      protected void checkModifyed(LastModify lastModify, DynActionForm form) throws BGException
      Throws:
      BGException
    • processJsonForward

      protected org.apache.struts.action.ActionForward processJsonForward(Connection con, DynActionForm form, com.fasterxml.jackson.databind.ObjectMapper customMapper)
    • processJsonForward

      protected org.apache.struts.action.ActionForward processJsonForward(ConnectionSet conSet, DynActionForm form)
    • getDefaultMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper()
    • writeBytesToOutputStream

      protected void writeBytesToOutputStream(byte[] bytes, OutputStream out) throws IOException
      Throws:
      IOException