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

backend.services.auth.UserRoleQueries Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package backend.services.auth;

import backend.utils.DatabaseUtils;

/**
 *
 * @author zua
 */
public class UserRoleQueries {
    public static String findUserRole(String username) {
        String query = "MATCH (u:FlexUser)--(r:UserRole) WHERE u.username=" + DatabaseUtils.getInstance().wrapUp(username) + " RETURN r";
        System.out.println("Query = " + query);
        return query;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy