package com.eactive.eai.rms.common.acl.user;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eactive.eai.rms.common.base.BaseService;

@Service
@Transactional
public class UserAccountLockService extends BaseService {
	
	private UserDao userDao;
	
	@Autowired
	public UserAccountLockService(UserDao userDao) {
		this.userDao = userDao;
	}
	
	public List<HashMap<String, Object>>  updateUserAccountLock(String schemaId) {
		HashMap<String, Object> paramMap = new HashMap<>();
		paramMap.put("schemaId", schemaId);
		return userDao.updateUserAccountLock(paramMap);
	}
	
	public List<HashMap<String, Object>>  updatePortalUserAccountLock(String schemaId) {
		HashMap<String, Object> paramMap = new HashMap<>();
		paramMap.put("schemaId", schemaId);
		return userDao.updatePortalUserAccountLock(paramMap);
	}

}
