protected CCatalogEntry toModel(CatalogEntryDTO dto) { CCatalogEntry model = new CCatalogEntry(); model.setId(dto.getId()); model.setName(dto.getName()); model.setRealm(dto.getRealm()); model.setType(dto.getType()); model.setUrl(dto.getUrl()); return model; }
protected CatalogEntryDTO toRest(CCatalogEntry cEntry) { CatalogEntryDTO entry = new CatalogEntryDTO(); entry.setId(cEntry.getId()); entry.setName(cEntry.getName()); entry.setRealm(cEntry.getRealm()); entry.setType(cEntry.getType()); entry.setUrl(cEntry.getUrl()); return entry; }