AnsweredAssumed Answered

RepositoryService get user home folder (SOLVED)

Question asked by giafar on Jun 9, 2008
Latest reply on Jun 9, 2008 by giafar
Hi all,
I'm new to alfresco and i want to get user home folder but i don't know how to get node starting from "workspace://SpacesStore/48216e2b-285e-11dd-9cfe-3d992136d06f".

public void getHomeFolder(AuthenticationDetails ad, String userName) {
  AdministrationServiceSoapBindingStub admin = WebServiceClient.getAdministrationService(ad);
  UserDetails ud= admin.getUser(userName);
  NamedValue[] nv = ud.getProperties();
    for (int i = 0; i < nv.length; i++) {
   if (nv[i].getName().equals(Constants.PROP_USER_HOMEFOLDER)) {
          // nv[i].getValue() is [b]workspace://SpacesStore/48216e2b-285e-11dd-9cfe-3d992136d06f[/b]

Thans in advance !