All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.kernel.masterdata.service.DynamicFieldService Maven / Gradle / Ivy

There is a newer version: 1.2.1.0
Show newest version
package io.mosip.kernel.masterdata.service;

import io.mosip.kernel.masterdata.dto.DynamicFieldDto;
import io.mosip.kernel.masterdata.dto.DynamicFieldValueDto;
import io.mosip.kernel.masterdata.dto.getresponse.DynamicFieldResponseDto;
import io.mosip.kernel.masterdata.dto.getresponse.PageDto;

/**
 * Methods to create / update / inactivate / addValues dynamic field
 * 
 * @author anusha
 *
 */
public interface DynamicFieldService {
	
	/**
	 * Fetch all dynamic fields
	 * @param pageNumber
	 * @param pageSize
	 * @param sortBy
	 * @param orderBy
	 * @param langCode
	 * @return
	 */
	public PageDto getAllDynamicField(int pageNumber, int pageSize, String sortBy, String orderBy, String langCode);
	
	/**
	 * create dynamic field
	 * @param dto
	 * @return
	 */
	public DynamicFieldResponseDto createDynamicField(DynamicFieldDto dto);
	
	/**
	 * update dynamic field
	 * @param dto
	 * @return
	 */
	public DynamicFieldResponseDto updateDynamicField(String id, DynamicFieldDto dto);
	
	
	/**
	 * Add / updates field value based on the fieldName and langCode
	 * @param fieldId
	 * @param dto
	 * @return
	 */
	public String updateFieldValue(String fieldId, DynamicFieldValueDto dto);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy