01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-api/api/src/java/org/sakaiproject/metaobj/security/AuthorizationFailedException.java $
03: * $Id: AuthorizationFailedException.java 8052 2006-04-20 18:16:21Z ggolden@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.metaobj.security;
21:
22: import org.sakaiproject.metaobj.shared.model.Agent;
23: import org.sakaiproject.metaobj.shared.model.Id;
24: import org.sakaiproject.metaobj.shared.model.OspException;
25:
26: /**
27: * Created by IntelliJ IDEA.
28: * User: John Ellis
29: * Date: May 22, 2004
30: * Time: 9:27:13 AM
31: * To change this template use File | Settings | File Templates.
32: */
33: public class AuthorizationFailedException extends OspException {
34:
35: private Agent agent = null;
36: private String function = null;
37: private Id qualifier = null;
38:
39: /**
40: *
41: */
42: public AuthorizationFailedException(String function, Id qualifier) {
43: this .function = function;
44: this .qualifier = qualifier;
45: }
46:
47: /**
48: *
49: */
50: public AuthorizationFailedException(Agent agent, String function,
51: Id qualifier) {
52: this .agent = agent;
53: this .function = function;
54: this .qualifier = qualifier;
55: }
56:
57: /**
58: *
59: */
60: public AuthorizationFailedException() {
61: super ();
62: }
63:
64: /**
65: * @param cause
66: */
67: public AuthorizationFailedException(Throwable cause) {
68: super (cause);
69: }
70:
71: /**
72: * @param message
73: */
74: public AuthorizationFailedException(String message) {
75: super (message);
76: }
77:
78: /**
79: * @param message
80: * @param cause
81: */
82: public AuthorizationFailedException(String message, Throwable cause) {
83: super (message, cause);
84: }
85:
86: public Agent getAgent() {
87: return agent;
88: }
89:
90: public String getFunction() {
91: return function;
92: }
93:
94: public Id getQualifier() {
95: return qualifier;
96: }
97: }
|