public class CurrentPermissionsWriter
extends com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriter
AclAwareModel and it
instructs Jackson to to include Permissions for current SID for every
ACL aware entity.
Serialization is enabled @JsonAppend annotation on
AclAwareModel:
@JsonAppend(props = { @JsonAppend.Prop(name="_permissions", value = CurrentPermissionsWriter.class, type=CurrentPermissions.class) })
public interface AclAwareModel...
To be able to access the current permissions of the current SID, this code
relies on an instance of
org.genesys.blocks.util.CurrentApplicationContext to be
registered in the Spring application context._accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY| Constructor and Description |
|---|
CurrentPermissionsWriter()
Instantiates a new current permissions writer.
|
CurrentPermissionsWriter(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef,
com.fasterxml.jackson.databind.util.Annotations annotations,
com.fasterxml.jackson.databind.JavaType type)
Instantiates a new current permissions writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
value(Object bean,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider prov) |
com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriter |
withConfig(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
com.fasterxml.jackson.databind.introspect.AnnotatedClass declaringClass,
com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef,
com.fasterxml.jackson.databind.JavaType type) |
_suppressableValue, _suppressNulls, isVirtual, serializeAsElement, serializeAsField_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, assignNullSerializer, assignSerializer, assignTypeSerializer, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, willSuppressNulls, wouldConflictWithNamepublic CurrentPermissionsWriter()
public CurrentPermissionsWriter(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef,
com.fasterxml.jackson.databind.util.Annotations annotations,
com.fasterxml.jackson.databind.JavaType type)
propDef - the prop defannotations - the annotationstype - the typeprotected Object value(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider prov) throws Exception
value in class com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriterExceptionpublic com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriter withConfig(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
com.fasterxml.jackson.databind.introspect.AnnotatedClass declaringClass,
com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition propDef,
com.fasterxml.jackson.databind.JavaType type)
withConfig in class com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriterCopyright © 2020 Global Crop Diversity Trust. All rights reserved.