     "JCodeShare"
   ]
 
-  fetchAll:(group, startDate, callback)->
-    {groupName, groupId} = group
+  fetchAll:(requestOptions, callback)->
+    {group:{groupName, groupId}, startDate, client} = requestOptions
 
     console.time 'fetchAll'
 

      generatedObjects.push generatedObject
    callback generatedObjects

  removePrivateContent:(groupId, contents, callback)->
    query = """
      start  kd=node:koding("id:#{groupId}")
      MATCH  kd-[:member]->users-[r:owner]-groups
      WHERE groups.name = "JGroup"
       AND ( groups.privacy = "private"
        OR  groups.visibility=  "hidden" )
      RETURN groups
      ORDER BY r.createdAtEpoch DESC
    """

    @db.query query, {}, (err, results)=>
      if err then return callback err
      secretGroups = (result.groups.data.slug for result in results)
      filteredContent = []
      for content in contents
        filteredContent.push content if content.group not in secretGroups
      callback null, filteredContent

  neo4jFacets = [
    "JLink"

      facetQueryList = []
      for facet in facets
        if facet not in neo4jFacets
          console.log "Unknown facet: " + facet
          continue

        facetQueryList.push("content.name=\"#{facet}\"")
