1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.pluto.portalImpl.services.portletdefinitionregistry;
21
22 import org.apache.pluto.om.common.ObjectID;
23 import org.apache.pluto.om.portlet.PortletApplicationDefinitionList;
24 import org.apache.pluto.om.portlet.PortletDefinition;
25 import org.apache.pluto.portalImpl.services.ServiceManager;
26
27 /***
28 * This class is a static accessor for a <code>PortletRegistryService</code>
29 * implementation.
30 *
31
32 */
33 public class PortletDefinitionRegistry
34 {
35
36
37 private static PortletDefinitionRegistryService cService =
38 (PortletDefinitionRegistryService) ServiceManager.getService (PortletDefinitionRegistryService.class);
39
40 /***
41 * Returns a set containg all portlet application definitions
42 *
43 * @return the portlet application definition set
44 */
45 public static PortletApplicationDefinitionList getPortletApplicationDefinitionList()
46 {
47 return cService.getPortletApplicationDefinitionList();
48 }
49
50 /***
51 * Returns the portlet definition to the given object id
52 *
53 * @return the portlet definition
54 */
55 public static PortletDefinition getPortletDefinition(ObjectID id)
56 {
57 return cService.getPortletDefinition(id);
58 }
59
60
61 public static void setPortletDefinitionRegistryService()
62 {
63 PortletDefinitionRegistryService cService = (PortletDefinitionRegistryService) ServiceManager.getService(PortletDefinitionRegistryService.class);
64 }
65 }