Class RoleRepositoryImpl
- java.lang.Object
 - 
- org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
 - 
- org.motechproject.mots.repository.custom.impl.RoleRepositoryImpl
 
 
 
- 
- All Implemented Interfaces:
 RoleRepositoryCustom
public class RoleRepositoryImpl extends BaseRepositoryImpl implements RoleRepositoryCustom
 
- 
- 
Field Summary
- 
Fields inherited from class org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
CHW_ID, CHW_NAME, DISTRICT, EMAIL, entityManager, FACILITY, GROUP, INCHARGE_EMAIL, INCHARGE_FULL_NAME, INCHARGE_PHONE, NAME, PHONE_NUMBER, ROLES, SECTOR, SELECTED, USERNAME, VILLAGE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description RoleRepositoryImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<UserRole>search(java.lang.String name, org.springframework.data.domain.Pageable pageable)FindsUserRoles matching all of the provided parameters.- 
Methods inherited from class org.motechproject.mots.repository.custom.impl.BaseRepositoryImpl
addSortProperties, getFirstResult, getPageSize, getPath, getSortDirection 
 - 
 
 - 
 
- 
- 
Method Detail
- 
search
public org.springframework.data.domain.Page<UserRole> search(java.lang.String name, org.springframework.data.domain.Pageable pageable)
FindsUserRoles matching all of the provided parameters. If there are no parameters, return all Roles.- Specified by:
 searchin interfaceRoleRepositoryCustom- Parameters:
 pageable- pagination parameters (page size, page number, sort order)name- name of a role- Returns:
 - page with found Roles
 
 
 - 
 
 -