implementation and use of user and group dao

This commit is contained in:
Sebastian Sdorra
2012-03-15 21:38:47 +01:00
parent 72a00e8371
commit 326612e00a
12 changed files with 702 additions and 130 deletions

View File

@@ -64,6 +64,7 @@ import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import sonia.scm.user.xml.XmlUserDAO;
/**
*
@@ -144,7 +145,8 @@ public class ChangePasswordResource
logger.info("password change for user {}", currentUser.getName());
}
if (currentUser.getType().equals(XmlUserManager.TYPE))
// TODO remove dependency to xml implementation
if (currentUser.getType().equals(XmlUserDAO.TYPE))
{
User dbUser = userManager.get(currentUser.getName());