This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Indexed @ProvidedId | |
public class Message implements Entity, DeepCopy<Message>, Serializable { | |
public String key; | |
public String from; | |
@Field | |
public String to; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DomainObjectQueryHandler will assert a generic "SearchInfo" data-type | |
public abstract class DomainObjectQueryHandler<T extends SearchInfo> { | |
... | |
public abstract T buildSearchInfo(HttpServletRequest request); | |
... | |
public String refineQString(T searchInfo) { | |
return null; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// oae-context/lib/api.js | |
/** | |
* A generic context object that represents a user execution context. | |
* | |
* @param {String} tenantId The unique id of the tenant in the context (e.g., 'cam') | |
* @param {String} userUuid The UUID of the active user in the context (e.g., 'u:cam:nicolaas') | |
*/ | |
var Context = module.exports.Context = function(tenantId, userUuid) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Determine whether or not one of the principals in the array of principalUuids is able to perform the action on the | |
* resource specified. If the action is null, then we will determine if the user can perform *any* action on the | |
* resource specified. | |
* | |
* @param {Array<String>} principalUuids The array of principals to check | |
* @param {String} action The action to check. If null, check for any action. | |
* @param {String} resourceUuid The resource to check | |
* @param {Function(err, isAllowed)} callback A function invoked when the process is complete. | |
* @param {Object} callback.err An error that occured, if any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filtered": { | |
"query": { | |
"queryString": { | |
"default_field": "general", | |
"query": "hazardous" | |
} | |
}, | |
"filter": { | |
"and": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"filtered": { | |
"query": { | |
"default_field": "general", | |
"query": "link" | |
}, | |
"filter": { | |
"and": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Query: | |
{ | |
"query": { | |
"query_string": { | |
"default_field": "general", | |
"query": "*" | |
} | |
}, | |
"from": "0", | |
"size": "10", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2) Users User timezone Test timezones: | |
TypeError: Cannot call method 'toString' of undefined | |
at ServerResponse.writeHead (http.js:980:45) | |
at ServerResponse.res.writeHead (/private/tmp/Hilary/node_modules/connect/lib/patch.js:75:22) | |
at ServerResponse._implicitHeader (http.js:931:8) | |
at ServerResponse.OutgoingMessage.end (http.js:766:10) | |
at res.end (/private/tmp/Hilary/node_modules/connect/lib/middleware/session.js:284:13) | |
at module.exports.RedisStore.set (/private/tmp/Hilary/node_modules/connect-redis/lib/connect-redis.js:128:18) | |
at try_callback (/private/tmp/Hilary/node_modules/redis/index.js:520:9) | |
at RedisClient.return_reply (/private/tmp/Hilary/node_modules/redis/index.js:590:13) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/grunt.js b/grunt.js | |
index 3412fd7..8b35d4a 100644 | |
--- a/grunt.js | |
+++ b/grunt.js | |
@@ -1,6 +1,7 @@ | |
module.exports = function(grunt) { | |
var shell = require('shelljs'); | |
+ var grep = process.env['MOCHA_GREP'] || undefined; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MyModule.js | |
define(['jquery-loader', 'oae.core', 'jquery.timeago', 'jquery.infinitescroll'], function($, oae, timeago, infiniteScroll) { | |
return function(uid, showSettings, widgetData) { | |
///////////////////////////// | |
// Configuration variables // | |
///////////////////////////// |
OlderNewer