Ejemplo n.º 1
0
  private void applyAssignedToContentsHql(
      ContentSpecification specification, SelectBuilder hqlQuery) {
    hqlQuery.addFilter(
        "AND", "c.assignee = '" + specification.getAssignee().getKey().toString() + "'");

    if (specification.assignedDraftsOnly()) {
      hqlQuery.addFilter("AND", "c.draftVersion != null");
    }
  }
Ejemplo n.º 2
0
 private void applyIsDeletedFilter(
     ContentSpecification specification, final SelectBuilder hqlQuery) {
   if (!specification.doIncludeDeleted()) {
     hqlQuery.addFilter("AND", "c.deleted = 0");
   }
 }