java/syncbase: Id encode/decode

Temporary implementation of encode/decodeFromString

Makes Id's blessing and constructor protected again.

getName() is still exposed since we require users to give us
a name for their collections. The reverse scenario, where they
filter those collection Ids based on name, should be allowed.

Change-Id: Id82fa696838c73e8ee54333a1557fa67f934e6f3
2 files changed