KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > aspects > security > SecurityClassMetaDataBinding


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.aspects.security;
23
24 import java.util.ArrayList JavaDoc;
25 import java.util.HashMap JavaDoc;
26 /**
27  *
28  *
29  * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>
30  * @version $Revision: 42937 $
31  *
32  */

33 public class SecurityClassMetaDataBinding extends org.jboss.aop.metadata.ClassMetaDataBinding
34 {
35    protected ArrayList JavaDoc securityRoles = new ArrayList JavaDoc();
36    protected ArrayList JavaDoc methodPermissions = new ArrayList JavaDoc();
37    protected ArrayList JavaDoc methodExcludeList = new ArrayList JavaDoc();
38    protected ArrayList JavaDoc constructorPermissions = new ArrayList JavaDoc();
39    protected ArrayList JavaDoc constructorExcludeList = new ArrayList JavaDoc();
40    protected HashMap JavaDoc fieldPermissions = new HashMap JavaDoc();
41    protected ArrayList JavaDoc fieldExcludeList = new ArrayList JavaDoc();
42    protected String JavaDoc runAs;
43    protected String JavaDoc securityDomain;
44
45    public SecurityClassMetaDataBinding(org.jboss.aop.metadata.ClassMetaDataLoader loader, String JavaDoc name, String JavaDoc group, String JavaDoc expr)
46    {
47       super(loader, name, group, expr);
48    }
49
50    public String JavaDoc getSecurityDomain() { return securityDomain; }
51    public void setSecurityDomain(String JavaDoc domain) { securityDomain = domain; }
52
53    public ArrayList JavaDoc getSecurityRoles() { return securityRoles; }
54    public void setSecurityRoles(ArrayList JavaDoc roles) { securityRoles = roles; }
55
56    public ArrayList JavaDoc getMethodPermissions() { return methodPermissions; }
57    public void setMethodPermissions(ArrayList JavaDoc permissions) { methodPermissions = permissions; }
58
59    public ArrayList JavaDoc getMethodExcludeList() { return methodExcludeList; }
60    public void setMethodExcludeList(ArrayList JavaDoc list) { methodExcludeList = list; }
61
62    public HashMap JavaDoc getFieldPermissions() { return fieldPermissions; }
63    public void setFieldPermissions(HashMap JavaDoc permissions) { fieldPermissions = permissions; }
64
65    public ArrayList JavaDoc getFieldExcludeList() { return fieldExcludeList; }
66    public void setFieldExcludeList(ArrayList JavaDoc list) { fieldExcludeList = list; }
67
68    public ArrayList JavaDoc getConstructorPermissions() { return constructorPermissions; }
69    public void setConstructorPermissions(ArrayList JavaDoc permissions) { constructorPermissions = permissions; }
70
71    public ArrayList JavaDoc getConstructorExcludeList() { return constructorExcludeList; }
72    public void setConstructorExcludeList(ArrayList JavaDoc list) { constructorExcludeList = list; }
73
74    public String JavaDoc getRunAs() { return runAs; }
75    public void setRunAs(String JavaDoc as) { runAs = as; }
76
77 }
78
Popular Tags