This file contains hidden or 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
| package br.com.oobj.me.hystrix; | |
| import io.prometheus.client.exporter.MetricsServlet; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.apache.log4j.Logger; | |
| import org.dom4j.Element; | |
| import org.eclipse.jetty.server.Server; | |
| import org.eclipse.jetty.servlet.ServletContextHandler; | |
| import org.eclipse.jetty.servlet.ServletHolder; |
This file contains hidden or 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
| package com.ifood.merchant.core.service; | |
| import com.ifood.merchant.core.converter.domain.GroupClientToGroupConverter; | |
| import com.ifood.merchant.core.domain.Group; | |
| import com.ifood.merchant.core.domain.Store; | |
| import com.ifood.merchant.core.repository.GroupJpaRepository; | |
| import com.ifood.merchant.model.GroupClientDTO; | |
| import com.ifood.merchant.model.enums.GroupType; | |
| import org.junit.Before; | |
| import org.junit.Rule; |
This file contains hidden or 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
| import java.util.function.Consumer; | |
| import java.util.function.Supplier; | |
| import org.apache.commons.lang3.StringUtils; | |
| /** | |
| * Classe responsavel por fornecer metodos utilitarios para transferencia do | |
| * valor de um objeto para outro | |
| * | |
| * @author Ricardo Faria |
This file contains hidden or 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
| myApp.config(['$compileProvider', function ($compileProvider) { | |
| $compileProvider.debugInfoEnabled(false); | |
| }]); |
This file contains hidden or 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
| <!-- STEP 1: Add This Script Markup to your Page.. This is the Template for the Pager --> | |
| <!-- Pager Markup --> | |
| <script id="od-pager.html" type="text/ng-template"> | |
| <ul class="pagination" ng-show="links().length > 1"> | |
| <li><a ng-click="prev()">«</a></li> | |
| <li ng-class="{active:isCurrentPage(item)}" ng-repeat="item in links()"><a ng-click="goto(item)">{{item + 1}}</a></li> | |
| <li><a ng-click="next()">»</a></li> | |
| </ul> | |
| </script> |
This file contains hidden or 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
| import java.lang.reflect.Type; | |
| import com.google.gson.Gson; | |
| import com.google.gson.reflect.TypeToken; | |
| Gson gson = new Gson(); | |
| Type type = new TypeToken<Map<String, ServiceInfo>>(){}.getType(); | |
| return gson.fromJson(jsonResult, type); |