Class ServiceInstanceIdXmlAdapter


  • public class ServiceInstanceIdXmlAdapter
    extends XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,​String>
    Adapter for converting between an 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:

    • {"id":"8A488DC84FD344AE014FD3D40812016E"}
    • "8A488DC84FD344AE014FD3D40812016E"
    Since:
    8.2.0
    Version:
    $Revision: 18135 $ $Date: 2015-12-15 17:31:03 -0200 (Tue, 15 Dec 2015) $
    • Constructor Detail

      • ServiceInstanceIdXmlAdapter

        public ServiceInstanceIdXmlAdapter()
    • Method Detail

      • unmarshal

        public String unmarshal​(lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig adaptedUser)
                         throws Exception
        Specified by:
        unmarshal in class XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,​String>
        Throws:
        Exception
      • marshal

        public lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig marshal​(String serviceInstanceId)
                                                                                                      throws Exception
        Specified by:
        marshal in class XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,​String>
        Throws:
        Exception