1 5 package org.exoplatform.services.portal; 6 7 import java.util.* ; 8 import org.exoplatform.services.portal.model.*; 9 import org.exoplatform.commons.utils.PageList ; 10 17 public interface PortalConfigService { 18 final public static String PAGE_NOT_FOUND_ERROR = "admin:/error/page/page-not-found" ; 19 final public static String USER_PAGE_VIEW_PERMISSION_ERROR = "admin:/error/page/user-page-view-permission" ; 20 final public static String USER_PAGE_EDIT_PERMISSION_ERROR = "admin:/error/page/user-page-edit-permission" ; 21 final public static String USER_PORTAL_VIEW_PERMISSION_ERROR = "admin:/error/portal/user-portal-view-permission" ; 22 final public static String USER_PORTAL_EDIT_PERMISSION_ERROR = "admin:/error/portal/user-portal-edit-permission" ; 23 24 public void savePortalConfig(String owner, String xml) throws Exception ; 25 public void savePortalConfig(PortalConfig config) throws Exception ; 26 public PortalConfig getPortalConfig(String owner) throws Exception ; 27 public String getPortalConfigAsXmlString(String owner) throws Exception ; 28 public void removePortalConfig(String owner) throws Exception ; 29 public PageList findAllPortalConfigDescriptions(Query q) throws Exception ; 30 31 public void savePage(Page page) throws Exception ; 32 public void savePage(String xml) throws Exception ; 33 public Page getPage(String refId) throws Exception ; 34 public String getPageAsXmlString(String refId) throws Exception ; 35 public void removePage(String refId) throws Exception ; 36 public void removePageOfOwner(String owner) throws Exception ; 37 public PageList findAllPageDescriptions(Query q) throws Exception ; 38 39 public void saveNodeNavigation(String owner , Node node) throws Exception ; 40 public void removeNodeNavigation(String owner) throws Exception ; 41 public Node getNodeNavigation(String owner) throws Exception ; 42 public Node createNodeInstance() ; 43 44 public List getPredefinedTemplates(String owner) ; 45 public Page getPredefinedTemplate(String owner, String name) throws Exception ; 46 47 public PortalACL getPortalACL() ; 48 } | Popular Tags |