Class ProducerEntityManagerImpl

  • All Implemented Interfaces:
    com.sun.portal.wsrp.consumer.producermanager.impl.ProducerEntityManagerDataStore, com.sun.portal.wsrp.consumer.producermanager.ProducerEntityManager

    public class ProducerEntityManagerImpl
    extends com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager
    Lumis implementation of the ProducerEntityManager interface. Responsible for managing the consumer's ProducerEntity and track the configurations of the remote portlet/service.
    Since:
    5.5.0
    Version:
    $Revision: 16824 $ $Date: 2015-01-23 18:49:12 -0200 (Fri, 23 Jan 2015) $
    • Constructor Detail

      • ProducerEntityManagerImpl

        public ProducerEntityManagerImpl()
    • Method Detail

      • getProducerEntity

        public com.sun.portal.wsrp.consumer.producermanager.ProducerEntity getProducerEntity​(String producerEntityId)
                                                                                      throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • getProducerEntityIds

        public Set<String> getProducerEntityIds()
                                         throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • init

        public void init​(String portalId,
                         String serviceInstanceId)
                  throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • isActivated

        public boolean isActivated()
                            throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setActivated

        public void setActivated​(boolean active)
                          throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setIdentityPropagationType

        public void setIdentityPropagationType​(String producerEntityId,
                                               String type)
                                        throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently no identity propagation is not allowed. See ProducerEntityImpl.setIdentityPropagationType(String)
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setName

        public void setName​(String producerEntityId,
                            String name)
                     throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setStatus

        public void setStatus​(String producerEntityId,
                              com.sun.portal.wsrp.consumer.producermanager.ProducerEntityStatus status)
                       throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • purgeProducerEntity

        public void purgeProducerEntity​(String producerEntityId)
                                 throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • storeModifiedRegistration

        public void storeModifiedRegistration​(String producerEntityId,
                                              String rdXML,
                                              String rcXML)
                                       throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Registration is currently not supported.
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • storeProducerEntity

        public void storeProducerEntity​(com.sun.portal.wsrp.consumer.producermanager.ProducerEntity pe)
                                 throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • storeUpdatedServiceDescription

        public void storeUpdatedServiceDescription​(String producerEntityId,
                                                   String sdXML)
                                            throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • createProducerEntity

        protected com.sun.portal.wsrp.consumer.producermanager.ProducerEntity createProducerEntity​(String producerEntityId,
                                                                                                   String producerName,
                                                                                                   URL producerURL,
                                                                                                   String markupEndpoint,
                                                                                                   com.sun.portal.wsrp.consumer.producermanager.ProducerEntityStatus status,
                                                                                                   com.sun.portal.wsrp.common.stubs.v2.RegistrationData regData,
                                                                                                   com.sun.portal.wsrp.common.stubs.v2.RegistrationContext regContext,
                                                                                                   com.sun.portal.wsrp.common.stubs.v2.ServiceDescription serviceDesc,
                                                                                                   Map userCategories,
                                                                                                   Map allowedUserProfiles,
                                                                                                   Map customUserProfiles,
                                                                                                   long serviceDescLastModified,
                                                                                                   String lastModified,
                                                                                                   int entityVersion,
                                                                                                   String identityPropagationType,
                                                                                                   String producerVersion,
                                                                                                   com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
                                                                                            throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Creates a new instance of ProducerEntity and return it
        Overrides:
        createProducerEntity in class com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • getServiceDescription

        public com.sun.portal.wsrp.common.stubs.v2.ServiceDescription getServiceDescription​(URL producerURL,
                                                                                            String version)
                                                                                     throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Specified by:
        getServiceDescription in interface com.sun.portal.wsrp.consumer.producermanager.ProducerEntityManager
        Overrides:
        getServiceDescription in class com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • removeProducerEntity

        public void removeProducerEntity​(String producerEntityId,
                                         boolean deregister)
                                  throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException,
                                         com.sun.portal.wsrp.consumer.producermanager.InbandRegistrationNotSupportedException
        Specified by:
        removeProducerEntity in interface com.sun.portal.wsrp.consumer.producermanager.ProducerEntityManager
        Overrides:
        removeProducerEntity in class com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        com.sun.portal.wsrp.consumer.producermanager.InbandRegistrationNotSupportedException
      • getStandardUserProfileMapping

        public Map<String,​String> getStandardUserProfileMapping()
                                                               throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Returns:
        null
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setAllowedUserProfileMapping

        public void setAllowedUserProfileMapping​(String producerEntityId,
                                                 Map<String,​String> allowedUserProfileMap)
                                          throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setCustomUserProfileMapping

        public void setCustomUserProfileMapping​(String producerEntityId,
                                                Map<String,​String> customUserProfileMap)
                                         throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setDefaultRegistrationData

        public void setDefaultRegistrationData​(com.sun.portal.wsrp.common.stubs.v2.RegistrationData rd)
                                        throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setUserCategoryMapping

        public void setUserCategoryMapping​(String producerEntityId,
                                           Map<String,​String> userCategoryMap)
                                    throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setStandardUserProfileMapping

        public void setStandardUserProfileMapping​(Map<String,​String> standardUserProfileMap)
                                           throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • getDefaultRegistrationData

        public com.sun.portal.wsrp.common.stubs.v2.RegistrationData getDefaultRegistrationData()
                                                                                        throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Returns:
        null
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • getConsumerName

        public String getConsumerName()
                               throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setConsumerName

        public void setConsumerName​(String consumerName)
                             throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setLifetime

        public void setLifetime​(com.sun.portal.wsrp.consumer.producermanager.ProducerEntity producerEntity,
                                com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
                         throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Call the setRegistrationLifetime method that allows a consumer to request a change to the lifetime.
        Parameters:
        producerEntityId -
        lifetime -
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException