Class SubjectFilterOnWriteCallback
- java.lang.Object
-
- de.businesscode.bcdui.binding.write.WriteProcessingCallback
-
- de.businesscode.bcdui.binding.write.SubjectFilterOnWriteCallback
-
public class SubjectFilterOnWriteCallback extends WriteProcessingCallback
Enforce SubjectFilters on write This callback is registered if SubjectFilters are declared for a BindingSet It applies its ruled for writing It does currently not support nested filter expressions (only flat AND or OR) and only '=' for comparison
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.businesscode.bcdui.binding.write.WriteProcessingCallback
WriteProcessingCallback.ROW_TYPE
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<BindingItem>
columns
protected boolean
conIsAnd
protected java.util.List<de.businesscode.bcdui.binding.write.SubjectFilterOnWriteCallback.EnforcedBi>
enforcedBis
protected org.apache.shiro.subject.Subject
subject
-
Fields inherited from class de.businesscode.bcdui.binding.write.WriteProcessingCallback
bindingSet
-
-
Constructor Summary
Constructors Constructor Description SubjectFilterOnWriteCallback(Connective con)
Evaluate the SubjectFilter defined and translate it into the enforced BindingItems
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDataRow(WriteProcessingCallback.ROW_TYPE rowType, java.util.List<java.lang.String> cValues, java.util.List<java.lang.String> oValues)
Each row must have an allowed value for each enforcedBis setvoid
endHeader(java.util.List<BindingItem> columns, java.util.List<java.lang.Integer> columnTypes, java.util.Collection<java.lang.String> keyColumnNames)
Make sure the Wrq contains all enforcedBis-
Methods inherited from class de.businesscode.bcdui.binding.write.WriteProcessingCallback
getParams, getValueBean, indexOf, initialize, setBindingSet, setParams, setValueBean
-
-
-
-
Field Detail
-
enforcedBis
protected java.util.List<de.businesscode.bcdui.binding.write.SubjectFilterOnWriteCallback.EnforcedBi> enforcedBis
-
subject
protected org.apache.shiro.subject.Subject subject
-
columns
protected java.util.List<BindingItem> columns
-
conIsAnd
protected boolean conIsAnd
-
-
Constructor Detail
-
SubjectFilterOnWriteCallback
public SubjectFilterOnWriteCallback(Connective con)
Evaluate the SubjectFilter defined and translate it into the enforced BindingItems- Parameters:
con
-
-
-
Method Detail
-
endHeader
public void endHeader(java.util.List<BindingItem> columns, java.util.List<java.lang.Integer> columnTypes, java.util.Collection<java.lang.String> keyColumnNames) throws java.lang.Exception
Make sure the Wrq contains all enforcedBis- Overrides:
endHeader
in classWriteProcessingCallback
- Throws:
java.lang.Exception
-
endDataRow
public void endDataRow(WriteProcessingCallback.ROW_TYPE rowType, java.util.List<java.lang.String> cValues, java.util.List<java.lang.String> oValues) throws java.lang.Exception
Each row must have an allowed value for each enforcedBis set- Overrides:
endDataRow
in classWriteProcessingCallback
- Parameters:
rowType
- depending on the rowtype cValues and oValues change semantics, i.e: wrs:C in wrs:I vs wrs:C in wrs:McValues
- list of values of wrs:C columnsoValues
- list of values of wrs:O columns- Throws:
java.lang.Exception
-
-