Examples of toClientObject()


Examples of com.google.livingstories.server.dataservices.entities.BaseContentEntity.toClientObject()

      }
      tx = pm.currentTransaction();
      tx.begin();
      pm.makePersistent(contentEntity);
      tx.commit();
      return contentEntity.toClientObject();
    finally {
      if (tx != null && tx.isActive()) {
        tx.rollback();
      }
      pm.close();
View Full Code Here

Examples of com.google.livingstories.server.dataservices.entities.BaseContentEntity.toClientObject()

    // We pass suggested new linked content items back to the client by adding their ids to the
    // client object before returning it. It's the client's responsibility to check the linked
    // content item ids it passed in with those that came back, and to present appropriate
    // UI for processing the suggestions. Note that we shouldn't add the suggestions directly
    // to contentEntity! This will persist them to the datastore prematurely.
    BaseContentItem ret = contentEntity.toClientObject();
   
    if (newLinkedContentItemSuggestions != null) {
      ret.addAllLinkedContentItemIds(newLinkedContentItemSuggestions);
    }
   
View Full Code Here

Examples of com.google.livingstories.server.dataservices.entities.LivingStoryEntity.toClientObject()

      }
      tx = pm.currentTransaction();
      tx.begin();
      pm.makePersistent(entity);
      tx.commit();
      return entity.toClientObject(false);
    } finally {
      if (tx != null && tx.isActive()) {
        tx.rollback();
      }
      pm.close();
View Full Code Here

Examples of com.google.livingstories.server.dataservices.entities.ThemeEntity.toClientObject()

      }
      tx = pm.currentTransaction();
      tx.begin();
      pm.makePersistent(entity);
      tx.commit();
      return entity.toClientObject();
    } finally {
      if (tx != null && tx.isActive()) {
        tx.rollback();
      }
      pm.close();
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.