01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.ubt.report.view.report;
06:
07: /**
08: *
09: */
10: public class UBTReportsFactory {
11: public static UBTReportI getReport(String name) {
12: if (UBTReportI.PORTAL_USER_IDENTITY.equals(name)) {
13: return new PortalUserIdentityReport();
14: } else if (UBTReportI.PORTAL_USER_LOGIN.equals(name)) {
15: return new PortalUserLoginReport();
16: } else if (UBTReportI.PORTAL_CHANNEL_RENDER.equals(name)) {
17: return new PortalChannelRenderReport();
18: } else if (UBTReportI.PORTAL_CONTAINER_CUSTOMIZATION
19: .equals(name)) {
20: return new PortalContainerCustomizationReport();
21: } else if (UBTReportI.PORTAL_CONTAINER_RENDER.equals(name)) {
22: return new PortalContainerRenderReport();
23: } else if (UBTReportI.PORTAL_USER_CUSTOMIZATION.equals(name)) {
24: return new PortalUserCustomizationReport();
25: } else if (UBTReportI.PORTLET_ACTIONS.equals(name)) {
26: return new PortletActionsReport();
27: } else if (UBTReportI.PORTLET_RENDER.equals(name)) {
28: return new PortletRenderReport();
29: } else
30: return null;
31: }
32: }
|