public ContainerServices getContainerServices() { return pluto.getContainerServices(); }
public PortletRequestImpl(PortletRequestContext requestContext, PortletResponseContext responseContext, String lifecyclePhase) { this.requestContext = requestContext; this.responseContext = responseContext; this.lifecyclePhase = lifecyclePhase; this.portalContext = getPortletContainer().getContainerServices().getPortalContext(); }
protected PortalContext getPortalContext() { return getPortletContainer().getContainerServices().getPortalContext(); }
protected BaseURLImpl(PortletResponseContext responseContext, PortletURLProvider urlProvider) { this.responseContext = responseContext; this.portalContext = responseContext.getContainer() .getContainerServices().getPortalContext(); this.windowId = responseContext.getPortletWindow().getId().getStringId(); this.urlProvider = urlProvider; renderURL = PortletURLProvider.TYPE.RENDER == urlProvider.getType(); if (isTrace) { StringBuilder txt = new StringBuilder(); txt.append("URL provider type=").append(urlProvider.getType()); txt.append(", WindowId=").append(windowId); txt.append(", isRender=").append(renderURL); LOGGER.debug(txt.toString()); } }
public String getNamespace() { if (namespace == null) { namespace = getPortletContainer().getContainerServices().getNamespaceMapper().encode(getPortletWindow().getId(), ""); StringBuffer validNamespace = new StringBuffer(); for (int i = 0; i < namespace.length(); i++) { char ch = namespace.charAt(i); if (Character.isJavaIdentifierPart(ch)) { validNamespace.append(ch); } else { validNamespace.append('_'); } } namespace = validNamespace.toString(); } return namespace; }
preferencesService = container.getContainerServices() .getPortletPreferencesService(); if (LOG.isTraceEnabled()) {
protected String encodeAttributeName(String name) { if (isReservedAttributeName(name)) { return name; } return container.getContainerServices().getNamespaceMapper().encode(window.getId(), name); }
protected String decodeAttributeName(String name) { if (isReservedAttributeName(name)) { return name; } String result = container.getContainerServices().getNamespaceMapper().decode(window.getId(), name); return result != null ? result : name; }
if (userInfo == null) { try { userInfo = getPortletContainer().getContainerServices().getUserInfoService().getUserInfo(this, getPortletWindow()); } catch (Exception e) { userInfo = Collections.emptyMap(); } else if (name.equals(PortletRequest.CCPP_PROFILE)) { if (ccppProfile == null) { ccppProfile = getPortletContainer().getContainerServices().getCCPPProfileService().getCCPPProfile(getServletRequest());
try { PortletURLListenerService service = responseContext.getContainer() .getContainerServices().getPortletURLListenerService(); PortletApplicationDefinition portletApp = responseContext .getPortletWindow().getPortletDefinition().getApplication();
public HttpServletPortletRequestWrapper(HttpServletRequest hreq, HttpSession session, PortletRequest preq) { super(hreq); this.preq = preq; this.session = session; reqctx = (PortletRequestContext) preq.getAttribute(PortletInvokerService.REQUEST_CONTEXT); this.mapper = reqctx.getContainer().getContainerServices().getNamespaceMapper(); this.winId = reqctx.getPortletWindow().getId(); this.phase = (String) preq.getAttribute(PortletRequest.LIFECYCLE_PHASE); }
public EventProvider getEventProvider() { if (!isClosed()) { return ((JetspeedEventCoordinationService)getContainer().getContainerServices().getEventCoordinationService()).createEventProvider(getServletRequest(), getPortletWindow()); } return null; } }
final ContainerServices containerServices = container.getContainerServices(); final PortletEnvironmentService portletEnvironmentService = containerServices.getPortletEnvironmentService();