KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > utils > xml > SecurityRoleRefDesc


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999-2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer: Florent BENOIT
22  * --------------------------------------------------------------------------
23  * $Id: SecurityRoleRefDesc.java,v 1.3 2004/03/19 14:31:54 sauthieg Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package com.bull.eclipse.jonas.utils.xml;
28
29
30 /**
31  * Defines a SecurityRoleRefDesc class for the management of
32  * EJBRoleRefPermissions and WebRoleRefPermissions in JACC
33  * @author Florent Benoit
34  */

35 public class SecurityRoleRefDesc {
36
37     /**
38      * EJBRoleRefPermission
39      */

40 // private EJBRoleRefPermission ejbRoleRefPermission = null;
41

42
43     /**
44      * WebRoleRefPermission
45      */

46 // private WebRoleRefPermission webRoleRefPermission = null;
47

48
49     /**
50      * role-link used for addToRole method on PolicyConfiguration
51      */

52     private String JavaDoc roleLink = null;
53
54
55     /**
56      * role-name
57      */

58     private String JavaDoc roleName = null;
59
60
61     /**
62      * Constructor for SecurityRoleRefDesc
63      * @param componentName name of the EJB or Servlet
64      * @param securityRole the security role of the assembly descriptor
65      */

66 // public SecurityRoleRefDesc(String componentName, SecurityRoleRef securityRoleRef, boolean isEjb) {
67
// this.roleLink = securityRoleRef.getRoleLink();
68
// this.roleName = securityRoleRef.getRoleName();
69
// if (isEjb) {
70
// this.ejbRoleRefPermission = new EJBRoleRefPermission(componentName, roleName);
71
// } else {
72
// this.webRoleRefPermission = new WebRoleRefPermission(componentName, roleName);
73
// }
74
// }
75

76
77
78     /**
79      * Gets the role-name value
80      * @return role-name
81      */

82     public String JavaDoc getRoleName() {
83         return roleName;
84     }
85
86
87     /**
88      * Gets the role-link value
89      * @return role-link
90      */

91     public String JavaDoc getRoleLink() {
92         return roleLink;
93     }
94
95     /**
96      * Gets the EJBRoleRefPermission
97      */

98 // public Permission getEJBRoleRefPermission() {
99
// return ejbRoleRefPermission;
100
// }
101

102     /**
103      * Gets the WebRoleRefPermission
104      */

105 // public Permission getWebRoleRefPermission() {
106
// return webRoleRefPermission;
107
// }
108
}
109
Popular Tags