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

io.mosip.pms.partner.service.impl.RoleServiceImpl Maven / Gradle / Ivy

The newest version!
package io.mosip.pms.partner.service.impl;

import java.util.Arrays;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import io.mosip.pms.common.dto.RoleExtnDto;
import io.mosip.pms.partner.service.RoleService;

@Service
@Transactional
public class RoleServiceImpl implements RoleService {

	
	@Value("${mosip.pms.ui.required.roles}")
	private String requiredRoles;
	
	@Override
	public RoleExtnDto getUIRequiredRoles() {
		RoleExtnDto roleExtnDto = new RoleExtnDto();
		roleExtnDto.setRoles(Arrays.asList(requiredRoles.split(",")));
		return roleExtnDto;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy