Package org.cyclos.impl.utils
Class InputOutputProcessingHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.utils.InputOutputProcessingHandlerImpl
-
- All Implemented Interfaces:
InputOutputProcessingHandler
@Component public class InputOutputProcessingHandlerImpl extends BaseNetworkedHandlerImpl implements InputOutputProcessingHandler
Implementation forInputOutputProcessingHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInputOutputProcessingHandlerImpl.Context
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
Fields inherited from interface org.cyclos.impl.utils.InputOutputProcessingHandler
FROM_CLIENT_BEAN_ATTR
-
-
Constructor Summary
Constructors Constructor Description InputOutputProcessingHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processFromClient(T object, boolean logJson)Recursively processes the object received from a client<T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processMethodResult(Method method, T result, boolean logJson)Recursively processes the result of the given method call<T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processToClient(T object, boolean logJson)Recursively processes the given object to send to a client-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
processFromClient
public <T> Pair<T,com.fasterxml.jackson.databind.JsonNode> processFromClient(T object, boolean logJson)
Description copied from interface:InputOutputProcessingHandlerRecursively processes the object received from a client- Specified by:
processFromClientin interfaceInputOutputProcessingHandler- Parameters:
object- The object to processlogJson- If true, the second pair value will be a JsonNode to show in the log as parameter
-
processMethodResult
public <T> Pair<T,com.fasterxml.jackson.databind.JsonNode> processMethodResult(Method method, T result, boolean logJson)
Description copied from interface:InputOutputProcessingHandlerRecursively processes the result of the given method call- Specified by:
processMethodResultin interfaceInputOutputProcessingHandlerresult- The method resultlogJson- If true, the second pair value will be a JsonNode to show in the log as result
-
processToClient
public <T> Pair<T,com.fasterxml.jackson.databind.JsonNode> processToClient(T object, boolean logJson)
Description copied from interface:InputOutputProcessingHandlerRecursively processes the given object to send to a client- Specified by:
processToClientin interfaceInputOutputProcessingHandler- Parameters:
object- The object to processlogJson- If true, the second pair value will be a JsonNode to show in the log as result
-
-