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

io.mosip.admin.bulkdataupload.repositories.RegisteredDeviceRepository Maven / Gradle / Ivy

There is a newer version: 1.2.1.0
Show newest version
package io.mosip.admin.bulkdataupload.repositories;

import org.springframework.stereotype.Repository;

import io.mosip.admin.bulkdataupload.entity.RegisteredDevice;
import io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository;

// TODO: Auto-generated Javadoc
/**
 * The Interface RegisteredDeviceRepository.
 * 
 * @author Srinivasan
 * @author Megha Tanga
 * @author Ramadurai Pandian
 */
@Repository
public interface RegisteredDeviceRepository extends BaseRepository {

	/**
	 * Find by code and is active is true.
	 *
	 * @param deviceCode the device code
	 * @return the registered device
	 */
	RegisteredDevice findByCodeAndIsActiveIsTrue(String deviceCode);

	/**
	 * Find by code and dp id.
	 *
	 * @param deviceCode the device code
	 * @param providerId the provider id
	 * @return the registered device
	 */
	RegisteredDevice findByCodeAndDpId(String deviceCode, String providerId);
	
	/**
	 * Find by serial no and dp id.
	 *
	 *
	 * @param providerId the provider id
	 *  @param serialno the serial no
	 * @return the registered device
	 */	
	RegisteredDevice findByDpIdAndSerialNoAndIsActiveIsTrue(String providerId,String serialno);

	/**
	 * Find by code and purpose and is active is true.
	 *
	 * @param deviceCode the device code
	 * @param purpose    the purpose
	 * @return the registered device
	 */
	RegisteredDevice findByCodeAndPurposeIgnoreCaseAndIsActiveIsTrue(String deviceCode, String purpose);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy