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 7 import java.util.Vector ; 8 9 16 public class GroupsNode extends SubjectNode { 17 int siteId; 18 19 public GroupsNode(String uuri, Vector bindings, Vector parentBindings, Vector links, int siteId) { 20 super(uuri, bindings, parentBindings, links); 21 this.siteId = siteId; 22 } 23 24 public String getBindingUuri(String bindingName) { 25 String s = super.getBindingUuri(bindingName); 26 if (s == null) { 27 if (ServicesRegistry.getInstance().getJahiaGroupManagerService().lookupGroup(siteId, bindingName) != null || 28 ServicesRegistry.getInstance().getJahiaGroupManagerService().lookupGroup(0, bindingName) != null) { 29 s = "/groups/"+bindingName; 30 } 31 } 32 return s; 33 } 34 } 35 | Popular Tags |