Class ServiceInstanceIdXmlAdapter


  • public class ServiceInstanceIdXmlAdapter
    extends XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,​java.lang.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) $
    • 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)  
      • Methods inherited from class java.lang.Object

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

      • ServiceInstanceIdXmlAdapter

        public ServiceInstanceIdXmlAdapter()
    • Method Detail

      • unmarshal

        public java.lang.String unmarshal​(lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig adaptedUser)
                                   throws java.lang.Exception
        Specified by:
        unmarshal in class XmlAdapter<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 class XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,​java.lang.String>
        Throws:
        java.lang.Exception