1 package org.jahia.services.webdav.stores; 2 3 import org.apache.slide.structure.SubjectNode; 4 import org.apache.slide.util.Messages; 5 import org.apache.slide.common.ObjectValidationFailedException; 6 7 import java.util.Vector ; 8 9 23 public class UserLinkNode extends SubjectNode { 24 25 26 28 29 32 public UserLinkNode() { 33 super(); 34 } 35 36 37 40 public UserLinkNode(String uri) { 41 super(uri); 42 } 43 44 45 48 public UserLinkNode(String uri, Vector children, Vector links) { 49 super(uri, children, links); 50 } 51 52 53 56 public UserLinkNode(String uri, Vector children, Vector links, 57 String linkedUri) { 58 super(uri, children, links); 59 setLinkedUri(linkedUri); 60 } 61 62 public UserLinkNode(String uuri, Vector bindings, Vector parentset, Vector links, String linkedUri) { 63 super(uuri, bindings, parentset, links); 64 setLinkedUri(linkedUri); 65 } 66 67 69 70 73 protected String linkedUri; 74 75 76 78 79 84 public String getLinkedUri() { 85 return linkedUri; 86 } 87 88 89 94 void setLinkedUri(String linkedUri) { 95 if (!linkedUri.equals(getUri())) { 96 this.linkedUri = linkedUri; 97 } 98 } 99 100 101 106 public void validate(String expectedUri) { 107 super.validate(expectedUri); 108 109 if (linkedUri == null) 110 throw new ObjectValidationFailedException 111 (uri, Messages.message 112 (UserLinkNode.class.getName() + ".nullLink")); 113 114 } 115 116 117 118 } 119 | Popular Tags |