Questions tagged as 'groovy'

0
answers

Groovy with oauth2

We are developing a call to an SMS Sent Web Service that uses oauth2 authentication. This development is being done in groovy. We seek in various forums how to make the call, passing the parameters and how to receive the response from the web se...
asked by 03.08.2018 / 18:21
0
answers

Set file cell * .CSV as merged

Is it possible to have a particular cell merged into a generated * .csv file? I'm asking because I'm generating a * .csv file where the user should only make a Ctrl + C \ Ctrl + v in the content and paste it into a standard workshe...
asked by 10.11.2017 / 16:26
0
answers

Encrypt password in groovy

I am developing an application that will have a login screen that will be based on data (user, password) already saved in a MySQL database, / em> that was used the first time to encrypt the user's password to validate if the user who is trying...
asked by 10.05.2017 / 22:33
1
answer

Creation of deploy environment with linux Ubuntu

I'm testing a Digital Ocean machine, it comes with Ubuntu Linux (I chose), I need to create the following environment Firewall Java Tomcat7 Jenkins git MySQL MySqlAdmin Groovy Gradle Well, as you can see, I need a complete environment t...
asked by 02.03.2015 / 16:37
4
answers

Encrypt password in Java with sha256 Hash

I need to compare the password that the user is putting in a login screen with the one that is saved in the database, I discovered that when the user is registered, the hash sha256 to encrypt the password, but I'm not able to find how to encr...
asked by 12.05.2017 / 22:19
0
answers

How to get the type (class) from a list in groovy

I have the following code: Set<String> list How do I know the type of this list? In this case it would be java.lang.String     
asked by 07.01.2015 / 13:57
1
answer

More efficient way to compare two variables type List

I have two variables of type List that need to be compared against each other to check for possible duplicates. Example of Variable Content Variable 01: [01, Test, Active] Variable 02: [01, Test, Active] I'm currently us...
asked by 02.03.2017 / 12:13
2
answers

I am not able to modify the value of the class PhysicalBook which is a Book

I've done everything and nothing of the value has been modified ... How do? I used inheritance in the physical book, the class looks like this: class Livrofisico extends Livro{ public Livrofisico (Autor autor){ super(autor) }...
asked by 26.12.2015 / 05:24
1
answer

Good Practice passing arguments to a method when they come from another function

I came across a code similar to the following: private fazerAlgo(AlgumaCoisa algumaCoisa) { Utilidades.converter( formatador.formatarParaTal( algumaCoisa.a, algumaCoisa.b, algumaCoisa.c ) ) } At first glance...
asked by 26.05.2017 / 20:48
1
answer

* .CSV file with UTF-8

I created a process that takes content from a certain web page filters what is necessary and generates a file *.csv of this content, you work correctly however the words that have some accentuation ends up giving error in generating time,...
asked by 08.11.2017 / 11:26