Package com.ikanow.infinit.e.api.social.sharing

Examples of com.ikanow.infinit.e.api.social.sharing.ShareHandler


      if ( DbManager.getCustom().getLookup().find(new BasicDBObject(CustomMapReduceJobPojo.jarURL_, url)).count() == 0 )
      {
        //grab the id
        String jarid = url.substring( url.lastIndexOf("/") + 1 );
        //remove the jar
        return new ShareHandler().removeShare(ownerid, jarid);
      }
      else
      {
        return new ResponsePojo(new ResponseObject("removejar", false, "More than 1 job use this jar, could not remove."));
      }
View Full Code Here


 
  // Stored queries (ie just the query JSON)
 
  static AdvancedQueryPojo getStoredQueryArtefact(String shareIdStr, AdvancedQueryPojo query, String userIdStr) {
   
    ResponsePojo rp2 = new ShareHandler().getShare(userIdStr, shareIdStr, true);
    if ((null != rp2.getData() || !rp2.getResponse().isSuccess())) {
      SharePojo share = (SharePojo) rp2.getData();
      if (null != share) {
        if (share.getType().equalsIgnoreCase("dataset")) {
          query.input = new com.google.gson.Gson().fromJson(share.getShare(), AdvancedQueryPojo.QueryInputPojo.class);
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.api.social.sharing.ShareHandler

Copyright © 2018 www.massapicom. 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.