KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletregistery > PortletRegisteryService


1 package org.exoplatform.services.portletregistery;
2
3 import java.util.Collection JavaDoc;
4 import java.util.List JavaDoc;
5
6 /**
7  * Created y the eXo platform team
8  * User: Benjamin Mestrallet
9  * Date: 15 juin 2004
10  */

11 public interface PortletRegisteryService {
12
13   public PortletCategory createPortletCategoryInstance() ;
14   public List JavaDoc getPortletCategories() throws Exception JavaDoc;
15   public PortletCategory getPortletCategory(String JavaDoc id) throws Exception JavaDoc;
16   public PortletCategory addPortletCategory(PortletCategory portletCategory) throws Exception JavaDoc ;
17   public PortletCategory updatePortletCategory(PortletCategory portletCategory) throws Exception JavaDoc ;
18   public PortletCategory removePortletCategory(String JavaDoc id) throws Exception JavaDoc ;
19   public PortletCategory removePortletCategoryByName(String JavaDoc name) throws Exception JavaDoc;
20   public PortletCategory findPortletCategoryByName(String JavaDoc portletCategoryName) throws Exception JavaDoc ;
21
22   public List JavaDoc getPortlets(String JavaDoc portletCategoryId) throws Exception JavaDoc ;
23   public Portlet getPortlet(String JavaDoc id) throws Exception JavaDoc ;
24   public Portlet addPortlet(PortletCategory category, Portlet portlet) throws Exception JavaDoc ;
25   public Portlet removePortlet(String JavaDoc id) throws Exception JavaDoc ;
26   public Portlet updatePortlet(Portlet portlet) throws Exception JavaDoc ;
27   public Portlet createPortletInstance() ;
28
29   public List JavaDoc getPortletRoles(String JavaDoc portletId) throws Exception JavaDoc ;
30   public PortletRole getPortletRole(String JavaDoc id) throws Exception JavaDoc ;
31   public PortletRole addPortletRole(Portlet portlet, PortletRole portletRole) throws Exception JavaDoc ;
32   public PortletRole removePortletRole(String JavaDoc id) throws Exception JavaDoc ;
33   public void clearPortletRoles(String JavaDoc portletId) throws Exception JavaDoc ;
34   public PortletRole updatePortletRole(PortletRole portletRole) throws Exception JavaDoc ;
35   public PortletRole createPortletRoleInstance() ;
36   public void updatePortletRoles(String JavaDoc currentPortletId, Collection JavaDoc currentRoles) throws Exception JavaDoc;
37
38   public void importPortlets(Collection JavaDoc portletDatas) throws Exception JavaDoc;
39   public void clearRepository() throws Exception JavaDoc;
40
41 }
42
Popular Tags