00001 /* 00002 * OpenMobileIS - a free Java Framework for mobile applications 00003 * 00004 * Copyright (C) 2004 Philippe Delrieu. 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This program 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 * General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free 00018 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 * 00020 * Philippe Delrieu kept the rigth to distribute all code Copyrighted by philippe Delrieu 00021 * under other licence term even commercial one. 00022 * 00023 * Modifications : 00024 * 2004 Creation P.Delrieu 00025 * 00026 */ 00027 package org.openmobileis.modules.crm.data.common; 00028 00029 import org.openmobileis.common.util.collection.Array; 00030 import org.openmobileis.common.util.exception.ServiceException; 00031 import org.openmobileis.database.DatabaseException; 00032 00041 public interface GlobalPropertyFactory { 00042 00043 public GlobalProperty getProperty(String service, String key) throws ServiceException; 00044 public Array getPropertiesForService(String service) throws ServiceException; 00045 public void storeProperty(GlobalProperty property) throws DatabaseException ; 00046 public void deleteProperty(String service, String key) throws DatabaseException ; 00047 public Array getAllGlobalProperties() throws ServiceException; 00048 00049 }