RealmItem.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * --------------------------------------------------------------------------
00022  * $Id: RealmItem.java,v 1.5 2004/03/29 14:59:02 danesa Exp $
00023  * --------------------------------------------------------------------------
00024  */
00025 
00026 package org.objectweb.jonas.webapp.jonasadmin.security;
00027 
00028 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
00029 
00033 public class RealmItem implements NameItem {
00034 
00035 // --------------------------------------------------------- Properties Variables
00036 
00037     private String name = null;
00038     private String type = null;
00039     private String contextPath = null;
00040     private boolean usedBySecurityService = false;
00041 
00042 // --------------------------------------------------------- Constructors
00043 
00044     public RealmItem() {
00045     }
00046 
00047     public RealmItem(String p_Name, String p_Type) {
00048         setName(p_Name);
00049         setType(p_Type);
00050     }
00051 
00052     public RealmItem(String p_Name, String p_Type, boolean p_UsedBySecurityService) {
00053         setName(p_Name);
00054         setType(p_Type);
00055         setUsedBySecurityService(p_UsedBySecurityService);
00056     }
00057 
00064         public RealmItem(String p_Name, String p_Type, String p_ContextPath,
00065                         boolean p_UsedBySecurityService) {
00066                 super();
00067         setName(p_Name);
00068         setType(p_Type);
00069         setUsedBySecurityService(p_UsedBySecurityService);
00070         setContextPath(p_ContextPath);
00071         }
00072 // --------------------------------------------------------- Properties Methods
00073 
00074     public String getName() {
00075         return name;
00076     }
00077 
00078     public void setName(String name) {
00079         this.name = name;
00080     }
00081 
00082     public String getType() {
00083         return type;
00084     }
00085 
00086     public void setType(String type) {
00087         this.type = type;
00088     }
00089 
00090     public boolean isUsedBySecurityService() {
00091         return usedBySecurityService;
00092     }
00093 
00094     public void setUsedBySecurityService(boolean usedBySecurityService) {
00095         this.usedBySecurityService = usedBySecurityService;
00096     }
00097 
00101         public String getContextPath() {
00102                 return contextPath;
00103         }
00107         public void setContextPath(String contextPath) {
00108                 this.contextPath = contextPath;
00109         }
00110 }

Generated on Tue Feb 15 15:05:30 2005 for JOnAS by  doxygen 1.3.9.1