public class ServiceInstanceIdXmlAdapter extends XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,String>
ServiceInstanceConfig
's identifier and a standard portal format for user in JAXB.
Sample output in JSON:
{
"id":"8A488DC84FD344AE014FD3D40812016E"
"name":"Notícias"
}
If the user identifier is not null
but no user is found with that identifier, the an output containing only
the user identifier is generated. Sample output of this scenario in JSON:
{
"id":"8A488DC84FD344AE014FD3D40812016E"
}
Sample input formats in JSON:
Constructor and Description |
---|
ServiceInstanceIdXmlAdapter() |
Modifier and Type | Method and Description |
---|---|
lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig |
marshal(String serviceInstanceId) |
String |
unmarshal(lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig adaptedUser) |
public String unmarshal(lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig adaptedUser) throws Exception
unmarshal
in class XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,String>
Exception
public lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig marshal(String serviceInstanceId) throws Exception
marshal
in class XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,String>
Exception
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.