public class YNodeProcessor extends DefaultNodeProcessor
| Constructor and Description |
|---|
YNodeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<PropertyMapping> |
performAttributeSelection(NodeContextImpl nodeCtx,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> httpQueryParameters,
WsUtilService wsUtilService)
Perfoms attribute selection for the currently processed node in Model->DTO transformation.
|
protected void |
processProperties(NodeContextImpl nodeCtx,
java.lang.Object source,
java.lang.Object target)
Processes selected properties and checks the security constrains('type' and 'attribute') on attribute level for
current session user and Node.
|
createChildProperty, processcreateNode, processprotected void processProperties(NodeContextImpl nodeCtx, java.lang.Object source, java.lang.Object target)
This method differs from the original implementation in superclass in that it is not processing all available properties, but instead it is processing those properties that have been selected for processing. The rules for selection are simple: If there is dynamic configuration for properties (query parameters) use it first. If there is no dynamic configuration, but a static configuration exists, use it. If there's neither dynamic nor static configuration, use defaults. By default detail representation contains all attributes (it is the case of processing non-root resource at distance=0), and reference representation contains only "uri" and "unique" properties (it is the case for root resources and non-root resources at distance > 0).
The Attribute Security part.
ForbiddenException or
allows to process all modified attributes.SecurityStrategyprocessProperties in class DefaultNodeProcessornodeCtx - NodeContextImpl current node contextsource - source node valuetarget - target node value (never null)protected java.util.Collection<PropertyMapping> performAttributeSelection(NodeContextImpl nodeCtx, java.util.Map<java.lang.String,java.util.List<java.lang.String>> httpQueryParameters, WsUtilService wsUtilService)
nodeCtx - wsUtilService - Copyright © 2018 SAP SE. All Rights Reserved.