KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > interfaces > SecurityRoleMapperFactory


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.deployment.interfaces;
24
25 /**
26  *
27  * @author dochez
28  */

29 public interface SecurityRoleMapperFactory {
30     
31      /**
32      * Returns a RoleMapper corresponding to the AppName.
33      * @param The Application Name of this RoleMapper.
34      */

35     public SecurityRoleMapper getRoleMapper(String JavaDoc appName);
36     
37     /**
38      * remove the RoleMapping associated with this application
39      * @param the application name for this RoleMapper
40      */

41     public void removeRoleMapper(String JavaDoc appName);
42     
43     /**
44      * Sets a new RoleMapper for a particular Application
45      * @param the application name
46      * @param the new role mapper
47      */

48     public void setRoleMapper(String JavaDoc appName, SecurityRoleMapper rmap);
49     
50     /**
51      * Returns the appname for this particular context id. Used in
52      * context of a web application
53      */

54     public String JavaDoc getAppNameForContext(String JavaDoc contextId);
55     /**
56      * stores the appname for this particular context id. Used in the
57      * context of a web application
58      */

59     public void setAppNameForContext(String JavaDoc appName, String JavaDoc contextId);
60     
61     /**
62      * removes the link between contextId and the appname
63      */

64     public void removeAppNameForContext(String JavaDoc contextId);
65 }
66
Popular Tags