1 package org.jahia.services.webdav.stores; 2 3 import org.apache.slide.structure.ObjectNode; 4 import org.apache.slide.structure.SubjectNode; 5 import org.jahia.registries.ServicesRegistry; 6 import org.jahia.exceptions.JahiaException; 7 8 import java.util.Vector ; 9 10 17 public class UsersNode extends SubjectNode { 18 int siteId; 19 20 public UsersNode(String uuri, Vector bindings, Vector parentBindings, Vector links, int siteId) { 21 super(uuri, bindings, parentBindings, links); 22 this.siteId = siteId; 23 } 24 25 public String getBindingUuri(String bindingName) { 26 String s = super.getBindingUuri(bindingName); 27 if (s == null) { 28 try { 29 if (ServicesRegistry.getInstance().getJahiaSiteUserManagerService().getMember(siteId, bindingName) != null) { 30 s = "/users/"+bindingName; 31 } 32 } catch (JahiaException e) { 33 } 34 } 35 return s; 36 } 37 } 38 | Popular Tags |