Github user isper3at commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/124#discussion_r89898179
  
    --- Diff: 
dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/dao/SimpleMongoDBStorageStrategy.java
 ---
    @@ -96,12 +103,19 @@ public DBObject getQuery(final RyaStatement stmt) {
     
         @Override
         public RyaStatement deserializeDBObject(final DBObject queryResult) {
    -        final Map result = queryResult.toMap();
    +        final Map<?, ?> result = queryResult.toMap();
             final String subject = (String) result.get(SUBJECT);
             final String object = (String) result.get(OBJECT);
             final String objectType = (String) result.get(OBJECT_TYPE);
             final String predicate = (String) result.get(PREDICATE);
             final String context = (String) result.get(CONTEXT);
    +        final Object documentVisibilityObject = 
result.get(DOCUMENT_VISIBILITY);
    --- End diff --
    
    create an adapter for converting to/from mongo object to the Authorization 
type and use that here.
    You'll find examples on adapters I've made in temporal indexing


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to