Package com.ikanow.infinit.e.data_model.store.social.sharing

Examples of com.ikanow.infinit.e.data_model.store.social.sharing.SharePojo.toDb()


            }
           
            removeCommunity = true;
            communities.remove(scp);
            share.setModified(new Date());
            DbManager.getSocial().getShare().update(query, share.toDb());
            rp.setResponse(new ResponseObject("Share", true, "Community successfully removed from the share"));
            break;
          }
        }
View Full Code Here


    DocumentLocationPojo dlp = new DocumentLocationPojo();
    dlp.setDatabase("doc_metadata");
    dlp.setCollection("metadata");
    dlp.set_id(new ObjectId("53fe2c83e4b060b5b2a6e779")); //this needs to be a valid doc
    share_ref.setDocumentLocation(dlp);
    String share_string = share_ref.toDb().toString();
   
    Representation entity = new StringRepresentation(share_string);
    Representation rep = shareV2Interface.post(entity);
    ResponsePojo rp = ResponsePojo.fromApi( rep.getText(), null, ResponsePojo.class);
    SharePojo share = ApiManager.mapFromApi((JsonElement)rp.getData(), SharePojo.class, new SharePojoApiMap(null));
View Full Code Here

    scp.set_id(new ObjectId("4c927585d591d31d7b37097a")); //this is inf system i think
    communities.add(scp);
    share_bin.setCommunities(communities);
    String binary_data = "secret binary data";
    share_bin.setBinaryData(binary_data.getBytes());
    String share_string = share_bin.toDb().toString();
   
    Representation entity = new StringRepresentation(share_string);
    Representation rep = shareV2Interface.post(entity);
    ResponsePojo rp = ResponsePojo.fromApi( rep.getText(), null, ResponsePojo.class);
    SharePojo share = ApiManager.mapFromApi((JsonElement)rp.getData(), SharePojo.class, new SharePojoApiMap(null));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.