Class BasicJsonExclusionStrategy
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.core.BasicJsonExclusionStrategy
- All Implemented Interfaces:
com.google.gson.ExclusionStrategy,BusinessObject,BusinessProcessor,JsonExclusionStrategy
public class BasicJsonExclusionStrategy
extends BaseBusinessProcessor
implements com.google.gson.ExclusionStrategy, JsonExclusionStrategy
-
Field Summary
Fields inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisCurrentAdministratorInRole(String[] roles) protected booleanisCustomerPasswordField(com.google.gson.FieldAttributes f) protected booleanisFieldCollectionOrMap(com.google.gson.FieldAttributes f) booleanshouldSkipClass(Class<?> arg0) booleanshouldSkipField(com.google.gson.FieldAttributes f) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Constructor Details
-
BasicJsonExclusionStrategy
public BasicJsonExclusionStrategy()
-
-
Method Details
-
shouldSkipField
public boolean shouldSkipField(com.google.gson.FieldAttributes f) - Specified by:
shouldSkipFieldin interfacecom.google.gson.ExclusionStrategy
-
shouldSkipClass
- Specified by:
shouldSkipClassin interfacecom.google.gson.ExclusionStrategy
-
isCustomerPasswordField
protected boolean isCustomerPasswordField(com.google.gson.FieldAttributes f) -
isFieldCollectionOrMap
protected boolean isFieldCollectionOrMap(com.google.gson.FieldAttributes f) -
isCurrentAdministratorInRole
-