add getDocument() function

After updated to latest code, OUser and ORole was replaced by OImmutableUser and OImmutableRole. Which cause compile failure for my third part jar. Old getDocument() function is not accessible from outside. Add getDocument interface in OSecurityUser and OSecurityRole.