return; final boolean prepend = ann.prepend(); JavaType propType = null; JsonAppend.Attr[] attrs = ann.attrs(); for (int i = 0, len = attrs.length; i < len; ++i) { if (propType == null) { JsonAppend.Prop[] props = ann.props(); for (int i = 0, len = props.length; i < len; ++i) { BeanPropertyWriter bpw = _constructVirtualProperty(props[i],
@JsonAppend(props = { @JsonAppend.Prop(value = LinkPropertyWriter.class, name = EntityMixin.PROPERTY_LINK, include = JsonInclude.Include.NON_EMPTY) }) public abstract class EntityMixin { public static final String PROPERTY_LINK = "links"; }
@JsonAppend(props = { @JsonAppend.Prop(value = LinkPropertyWriter.class, name = EntityMixin.PROPERTY_LINK, include = JsonInclude.Include.NON_EMPTY) }) public abstract class EntityMixin { public static final String PROPERTY_LINK = "links"; }
return; final boolean prepend = ann.prepend(); JavaType propType = null; JsonAppend.Attr[] attrs = ann.attrs(); for (int i = 0, len = attrs.length; i < len; ++i) { if (propType == null) { JsonAppend.Prop[] props = ann.props(); for (int i = 0, len = props.length; i < len; ++i) { BeanPropertyWriter bpw = _constructVirtualProperty(props[i],
/** * Interface label for entities that require ACL security. */ @JsonAppend(props = { @JsonAppend.Prop(name = "_class", value = JsonClassNameWriter.class, type = String.class), @JsonAppend.Prop(name = "_permissions", value = CurrentPermissionsWriter.class, type = Permissions.class) }) public interface AclAwareModel extends Serializable, EntityId { /** * Objects belonging to some parent can override this method. * * @return the parent ACL object (null by default) */ default AclAwareModel aclParentObject() { return null; } }
return; final boolean prepend = ann.prepend(); JavaType propType = null; JsonAppend.Attr[] attrs = ann.attrs(); for (int i = 0, len = attrs.length; i < len; ++i) { if (propType == null) { JsonAppend.Prop[] props = ann.props(); for (int i = 0, len = props.length; i < len; ++i) { BeanPropertyWriter bpw = _constructVirtualProperty(props[i],
@JsonAppend(props = { @JsonAppend.Prop( name = "_links",
return; final boolean prepend = ann.prepend(); JavaType propType = null; JsonAppend.Attr[] attrs = ann.attrs(); for (int i = 0, len = attrs.length; i < len; ++i) { if (propType == null) { JsonAppend.Prop[] props = ann.props(); for (int i = 0, len = props.length; i < len; ++i) { BeanPropertyWriter bpw = _constructVirtualProperty(props[i],
@JsonAppend(props = { @JsonAppend.Prop( name = "_links",
return; final boolean prepend = ann.prepend(); JavaType propType = null; JsonAppend.Attr[] attrs = ann.attrs(); for (int i = 0, len = attrs.length; i < len; ++i) { if (propType == null) { JsonAppend.Prop[] props = ann.props(); for (int i = 0, len = props.length; i < len; ++i) { BeanPropertyWriter bpw = _constructVirtualProperty(props[i],
@JsonAppend(props = { @JsonAppend.Prop( name = "_links",
@JsonAppend(props = { @JsonAppend.Prop( name = "value", value = HippoHtmlVirtualBeanPropertyWriter.class ) } ) @JsonIdentityInfo(generator = ObjectIdGenerators.None.class) public interface HippoHtmlBeanMixin extends HippoHtmlBean, HippoBeanMixin { @JsonIgnore @Override String getRepresentationId(); @JsonIgnore() @Override String getContent(); }
@JsonAppend(props = { @JsonAppend.Prop(name = "_class", value = JsonClassNameWriter.class, type = String.class) }) public class BasicModel implements EntityId, Serializable {