this.config = config; cacheAnnotatedMethods(); this.init();
@Override public void init() throws PortletException { super.init(); addProcessActionSuccessMessage = GetterUtil.getBoolean( getInitParameter("add-process-action-success-action"), true); alwaysSendRedirect = GetterUtil.getBoolean( getInitParameter("always-send-redirect")); }
@Override public void init(PortletConfig config) throws PortletException { CurrentInstance.clearAll(); super.init(config); Properties initParameters = new Properties();
/** * Called when the portlet is initialized. * * @param config The standard portlet configuration data * structure for any Portlet */ public void init(PortletConfig config) throws PortletException { super.init(config); }
@Override public void init(PortletConfig portletConfig) throws PortletException { super.init(portletConfig); Map<String, String> config = new TreeMap<String, String>(); for (String paramName : FastCGIHandlerFactory.PARAM_NAMES) { String value = portletConfig.getInitParameter(paramName); if (value != null) { config.put(paramName, getInitParameter(paramName)); } } handler = FastCGIHandlerFactory.create(config); }
public void init(PortletConfig portletConfig) throws PortletException { super.init(portletConfig); getBean().init(portletConfig); }
public void init(PortletConfig config) throws PortletException { super.init(config); defaultHstComponentPath = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_COMPONENT_PATH, null); }
this.config = config; cacheAnnotatedMethods(); this.init();
@Override public void init(PortletConfig config) throws PortletException { super.init(config); wicketFilterPath = buildWicketFilterPath(config.getInitParameter(WICKET_FILTER_PATH_PARAM)); wicketFilterQuery = buildWicketFilterQuery(wicketFilterPath); defaultPages.put(PARAM_VIEW_PAGE, config.getInitParameter(PARAM_VIEW_PAGE)); defaultPages.put(PARAM_ACTION_PAGE, config.getInitParameter(PARAM_ACTION_PAGE)); defaultPages.put(PARAM_CUSTOM_PAGE, config.getInitParameter(PARAM_CUSTOM_PAGE)); defaultPages.put(PARAM_HELP_PAGE, config.getInitParameter(PARAM_HELP_PAGE)); defaultPages.put(PARAM_EDIT_PAGE, config.getInitParameter(PARAM_EDIT_PAGE)); validateDefaultPages(defaultPages, wicketFilterPath, wicketFilterQuery); }
.debug("WingS-Portlet-Bridge: start init(PortletConfig) for Portlet " + config.getPortletName()); super.init(config);
public void init(PortletConfig config) throws PortletException { super.init(config); this.defaultActionPage = config.getInitParameter(PARAM_ACTION_PAGE); this.defaultCustomPage = config.getInitParameter(PARAM_CUSTOM_PAGE); this.defaultEditPage = config.getInitParameter(PARAM_EDIT_PAGE); this.defaultViewPage = config.getInitParameter(PARAM_VIEW_PAGE); this.defaultHelpPage = config.getInitParameter(PARAM_HELP_PAGE); String allowPreferencesString = config.getInitParameter(PARAM_ALLOW_PREFERENCES); if (allowPreferencesString != null) { this.allowPreferences = new Boolean(allowPreferencesString).booleanValue(); } // if ((this.defaultActionPage == null) && // (this.defaultCustomPage == null) && // (this.defaultEditPage == null) && // (this.defaultViewPage == null) && // (this.defaultHelpPage == null) && // (this.allowPreferences == false) ) // { // // This portlet is configured to do nothing! // throw new PortletException("Portlet " + config.getPortletName() + " is incorrectly configured. No pages are defined."); // } }
public void init(PortletConfig config) throws PortletException { super.init(config); this.defaultActionPage = config.getInitParameter(PARAM_ACTION_PAGE); this.defaultCustomPage = config.getInitParameter(PARAM_CUSTOM_PAGE); this.defaultEditPage = config.getInitParameter(PARAM_EDIT_PAGE); this.defaultViewPage = config.getInitParameter(PARAM_VIEW_PAGE); this.defaultHelpPage = config.getInitParameter(PARAM_HELP_PAGE); String allowPreferencesString = config.getInitParameter(PARAM_ALLOW_PREFERENCES); if (allowPreferencesString != null) { this.allowPreferences = new Boolean(allowPreferencesString).booleanValue(); } // if ((this.defaultActionPage == null) && // (this.defaultCustomPage == null) && // (this.defaultEditPage == null) && // (this.defaultViewPage == null) && // (this.defaultHelpPage == null) && // (this.allowPreferences == false) ) // { // // This portlet is configured to do nothing! // throw new PortletException("Portlet " + config.getPortletName() + " is incorrectly configured. No pages are defined."); // } }
/** * @return The Portlet instance defined by dicon file * @throws PortletException */ protected GenericPortlet getGenericPortlet() throws PortletException { GenericPortlet portlet = (GenericPortlet) SingletonS2ContainerFactory .getContainer().getComponent(portletName); if (portlet == null) { throw new PortletException("GenericPortlet is not defined in " + config.getInitParameter(CONFIG_PATH_KEY) + "."); } // Initialize portlet instance if (portlet.getPortletConfig() == null) { portlet.init(config); } return portlet; }
/** * {@inheritDoc} */ @Override public void init(final PortletConfig config) throws PortletException { super.init(config); wicketFilterPath = buildWicketFilterPath(config.getInitParameter(WICKET_FILTER_PATH_PARAM)); String responseBufferFolderPath = config.getInitParameter(RESPONSE_BUFFER_FOLDER_PARAM); if ((responseBufferFolderPath != null) && (!Strings.isEmpty(responseBufferFolderPath))) { responseBufferFolder = new File(responseBufferFolderPath); } for (final PageType p : PageType.values()) { defaultPages.put(p, config.getInitParameter(p.initParameterName)); } validateDefaultPages(defaultPages); }
log.info("Init GenericFacesPortlet for portlet " + config.getPortletName()); super.init(config); PortletContext portletContext = this.getPortletContext();
public void init(PortletConfig config) throws PortletException { super.init(config); this.portletContext = config.getPortletContext(); allowPreferences = Boolean.parseBoolean(PortletConfigUtils.getInitParameter(config, config.getPortletContext(), PARAM_ALLOW_PREFERENCES, "false")); defaultHstSiteMountPath = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_SITEMOUNT_PATH_PARAM, defaultHstSiteMountPath); defaultHstPathInfo = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_PATH_INFO_PARAM, defaultHstPathInfo); defaultHstPathInfoEditMode = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_PATH_INFO_EDIT_MODE_PARAM, defaultHstPathInfoEditMode); defaultHstComponentTargetPath = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_TARGET_COMPONENT_PATH_PARAM, defaultHstComponentTargetPath); defaultPortletTitle = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_PORTLET_TITLE_PARAM_NAME, defaultPortletTitle); defaultHeaderPage = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_HEADER_PAGE_PARAM_NAME, defaultHeaderPage); defaultHelpPage = PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_HELP_PAGE_PARAM_NAME, defaultHelpPage); defaultPortalContentPathBased = Boolean.parseBoolean(PortletConfigUtils.getInitParameter(config, config.getPortletContext(), HST_PORTAL_CONTENT_PATH_BASED, "false")); }
throws PortletException super.init(config);
public void init() throws PortletException { super.init();
super.init(portletConfig);