This file contains 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
String ldapPasswordEncoder(String string) { | |
Charset cs = Charset.forName(CharEncoding.UTF_8); | |
StringBuilder builder = new StringBuilder("{MD5}"); | |
builder.append(new String(Base64.encode(DigestUtils.md5Digest(string | |
.getBytes(cs))))); | |
return builder.toString(); | |
} |
This file contains 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 py.una.volpe.test; | |
import static org.hamcrest.CoreMatchers.hasItem; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertThat; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Properties; |
This file contains 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.io.IOException; | |
import java.util.HashSet; | |
import java.util.Properties; | |
import java.util.Set; | |
import javax.persistence.Entity; | |
import javax.persistence.FetchType; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.OneToMany; |
This file contains 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
#!bin/bash | |
ps -eF | grep jboss | grep server | tr -s " " | cut -d " " -f2 | xargs kill -9 | |
su - jboss -c 'nohup sh /opt/jboss/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0' & |
This file contains 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 py.com.volpe.stack; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.Unmarshaller; | |
import javax.xml.bind.annotation.XmlAccessType; |
This file contains 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
--------------------------------------------------------------------------------------------------- | |
@echo off | |
REM JBoss, the OpenSource webOS | |
REM | |
REM Distributable under LGPL license. | |
REM See terms of license at gnu.org. | |
REM | |
REM ------------------------------------------------------------------------- | |
REM JBoss Service Script for Windows | |
REM ------------------------------------------------------------------------- |
This file contains 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 static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNotNull; | |
import static org.junit.Assert.assertSame; | |
import static org.junit.Assert.assertTrue; | |
import java.math.BigDecimal; | |
import java.text.ParseException; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
import org.apache.commons.lang3.time.DateUtils; |
This file contains 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
public class ServiceDefinitionRegister implements BeanFactoryPostProcessor { | |
Logger logger = LoggerFactory.getLogger(ServiceDefinitionRegister.class); | |
@Override | |
public void postProcessBeanFactory(ConfigurableListableBeanFactory bf) | |
throws BeansException { | |
Map<String, Object> beans = bf.getBeansWithAnnotation(WebService.class); | |
for (Entry<String, Object> entry : beans.entrySet()) { |
This file contains 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
/* | |
* @WatcherTest.java 1.0 Nov 4, 2013 Sistema Integral de Gestion Hospitalaria | |
*/ | |
package py.una.med.base.test.test.replication.watchers; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertThat; | |
import static org.junit.Assert.assertTrue; | |
import liquibase.change.Change; |
This file contains 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
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>unit-test</id> | |
<phase>test</phase> | |
<goals> | |
<goal>test</goal> | |
</goals> | |
<configuration> |
OlderNewer