001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.aspects.security;
023:
024: import java.util.ArrayList;
025: import java.util.HashMap;
026:
027: /**
028: *
029: *
030: * @author <a href="mailto:bill@jboss.org">Bill Burke</a>
031: * @version $Revision: 57186 $
032: *
033: */
034: public class SecurityClassMetaDataBinding extends
035: org.jboss.aop.metadata.ClassMetaDataBinding {
036: protected ArrayList securityRoles = new ArrayList();
037: protected ArrayList methodPermissions = new ArrayList();
038: protected ArrayList methodExcludeList = new ArrayList();
039: protected ArrayList constructorPermissions = new ArrayList();
040: protected ArrayList constructorExcludeList = new ArrayList();
041: protected HashMap fieldPermissions = new HashMap();
042: protected ArrayList fieldExcludeList = new ArrayList();
043: protected String runAs;
044: protected String securityDomain;
045:
046: public SecurityClassMetaDataBinding(
047: org.jboss.aop.metadata.ClassMetaDataLoader loader,
048: String name, String group, String expr) {
049: super (loader, name, group, expr);
050: }
051:
052: public String getSecurityDomain() {
053: return securityDomain;
054: }
055:
056: public void setSecurityDomain(String domain) {
057: securityDomain = domain;
058: }
059:
060: public ArrayList getSecurityRoles() {
061: return securityRoles;
062: }
063:
064: public void setSecurityRoles(ArrayList roles) {
065: securityRoles = roles;
066: }
067:
068: public ArrayList getMethodPermissions() {
069: return methodPermissions;
070: }
071:
072: public void setMethodPermissions(ArrayList permissions) {
073: methodPermissions = permissions;
074: }
075:
076: public ArrayList getMethodExcludeList() {
077: return methodExcludeList;
078: }
079:
080: public void setMethodExcludeList(ArrayList list) {
081: methodExcludeList = list;
082: }
083:
084: public HashMap getFieldPermissions() {
085: return fieldPermissions;
086: }
087:
088: public void setFieldPermissions(HashMap permissions) {
089: fieldPermissions = permissions;
090: }
091:
092: public ArrayList getFieldExcludeList() {
093: return fieldExcludeList;
094: }
095:
096: public void setFieldExcludeList(ArrayList list) {
097: fieldExcludeList = list;
098: }
099:
100: public ArrayList getConstructorPermissions() {
101: return constructorPermissions;
102: }
103:
104: public void setConstructorPermissions(ArrayList permissions) {
105: constructorPermissions = permissions;
106: }
107:
108: public ArrayList getConstructorExcludeList() {
109: return constructorExcludeList;
110: }
111:
112: public void setConstructorExcludeList(ArrayList list) {
113: constructorExcludeList = list;
114: }
115:
116: public String getRunAs() {
117: return runAs;
118: }
119:
120: public void setRunAs(String as) {
121: runAs = as;
122: }
123:
124: }
|