KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > security > SchemeStore


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 SchemeStore
16 {
17    /**
18     * Return the scheme for the given id or null if it does not exist.
19     *
20     * @param id the scheme tid
21     * @return the corresponding scheme
22     */

23    Scheme getScheme(String JavaDoc id);
24
25    /**
26     * Remove an existing scheme.
27     *
28     * @param id the scheme id
29     */

30    void removeScheme(String JavaDoc id);
31
32    /**
33     * Save scheme.
34     *
35     * @param id the scheme id
36     * @param scheme the scheme
37     */

38    void saveScheme(String JavaDoc id, Scheme scheme);
39 }
40
Popular Tags