01: /*
02: * Copyright 2007 The Kuali Foundation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.bus.auth;
17:
18: import javax.servlet.http.HttpServletRequest;
19:
20: /**
21: * A simple authorization mechinism which can be used to determine whether or not the authenticated user
22: * is an administrator and therefore has the permissions to view the KSB. The KSB itself has no
23: * concept of identity available to it, so the application which is using the bus needs to have some
24: * mechanism by which to determine identity at the time that the {@link #isAdministrator()}
25: * method is invoked (i.e. via a statically available ThreadLocal).
26: *
27: * <p>This interface will most likely be deprecated in a future version of Rice and replaced with a more
28: * sophisticated authorization implementation.
29: *
30: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
31: *
32: */
33: public interface AuthorizationService {
34:
35: public boolean isAdministrator(HttpServletRequest request);
36:
37: }
|