0 Replies Latest reply on Apr 28, 2013 10:52 PM by sonny.lau

    Getting the Jive Object Type as a String

      I currently use the following code to return the Jive Object Type of a Jive Object as a String which is then sent to another service later on and all objects that go through this function are Content types (discussions, documents, messages, etc).

       

      JiveObjectType.valueOf(object.getObjectType()).getCode();
      

       

      The issue I'm having is that Wall Entries (the new version of Blog Posts?) doesn't seem to be part of the JiveObjectType Enumeration and so, a null is returned from JiveObjectType  breaking the code.

       

      Is there another class or function that I can use to do something like this without needing to create one myself? In the mean time, I'm using a workaround by returning "BlogPost" if the object equals JiveConstants.WALL_ENTRY.