Class ServiceInstanceIdXmlAdapter


  • public class ServiceInstanceIdXmlAdapter
    extends javax.xml.bind.annotation.adapters.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$ $Date$
    • 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 javax.xml.bind.annotation.adapters.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 javax.xml.bind.annotation.adapters.XmlAdapter<lumis.portal.serviceinstance.ServiceInstanceIdXmlAdapter.AdaptedServiceInstanceConfig,​java.lang.String>
        Throws:
        java.lang.Exception