public class FieldMappedVisibilityHandler extends Object implements VisibilityHandler
Constructor and Description |
---|
FieldMappedVisibilityHandler() |
FieldMappedVisibilityHandler(Map<String,String> fieldVisibilities) |
Modifier and Type | Method and Description |
---|---|
void |
fromBinary(byte[] bytes)
Convert a stream of binary bytes to fields and data within an object.
|
<T> String |
getVisibility(DataTypeAdapter<T> adapter,
T rowValue,
String fieldName)
Determine visibility of the field.
|
byte[] |
toBinary()
Convert fields and data within an object to binary form for transmission or storage.
|
public <T> String getVisibility(DataTypeAdapter<T> adapter, T rowValue, String fieldName)
VisibilityHandler
getVisibility
in interface VisibilityHandler
adapter
- the adapter for the entryrowValue
- the entryfieldName
- the field to determine visibility forpublic byte[] toBinary()
Persistable
toBinary
in interface Persistable
public void fromBinary(byte[] bytes)
Persistable
fromBinary
in interface Persistable
Copyright © 2013–2022. All rights reserved.