Class UserConfigXmlAdapter


  • @StableMinor(version="17.0",
                 sinceVersion="8.0")
    public class UserConfigXmlAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig,​UserConfig>
    Adapter for converting between an UserConfig and a standard portal format for it in JAXB.

    Sample output in JSON:

     {
      "id":"8A488AF9475E73CD01475FEAEC140F88",
      "login":"johnsmith",
      "name":"John Stuart Smith",
      "firstName":"John",
      "middleName":"Stuart",
      "lastName":"Smith",
      "profileImageHref":"http://localhost:8080/portal/lumis/api/rest/lum-internal/users/8A488AF9475E73CD01475FEAEC140F88/profileimage"
     }
     

    Sample input formats in JSON:

    • {"id":"8A488AF9475E73CD01475FEAEC140F88"}
    • "8A488AF9475E73CD01475FEAEC140F88"
    Since:
    8.0.0
    Version:
    $Revision$ $Date$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig marshal​(UserConfig user)  
      UserConfig unmarshal​(lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig adaptedUser)  
      • Methods inherited from class java.lang.Object

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

      • UserConfigXmlAdapter

        public UserConfigXmlAdapter()
    • Method Detail

      • unmarshal

        public UserConfig unmarshal​(lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig adaptedUser)
                             throws java.lang.Exception
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig,​UserConfig>
        Throws:
        java.lang.Exception
      • marshal

        public lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig marshal​(UserConfig user)
                                                                         throws java.lang.Exception
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<lumis.portal.user.UserConfigXmlAdapter.AdaptedUserConfig,​UserConfig>
        Throws:
        java.lang.Exception