1 /*****************************************2 * *3 * JBoss Portal: The OpenSource Portal *4 * *5 * Distributable under LGPL license. *6 * See terms of license at gnu.org. *7 * *8 *****************************************/9 package org.jboss.portal.core.security;10 11 /**12 * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>13 * @version $Revision: 1.1 $14 */15 public interface SchemeStore16 {17 /**18 * Return the scheme for the given id or null if it does not exist.19 *20 * @param id the scheme tid21 * @return the corresponding scheme22 */23 Scheme getScheme(String id);24 25 /**26 * Remove an existing scheme.27 *28 * @param id the scheme id29 */30 void removeScheme(String id);31 32 /**33 * Save scheme.34 *35 * @param id the scheme id36 * @param scheme the scheme37 */38 void saveScheme(String id, Scheme scheme);39 }40