KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > PortalConfigService


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

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 /**
11  * Created by The eXo Platform SARL .
12  * Author : Tuan Nguyen
13  * tuan08@users.sourceforge.net
14  * Date: Jun 14, 2003
15  * Time: 1:12:22 PM
16  */

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