import javax.jcr.Session;
import org.argeo.ArgeoException;
+import org.argeo.jcr.ArgeoJcrUtils;
import org.argeo.jcr.ArgeoNames;
import org.argeo.jcr.JcrUtils;
import org.argeo.security.jcr.JcrUserDetails;
import org.springframework.security.userdetails.UserDetails;
import org.springframework.security.userdetails.ldap.UserDetailsContextMapper;
-/** Read only mapping from LDAP to user details */
+/** @deprecated Read only mapping from LDAP to user details */
+@Deprecated
public class JcrUserDetailsContextMapper implements UserDetailsContextMapper,
ArgeoNames {
/** Admin session on the security workspace */
final String username, GrantedAuthority[] authorities) {
if (ctx == null)
throw new ArgeoException("No LDAP information for user " + username);
- Node userHome = JcrUtils.getUserHome(securitySession, username);
+ Node userHome = ArgeoJcrUtils.getUserHome(securitySession, username);
if (userHome == null)
throw new ArgeoException("No JCR information for user " + username);