Package lumis.portal.serviceinstance
Class ServiceInstanceIdXmlAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,java.lang.String>
-
- lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter
-
public class ServiceInstanceIdXmlAdapter extends XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,java.lang.String>
Adapter for converting between anServiceInstanceConfig
'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:
- {"id":"8A488DC84FD344AE014FD3D40812016E"}
- "8A488DC84FD344AE014FD3D40812016E"
- Since:
- 8.2.0
- Version:
- $Revision: 18135 $ $Date: 2015-12-15 17:31:03 -0200 (Tue, 15 Dec 2015) $
-
-
Constructor Summary
Constructors Constructor Description ServiceInstanceIdXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig
marshal(java.lang.String serviceInstanceId)
java.lang.String
unmarshal(lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig adaptedUser)
-
-
-
Method Detail
-
unmarshal
public java.lang.String unmarshal(lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig adaptedUser) throws java.lang.Exception
- Specified by:
unmarshal
in classXmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,java.lang.String>
- Throws:
java.lang.Exception
-
marshal
public lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig marshal(java.lang.String serviceInstanceId) throws java.lang.Exception
- Specified by:
marshal
in classXmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,java.lang.String>
- Throws:
java.lang.Exception
-
-