001 /*
002 *
003 * This file is part of *** M y C o R e ***
004 * See http://www.mycore.de/ for details.
005 *
006 * This program is free software; you can use it, redistribute it
007 * and / or modify it under the terms of the GNU General Public License
008 * (GPL) as published by the Free Software Foundation; either version 2
009 * of the License or (at your option) any later version.
010 *
011 * This program is distributed in the hope that it will be useful, but
012 * WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014 * GNU General Public License for more details.
015 *
016 * You should have received a copy of the GNU General Public License
017 * along with this program, in a file called gpl.txt or license.txt.
018 * If not, write to the Free Software Foundation Inc.,
019 * 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
020 */
021
022 package org.mycore.access.mcrimpl;
023
024 import java.util.HashMap;
025
026 /**
027 * Maps object ids to rules
028 *
029 * @author Arne Seifert
030 */
031 public class MCRAccessDefinition {
032
033 private String objid;
034 private HashMap<String, String> pools = new HashMap<String, String>();
035
036 public MCRAccessDefinition(){
037 pools.clear();
038 }
039
040 public String getObjID(){
041 return objid;
042 }
043
044 public void setObjID(String value){
045 objid = value;
046 }
047
048 public HashMap<String, String> getPool(){
049 return pools;
050 }
051
052 public void setPool(HashMap<String, String> pool){
053 pools = pool;
054 }
055
056 public void addPool(String poolname, String ruleid){
057 pools.put(poolname, ruleid);
058 }
059
060 public void clearPools(){
061 pools.clear();
062 }
063 }