// GetApplicationGroups get list of application groups
GetApplicationGroups get list of application groups
// GetApplicationGroups get list of application groups
func (agmr *AppGroupOracleRepository) GetApplicationGroups(page int, nameFilter string) []ApplicationGroup {
	var groups []ApplicationGroup
	query := LIST_APPLICATION_GROUP_V2
	if page != -1 {
		query = `SELECT * FROM
	 		(
	 			SELECT a.*, rownum r__
	 			FROM
	 			(
	 				` + query + `
	 			) a
	 			WHERE rownum < ((:page * 10) + 1 )
	 		)
	 		WHERE r__ >= (((:page-1) * 10) + 1)`
		rows, _ := agmr.Tx.Query(query, "%"+nameFilter+"%", page)
		groups = RowsToAppGroup(rows, true)
	} else {
		rows, _ := agmr.Tx.Query(query, "%"+nameFilter+"%")
		groups = RowsToAppGroup(rows, false)
	}
	return groups
}
func ( agmr * AppGroupOracleRepository ) GetApplicationGroups ( page int , nameFilter string ) [ ] ApplicationGroup { var groups [ ] ApplicationGroup query := LIST_APPLICATION_GROUP_V2 if page != - 1 { query = `SELECT * FROM
	 		(
	 			SELECT a.*, rownum r__
	 			FROM
	 			(
	 				` + query + `
	 			) a
	 			WHERE rownum < ((:page * 10) + 1 )
	 		)
	 		WHERE r__ >= (((:page-1) * 10) + 1)` rows , _ := agmr . Tx . Query ( query , " " + nameFilter + " " , page ) groups = RowsToAppGroup ( rows , true ) } else { rows , _ := agmr . Tx . Query ( query , " " + nameFilter + " " ) groups = RowsToAppGroup ( rows , false ) } return groups }
GetApplicationGroups get list of application groups
GetApplicationGroups get list of application groups