/** * Write all <b>links</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>) for a set of entries. * The necessary key property values must be provided within the <code>data</code> (in form of a {@link List} with a * {@link Map} for each entry. Such a {@link Map} contains all key properties [as <code>property name</code> to * <code>property value</code> mapping] for the entry) and <code>properties</code> for this entity provider must be * set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entry (such a {@link Map} contains * all key properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written links content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLinks(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLinks(contentType, entitySet, data, properties); }
/** * Write all <b>links</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>) for a set of entries. * The necessary key property values must be provided within the <code>data</code> (in form of a {@link List} with a * {@link Map} for each entry. Such a {@link Map} contains all key properties [as <code>property name</code> to * <code>property value</code> mapping] for the entry) and <code>properties</code> for this entity provider must be * set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entry (such a {@link Map} contains * all key properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written links content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLinks(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLinks(contentType, entitySet, data, properties); }
/** * Write all <b>links</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>) for a set of entries. * The necessary key property values must be provided within the <code>data</code> (in form of a {@link List} with a * {@link Map} for each entry. Such a {@link Map} contains all key properties [as <code>property name</code> to * <code>property value</code> mapping] for the entry) and <code>properties</code> for this entity provider must be * set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entry (such a {@link Map} contains * all key properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written links content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLinks(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLinks(contentType, entitySet, data, properties); }
/** * Write all <b>links</b> for key property based on <code>entity data model for an entity set</code> (given as * {@link EdmEntitySet}) * in the specified format (given as <code>contentType</code>) for a set of entries. * The necessary key property values must be provided within the <code>data</code> (in form of a {@link List} with a * {@link Map} for each entry. Such a {@link Map} contains all key properties [as <code>property name</code> to * <code>property value</code> mapping] for the entry) and <code>properties</code> for this entity provider must be * set * (given as {@link EntityProviderWriteProperties}). * * @param contentType format in which the entry should be written * @param entitySet entity data model for given entity data set * @param data set of entries in form of a {@link List} with a {@link Map} for each entry (such a {@link Map} contains * all key properties [as <code>property name</code> to <code>property value</code> mapping). * @param properties additional properties necessary for writing of data * @return resulting {@link ODataResponse} with written links content. * @throws EntityProviderException if writing of data (serialization) fails */ public static ODataResponse writeLinks(final String contentType, final EdmEntitySet entitySet, final List<Map<String, Object>> data, final EntityProviderWriteProperties properties) throws EntityProviderException { return createEntityProvider().writeLinks(contentType, entitySet, data, properties); }