Class FederatingPortletInvokerService

    • Constructor Detail

      • FederatingPortletInvokerService

        public FederatingPortletInvokerService()
    • Method Detail

      • getPortlets

        public Set<org.gatein.pc.api.Portlet> getPortlets()
                                                   throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        getPortlets in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • getLocalPortlets

        public Set<org.gatein.pc.api.Portlet> getLocalPortlets()
                                                        throws org.gatein.pc.api.PortletInvokerException
        Description copied from interface: FederatingPortletInvoker
        Return only the portlets from local federated invokers.
        Specified by:
        getLocalPortlets in interface FederatingPortletInvoker
        Returns:
        a Set containing only the portlets from local federated invokers.
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • getRemotePortlets

        public Set<org.gatein.pc.api.Portlet> getRemotePortlets()
                                                         throws org.gatein.pc.api.PortletInvokerException
        Description copied from interface: FederatingPortletInvoker
        Return only the portlets from remote federated invokers.
        Specified by:
        getRemotePortlets in interface FederatingPortletInvoker
        Returns:
        a Set containing only the portlets from remote federated invokers.
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • getPortlet

        public org.gatein.pc.api.Portlet getPortlet​(org.gatein.pc.api.PortletContext compoundPortletContext)
                                             throws IllegalArgumentException,
                                                    org.gatein.pc.api.PortletInvokerException
        Specified by:
        getPortlet in interface org.gatein.pc.api.PortletInvoker
        Throws:
        IllegalArgumentException
        org.gatein.pc.api.PortletInvokerException
      • getStatus

        public org.gatein.pc.api.PortletStatus getStatus​(org.gatein.pc.api.PortletContext portletContext)
                                                  throws IllegalArgumentException,
                                                         org.gatein.pc.api.PortletInvokerException
        Specified by:
        getStatus in interface org.gatein.pc.api.PortletInvoker
        Throws:
        IllegalArgumentException
        org.gatein.pc.api.PortletInvokerException
      • invoke

        public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke​(org.gatein.pc.api.invocation.PortletInvocation invocation)
                                                                               throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        invoke in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • createClone

        public org.gatein.pc.api.PortletContext createClone​(org.gatein.pc.api.PortletStateType stateType,
                                                            org.gatein.pc.api.PortletContext compoundPortletContext)
                                                     throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        createClone in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • getProperties

        public org.gatein.pc.api.state.PropertyMap getProperties​(org.gatein.pc.api.PortletContext compoundPortletContext,
                                                                 Set<String> keys)
                                                          throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        getProperties in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • getProperties

        public org.gatein.pc.api.state.PropertyMap getProperties​(org.gatein.pc.api.PortletContext compoundPortletContext)
                                                          throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        getProperties in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • exportPortlet

        public org.gatein.pc.api.PortletContext exportPortlet​(org.gatein.pc.api.PortletStateType stateType,
                                                              org.gatein.pc.api.PortletContext compoundPortletContext)
                                                       throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        exportPortlet in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • importPortlet

        public org.gatein.pc.api.PortletContext importPortlet​(org.gatein.pc.api.PortletStateType stateType,
                                                              org.gatein.pc.api.PortletContext compoundPortletContext)
                                                       throws org.gatein.pc.api.PortletInvokerException
        Specified by:
        importPortlet in interface org.gatein.pc.api.PortletInvoker
        Throws:
        org.gatein.pc.api.PortletInvokerException
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface org.gatein.pc.api.PortletInvoker
      • getFederatedPortletInvokerFor

        protected FederatedPortletInvoker getFederatedPortletInvokerFor​(org.gatein.pc.api.PortletContext compoundPortletContext)
                                                                 throws IllegalArgumentException,
                                                                        org.gatein.pc.api.NoSuchPortletException
        Retrieves the portlet invoker associated with the specified compound portlet id or null if it is not found.
        Parameters:
        compoundPortletContext - the portlet context for which the invoker is to be retrieved
        Returns:
        the portlet invoker associated with the specified compound portlet id
        Throws:
        IllegalArgumentException - if the compound portlet id is not well formed or null
        org.gatein.pc.api.NoSuchPortletException - if not such portlet exist