KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > plugins > security > ModelContentProvider


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.plugins.security;
10
11 import java.util.Iterator JavaDoc;
12
13 import org.jboss.portal.core.security.Item;
14
15 import javax.servlet.ServletContext JavaDoc;
16
17 /**
18  * This interface is implemented by the a provider in order to give
19  * the authorization model he provides.
20  *
21  * Warning : This API is subject to change.
22  *
23  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
24  * @version $Revision: 1.3 $
25  */

26 public interface ModelContentProvider
27 {
28    /**
29     * Init.
30     */

31    void init(ServletContext JavaDoc servletContext);
32    
33    /**
34     * Return the specified item or null if it does not exist.
35     */

36    Item getItem(String JavaDoc[] path);
37    
38    /**
39     * Return the children items for the given path or null if the item does not exist.
40     */

41    Iterator JavaDoc getChildren(String JavaDoc[] path);
42
43    /**
44     * Destroy.
45     */

46    void destroy();
47 }
48
Popular Tags