source: branches/TaskRewrite/src/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsUser.java @ 58

Last change on this file since 58 was 58, checked in by gav, 15 years ago

Configure BootStrap? with latest concepts.
Install and setup Acegi plugin with custom views.
Test Fixture plugin in a test app but couldn't get it to work with Acegi encodePassword() so gave up.

File size: 1.1 KB
Line 
1/* Copyright 2006-2009 the original author or authors.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *      http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15package org.codehaus.groovy.grails.plugins.springsecurity;
16
17import org.springframework.security.userdetails.UserDetails;
18
19/**
20 * Extends Spring Security's {@link UserDetails} interface to set Grails Domain
21 * Class at login, to load auth class from context.
22 *
23 * @author <a href='mailto:beckwithb@studentsonly.com'>Burt Beckwith</a>
24 */
25public interface GrailsUser extends UserDetails {
26
27        /**
28         * Get the domain object representing the user.
29         * @return  the user
30         */
31        Object getDomainClass();
32}
Note: See TracBrowser for help on using the repository browser.