How do you convert a java.lang.String into a UcmdbID?
The UcmdbId java type provides a mean to convert from the native representation of the uCMDB id to a java String. However, it seems not possible to do the reverse.
Since my application is getting an XML string to build a request for history data and the com.hp.ucmdb.api.history.HistoryService.getChanges(Collection<UcmdbId> ucmdnIds, HistoryFilter histFilter) method doesn't accept anything but a collection of UcmdbId type values, how can I convert the incoming String value into a UcmdbId data type?
I tried casting the String to UcmdbId type, it doesn't work. I tried to convert to Long and then cast to UcmdbId and it still doesn't work. Should I convert to byte array?