Search in sources :

Example 16 with DataProvider

use of org.finra.herd.model.api.xml.DataProvider in project herd by FINRAOS.

the class DataProviderServiceImpl method createDataProviderFromEntity.

/**
 * Creates the data provider from the persisted entity.
 *
 * @param dataProviderEntity the newly persisted data provider entity.
 *
 * @return the data provider.
 */
private DataProvider createDataProviderFromEntity(DataProviderEntity dataProviderEntity) {
    // Create the data provider information.
    DataProvider dataProvider = new DataProvider();
    dataProvider.setDataProviderName(dataProviderEntity.getName());
    return dataProvider;
}
Also used : DataProvider(org.finra.herd.model.api.xml.DataProvider)

Aggregations

DataProvider (org.finra.herd.model.api.xml.DataProvider)16 Test (org.junit.Test)15 DataProviderKey (org.finra.herd.model.api.xml.DataProviderKey)10 DataProviderCreateRequest (org.finra.herd.model.api.xml.DataProviderCreateRequest)5