protected Portlet getPortlet(String windowId) throws PortletInvokerException { return portletInvoker.getPortlet(PortletContext.createPortletContext(windowId)); }
@Override public org.gatein.pc.api.WindowState unmarshal(String name) throws Exception { return org.gatein.pc.api.WindowState.create(name); }
public int hashCode() { return windowState.hashCode(); }
@Override public Mode unmarshal(String name) throws Exception { return Mode.create(name); }
protected static Map<String, String[]> safeBuildParameters(StateString stateString) { if (stateString != null) { return ParametersStateString.create(stateString).getParameters(); } else { return null; } }
protected PortletInvocationResponse invoke(PortletInvocation invocation) throws PortletInvokerException { return portletInvoker.invoke(invocation); }
public void onStateEvent(StateEvent event) { switch (event.getType()) { case PORTLET_CLONED_EVENT: clonedContext = event.getPortletContext(); break; case PORTLET_MODIFIED_EVENT: modifiedContext = event.getPortletContext(); break; } }
public String getModeName() { return mode.toString(); } }
public String getWindowStateName() { return windowState.toString(); } }
private InternalResourceURL(StateString navigationalState, Mode mode, WindowState windowState) { this.parameters = ParametersStateString.create(); this.navigationalState = navigationalState; this.mode = mode; this.windowState = windowState; }
protected Map<String, String[]> getParameters() { return parameters.getParameters(); }
public boolean isRemote() { return next.isRemote(); }
public boolean isActive() { return portletInvoker.isActive(); }
public FederatedPortletInvoker resolvePortletInvokerFor(String invokerId, FederatingPortletInvoker callingInvoker, String compoundPortletId) throws NoSuchPortletException { if (compoundPortletId != null) { throw new NoSuchPortletException(compoundPortletId); } else { return null; } }
protected void setParameters(Map<String, String[]> parameters) { interactionState.replace(parameters); }
protected Portlet getPortlet(String windowId) throws PortletInvokerException { return portletInvoker.getPortlet(PortletContext.createPortletContext(windowId)); }
private static Mode getTemplateMode() { return Mode.create(REWRITE_PARAMETER_OPEN + MODE + REWRITE_PARAMETER_CLOSE, true); }
public PortletInvocationResponse invoke(PortletInvocation invocation) throws PortletInvokerException { return invoker.invoke(invocation); }
public void onStateEvent(StateEvent event) { switch (event.getType()) { case PORTLET_CLONED_EVENT: clonedContext = event.getPortletContext(); break; case PORTLET_MODIFIED_EVENT: modifiedContext = event.getPortletContext(); break; } }
private InternalActionURL(StateString navigationalState) { this.interactionState = ParametersStateString.create(); this.navigationalState = navigationalState; }