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