01: /**********************************************************************************
02: * $URL:https://source.sakaiproject.org/svn/osp/trunk/portal/api/src/java/org/theospi/portfolio/portal/intf/PortalManager.java $
03: * $Id:PortalManager.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.theospi.portfolio.portal.intf;
21:
22: import java.util.List;
23: import java.util.Map;
24: import java.util.Collection;
25:
26: import org.sakaiproject.javax.PagingPosition;
27: import org.sakaiproject.site.api.Site;
28: import org.sakaiproject.site.api.SitePage;
29: import org.sakaiproject.site.api.SiteService;
30: import org.sakaiproject.user.api.User;
31: import org.theospi.portfolio.portal.model.SiteType;
32: import org.theospi.portfolio.portal.model.ToolCategory;
33:
34: /**
35: * Created by IntelliJ IDEA.
36: * User: John Ellis
37: * Date: Feb 11, 2006
38: * Time: 8:05:11 AM
39: * To change this template use File | Settings | File Templates.
40: */
41: public interface PortalManager {
42:
43: public static final String CONTEXT = "org.theospi.portfolio.portal.context";
44: public static final String SITE_TYPE = "org.theospi.portfolio.portal.siteType";
45: public static final String RELOAD_SITES = "org.theospi.portfolio.portal.reloadSites";
46: public static final String SITE_ID = "org.theospi.portfolio.portal.siteId";
47: public static final String TOOL_CATEGORY = "org.theospi.portfolio.portal.toolCategory";
48:
49: public User getCurrentUser();
50:
51: public Map getSitesByType();
52:
53: public Map getSitesByType(String siteId);
54:
55: public List getSitesForType(String type, SiteService.SortType sort,
56: PagingPosition page);
57:
58: public Map getPagesByCategory(String siteId);
59:
60: public List getToolsForPage(String pageId);
61:
62: public Site getSite(String siteId);
63:
64: public SitePage getSitePage(String pageId);
65:
66: public String getPageCategory(String siteId, String pageId);
67:
68: public String decorateSiteType(Site site);
69:
70: public SiteType getSiteType(String siteTypeKey);
71:
72: public ToolCategory getToolCategory(String siteType,
73: String toolCategoryKey);
74:
75: public boolean isAvailable(String toolId, String siteId);
76:
77: public SitePage getPage(String toolId, String siteId);
78:
79: public boolean isUserInRole(String roleId, String siteId);
80:
81: public List getRoles(String siteId);
82:
83: public boolean isDisplaySiteTypes();
84:
85: public Collection getCategoriesInNeedOfFiles();
86:
87: public void saveToolCategories(Collection toolCategories);
88:
89: public boolean isUseDb();
90:
91: public byte[] getCategoryPage(String href);
92:
93: public Map<String, SiteType> storeComponentsSiteTypes(Map siteTypes);
94: }
|