1 23 24 package org.apache.slide.security; 25 26 import org.apache.slide.util.Messages; 27 28 33 public class AccessDeniedException extends SecurityException { 34 35 36 38 39 46 public AccessDeniedException(String objectUri, String subjectUri, 47 String actionUri) { 48 super(Messages.format(AccessDeniedException.class.getName(), 49 objectUri, subjectUri, actionUri)); 50 this.objectUri = objectUri; 51 this.subjectUri = subjectUri; 52 this.actionUri = actionUri; 53 } 54 55 56 58 59 62 private String objectUri; 63 64 67 private String subjectUri; 68 69 72 private String actionUri; 73 74 75 77 78 83 public String getObjectUri() { 84 if (objectUri == null) { 85 return new String (); 86 } else { 87 return objectUri; 88 } 89 } 90 91 96 public String getSubjectUri() { 97 if (subjectUri == null) { 98 return new String (); 99 } else { 100 return subjectUri; 101 } 102 } 103 104 109 public String getActionUri() { 110 if (actionUri == null) { 111 return new String (); 112 } else { 113 return actionUri; 114 } 115 } 116 } 117 | Popular Tags |