Class BaseAdministratorForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.administrator.core.BaseAdministratorForm
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddCouponForm
,AdministratorAddEditForm
,AdministratorChangePasswordForm
,AttributeAddEditForm
,AvaTaxOrderForm
,BasicTaxAddEditForm
,CardInfoCleanUpForm
,CategoryAddEditForm
,CategorySettingAddEditForm
,CountryAddEditForm
,CustomerAddEditForm
,CustomerAddressAddEditForm
,CustomerWishListAddEditForm
,DiscountAddEditForm
,DiscountRangeAddEditForm
,EmailAddEditForm
,EmailOptOutAddEditForm
,GoogleSitemapsForm
,LoginForm
,LuceneForm
,ManufacturerAddEditForm
,MonthlySalesForm
,OptionAddEditForm
,OrderAddEditForm
,OrderDeliveryAddEditForm
,OrderDiscountAddEditForm
,OrderItemAddEditForm
,OrderItemAttributeAddEditForm
,OrderShippingRuleAddEditForm
,PaymentAddEditForm
,ProcessPaymentForm
,ProductAddEditForm
,ProductReviewAddEditForm
,ProductSettingAddEditForm
,ProductSettingAddEditFormAttachments
,ProductSettingAddEditFormImages
,PruneRequestLogForm
,QboOrderForm
,RequestLogAddEditForm
,RoleAddEditForm
,SalesByProductForm
,SendEmailsForm
,SettingsFormAddress
,ShippingForm
,ShippingMethodAddEditForm
,ShippingRateAddEditForm
,ShippingRuleAddEditForm
,ShippingRuleRangeAddEditForm
,SKUAddEditForm
,StateAddEditForm
,TemplateAddEditForm
,UserSettingAddEditForm
Extends the
BaseForm
class to provide base functionality for
form classes in the administrator. Provides a getter and setter for the
current user's Administrator
object.- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate Administrator
TheAdministrator
object representing the current administrative user.private FormUtils
private static final long
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addingAndFieldIsBlank
(Integer field) boolean
addingAndFieldIsBlank
(String field) boolean
containsUnsafeCharacter
(String string, javax.servlet.http.HttpServletRequest request) boolean
boolean
getFormUtils
(javax.servlet.http.HttpServletRequest request) void
initializeProperties
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Initializes all the properties of thisBaseForm
by copying the objects from the request, session, and application scopes.void
setAdministrator
(Administrator administrator) Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, html5OrXhtml, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
administrator
TheAdministrator
object representing the current administrative user. -
formUtils
-
-
Constructor Details
-
BaseAdministratorForm
public BaseAdministratorForm()
-
-
Method Details
-
getAdministrator
-
setAdministrator
-
initializeProperties
public void initializeProperties(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Description copied from class:BaseForm
Initializes all the properties of thisBaseForm
by copying the objects from the request, session, and application scopes. Called by action classes and within thevalidate
method of thisBaseForm
.- Overrides:
initializeProperties
in classBaseForm
- Parameters:
mapping
- The mapping corresponding to the current action of the request.request
- TheHttpServletRequest
object for this request.
-
getFormUtils
-
containsUnsafeCharacter
-
mapOfIncomingParams
- Throws:
Exception
-
addingNewRecord
public boolean addingNewRecord() -
addingAndFieldIsBlank
-
editingAndFieldIsBeingEmptiedOut
-
addingAndFieldIsBlank
-
editingAndFieldIsBeingEmptiedOut
-