// GetApplicationGroups get list of application groups
GetApplicationGroups get list of application groups
// GetApplicationGroups get list of application groups
func (agmr *AppGroupMongoRepository) GetApplicationGroups(page int, nameFilter string) []ApplicationGroup {
	skips := constants.PAGE_LENGTH * (page - 1)
	var groups []ApplicationGroup
	agmr.Collection.Find(bson.M{"name": bson.RegEx{nameFilter + ".*", ""}}).Sort("name").Skip(skips).Limit(constants.PAGE_LENGTH).All(&groups)
	return groups
}
func ( agmr * AppGroupMongoRepository ) GetApplicationGroups ( page int , nameFilter string ) [ ] ApplicationGroup { skips := constants . PAGE_LENGTH * ( page - 1 ) var groups [ ] ApplicationGroup agmr . Collection . Find ( bson . M { " " : bson . RegEx { nameFilter + " " , " " } } ) . Sort ( " " ) . Skip ( skips ) . Limit ( constants . PAGE_LENGTH ) . All ( & groups ) return groups }
GetApplicationGroups get list of application groups
GetApplicationGroups get list of application groups