001: /*
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: RealmItem.java 4512 2004-03-29 14:59:27Z danesa $
023: * --------------------------------------------------------------------------
024: */
025:
026: package org.objectweb.jonas.webapp.jonasadmin.security;
027:
028: import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
029:
030: /**
031: * @author Michel-Ange ANTON
032: */
033: public class RealmItem implements NameItem {
034:
035: // --------------------------------------------------------- Properties Variables
036:
037: private String name = null;
038: private String type = null;
039: private String contextPath = null;
040: private boolean usedBySecurityService = false;
041:
042: // --------------------------------------------------------- Constructors
043:
044: public RealmItem() {
045: }
046:
047: public RealmItem(String p_Name, String p_Type) {
048: setName(p_Name);
049: setType(p_Type);
050: }
051:
052: public RealmItem(String p_Name, String p_Type,
053: boolean p_UsedBySecurityService) {
054: setName(p_Name);
055: setType(p_Type);
056: setUsedBySecurityService(p_UsedBySecurityService);
057: }
058:
059: /**
060: * @param name
061: * @param type
062: * @param contextPath
063: * @param usedBySecurityService
064: */
065: public RealmItem(String p_Name, String p_Type,
066: String p_ContextPath, boolean p_UsedBySecurityService) {
067: super ();
068: setName(p_Name);
069: setType(p_Type);
070: setUsedBySecurityService(p_UsedBySecurityService);
071: setContextPath(p_ContextPath);
072: }
073:
074: // --------------------------------------------------------- Properties Methods
075:
076: public String getName() {
077: return name;
078: }
079:
080: public void setName(String name) {
081: this .name = name;
082: }
083:
084: public String getType() {
085: return type;
086: }
087:
088: public void setType(String type) {
089: this .type = type;
090: }
091:
092: public boolean isUsedBySecurityService() {
093: return usedBySecurityService;
094: }
095:
096: public void setUsedBySecurityService(boolean usedBySecurityService) {
097: this .usedBySecurityService = usedBySecurityService;
098: }
099:
100: /**
101: * @return Returns the contextPath.
102: */
103: public String getContextPath() {
104: return contextPath;
105: }
106:
107: /**
108: * @param contextPath The contextPath to set.
109: */
110: public void setContextPath(String contextPath) {
111: this.contextPath = contextPath;
112: }
113: }
|