Class ProducerEntityManagerImpl
- java.lang.Object
-
- com.sun.portal.wsrp.consumer.producermanager.impl.AbstractProducerEntityManager
-
- lumis.service.wsrp.consumer.producermanager.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 Summary
Constructors Constructor Description ProducerEntityManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Creates a new instance of ProducerEntity and return itString
getConsumerName()
Currently unsupportedcom.sun.portal.wsrp.common.stubs.v2.RegistrationData
getDefaultRegistrationData()
Currently unsupportedcom.sun.portal.wsrp.consumer.producermanager.ProducerEntity
getProducerEntity(String producerEntityId)
Set<String>
getProducerEntityIds()
com.sun.portal.wsrp.common.stubs.v2.ServiceDescription
getServiceDescription(URL producerURL, String version)
Map<String,String>
getStandardUserProfileMapping()
Currently unsupportedvoid
init(String portalId, String serviceInstanceId)
boolean
isActivated()
void
purgeProducerEntity(String producerEntityId)
void
removeProducerEntity(String producerEntityId, boolean deregister)
void
setActivated(boolean active)
Currently unsupportedvoid
setAllowedUserProfileMapping(String producerEntityId, Map<String,String> allowedUserProfileMap)
Currently unsupportedvoid
setConsumerName(String consumerName)
Currently unsupportedvoid
setCustomUserProfileMapping(String producerEntityId, Map<String,String> customUserProfileMap)
Currently unsupportedvoid
setDefaultRegistrationData(com.sun.portal.wsrp.common.stubs.v2.RegistrationData rd)
Currently unsupportedvoid
setIdentityPropagationType(String producerEntityId, 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(String producerEntityId, String name)
void
setStandardUserProfileMapping(Map<String,String> standardUserProfileMap)
Currently unsupportedvoid
setStatus(String producerEntityId, com.sun.portal.wsrp.consumer.producermanager.ProducerEntityStatus status)
void
setUserCategoryMapping(String producerEntityId, Map<String,String> userCategoryMap)
Currently unsupportedvoid
storeModifiedRegistration(String producerEntityId, String rdXML, String rcXML)
Registration is currently not supported.void
storeProducerEntity(com.sun.portal.wsrp.consumer.producermanager.ProducerEntity pe)
void
storeUpdatedServiceDescription(String producerEntityId, 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
-
-
-
-
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. SeeProducerEntityImpl.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 classcom.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 interfacecom.sun.portal.wsrp.consumer.producermanager.ProducerEntityManager
- Overrides:
getServiceDescription
in classcom.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 interfacecom.sun.portal.wsrp.consumer.producermanager.ProducerEntityManager
- Overrides:
removeProducerEntity
in classcom.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
-
-