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) $
    • Field Summary

      • Fields inherited from class com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager

        DEFAULT_REGISTRATION_DATA
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.sun.portal.wsrp.consumer.producermanager.ProducerEntity createProducerEntity​(java.lang.String producerEntityId, java.lang.String producerName, java.net.URL producerURL, java.lang.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, java.util.Map userCategories, java.util.Map allowedUserProfiles, java.util.Map customUserProfiles, long serviceDescLastModified, java.lang.String lastModified, int entityVersion, java.lang.String identityPropagationType, java.lang.String producerVersion, com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
      Creates a new instance of ProducerEntity and return it
      java.lang.String getConsumerName()
      Currently unsupported
      com.sun.portal.wsrp.common.stubs.v2.RegistrationData getDefaultRegistrationData()
      Currently unsupported
      com.sun.portal.wsrp.consumer.producermanager.ProducerEntity getProducerEntity​(java.lang.String producerEntityId)  
      java.util.Set<java.lang.String> getProducerEntityIds()  
      com.sun.portal.wsrp.common.stubs.v2.ServiceDescription getServiceDescription​(java.net.URL producerURL, java.lang.String version)  
      java.util.Map<java.lang.String,​java.lang.String> getStandardUserProfileMapping()
      Currently unsupported
      void init​(java.lang.String portalId, java.lang.String serviceInstanceId)  
      boolean isActivated()  
      void purgeProducerEntity​(java.lang.String producerEntityId)  
      void removeProducerEntity​(java.lang.String producerEntityId, boolean deregister)  
      void setActivated​(boolean active)
      Currently unsupported
      void setAllowedUserProfileMapping​(java.lang.String producerEntityId, java.util.Map<java.lang.String,​java.lang.String> allowedUserProfileMap)
      Currently unsupported
      void setConsumerName​(java.lang.String consumerName)
      Currently unsupported
      void setCustomUserProfileMapping​(java.lang.String producerEntityId, java.util.Map<java.lang.String,​java.lang.String> customUserProfileMap)
      Currently unsupported
      void setDefaultRegistrationData​(com.sun.portal.wsrp.common.stubs.v2.RegistrationData rd)
      Currently unsupported
      void setIdentityPropagationType​(java.lang.String producerEntityId, java.lang.String type)
      Currently no identity propagation is not allowed.
      void setLifetime​(com.sun.portal.wsrp.consumer.producermanager.ProducerEntity producerEntity, com.sun.portal.wsrp.common.stubs.v2.Lifetime lifetime)
      Call the setRegistrationLifetime method that allows a consumer to request a change to the lifetime.
      void setName​(java.lang.String producerEntityId, java.lang.String name)  
      void setStandardUserProfileMapping​(java.util.Map<java.lang.String,​java.lang.String> standardUserProfileMap)
      Currently unsupported
      void setStatus​(java.lang.String producerEntityId, com.sun.portal.wsrp.consumer.producermanager.ProducerEntityStatus status)  
      void setUserCategoryMapping​(java.lang.String producerEntityId, java.util.Map<java.lang.String,​java.lang.String> userCategoryMap)
      Currently unsupported
      void storeModifiedRegistration​(java.lang.String producerEntityId, java.lang.String rdXML, java.lang.String rcXML)
      Registration is currently not supported.
      void storeProducerEntity​(com.sun.portal.wsrp.consumer.producermanager.ProducerEntity pe)  
      void storeUpdatedServiceDescription​(java.lang.String producerEntityId, java.lang.String sdXML)  
      • Methods inherited from class com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager

        addProducerEntity, addProducerEntity, decodeXML, getConsumerAgent, getConsumerObjectFactory, getEndpoints, getMapFromSet, getMapFromString, getRegistrationContextFromXML, getRegistrationContextXMLFromRC, getRegistrationDataFromXML, getRegistrationDataXMLFromRD, getServiceDescription, getServiceDescriptionXMLFromSD, getServiceDesctionFromXML, getStringFromMap, getWSRPFactory, isInbandRegistrationSupported, modifyRegistration, updateServiceDescription
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProducerEntityManagerImpl

        public ProducerEntityManagerImpl()
    • Method Detail

      • getProducerEntity

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

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

        public void init​(java.lang.String portalId,
                         java.lang.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​(java.lang.String producerEntityId,
                                               java.lang.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​(java.lang.String producerEntityId,
                            java.lang.String name)
                     throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setStatus

        public void setStatus​(java.lang.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​(java.lang.String producerEntityId)
                                 throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • storeModifiedRegistration

        public void storeModifiedRegistration​(java.lang.String producerEntityId,
                                              java.lang.String rdXML,
                                              java.lang.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​(java.lang.String producerEntityId,
                                                   java.lang.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​(java.lang.String producerEntityId,
                                                                                                   java.lang.String producerName,
                                                                                                   java.net.URL producerURL,
                                                                                                   java.lang.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,
                                                                                                   java.util.Map userCategories,
                                                                                                   java.util.Map allowedUserProfiles,
                                                                                                   java.util.Map customUserProfiles,
                                                                                                   long serviceDescLastModified,
                                                                                                   java.lang.String lastModified,
                                                                                                   int entityVersion,
                                                                                                   java.lang.String identityPropagationType,
                                                                                                   java.lang.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​(java.net.URL producerURL,
                                                                                            java.lang.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​(java.lang.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 java.util.Map<java.lang.String,​java.lang.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​(java.lang.String producerEntityId,
                                                 java.util.Map<java.lang.String,​java.lang.String> allowedUserProfileMap)
                                          throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setCustomUserProfileMapping

        public void setCustomUserProfileMapping​(java.lang.String producerEntityId,
                                                java.util.Map<java.lang.String,​java.lang.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​(java.lang.String producerEntityId,
                                           java.util.Map<java.lang.String,​java.lang.String> userCategoryMap)
                                    throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setStandardUserProfileMapping

        public void setStandardUserProfileMapping​(java.util.Map<java.lang.String,​java.lang.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 java.lang.String getConsumerName()
                                         throws com.sun.portal.wsrp.consumer.common.WSRPConsumerException
        Currently unsupported
        Throws:
        com.sun.portal.wsrp.consumer.common.WSRPConsumerException
      • setConsumerName

        public void setConsumerName​(java.lang.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