/** * Returns a collection of system messages. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of system messages. */ public MessageCollection getMessages(Args args) { return new MessageCollection(this, args); }
/** * Creates a new message. * * @param name The name (primary key) of the new message. * @param value The message text. * @return The new message. */ public Message create(String name, String value) { Args args = new Args("value", value); return create(name, args); } }
success: function() { var messagecollection = new MessageCollection(); // Loop through each grouping and set sub-collections groupcollection.each(function(group) { var list = group.get('list'); messagecollection.reset(list); group.set('list', messagecollection); }); };