/** The home base path. */
private String homeBasePath = "/home";
- public Node sync(Session session, String username, List<String> roles) {
+ public synchronized Node sync(Session session, String username,
+ List<String> roles) {
// TODO check user name validity (e.g. should not start by ROLE_)
try {
// Remote roles
if (roles != null) {
- //writeRemoteRoles(userHome, roles);
+ // writeRemoteRoles(userHome, roles);
}
Node userProfile = UserJcrUtils.getUserProfile(session, username);