public Set<String> getOperationCodesByUserIdAndFunctionId(String userId, String functionId) {
Set<String> operationCodes = new HashSet<String>();
List<TSRoleUser> rUsers = findByProperty(TSRoleUser.class, "TSUser.id", userId);
for (TSRoleUser ru : rUsers) {
TSRole role = ru.getTSRole();
CriteriaQuery cq1 = new CriteriaQuery(TSRoleFunction.class);
cq1.eq("TSRole.id", role.getId());
cq1.eq("TSFunction.id", functionId);
cq1.add();
List<TSRoleFunction> rFunctions = getListByCriteriaQuery(cq1, false);
if (null != rFunctions && rFunctions.size() > 0) {
TSRoleFunction tsRoleFunction = rFunctions.get(0);