Skip to content

Instantly share code, notes, and snippets.

View ivanursul's full-sized avatar

Ivan Ursul ivanursul

View GitHub Profile
@ivanursul
ivanursul / edbo-guides-service.xml
Created March 26, 2015 10:11
edbo-guides-service.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">
@ivanursul
ivanursul / catalina.out
Created March 26, 2015 10:10
LOG Tomcat
Mar 26, 2015 11:54:20 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Mar 26, 2015 11:54:20 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:is-lnu-rest-api' did not find a matching property.
Mar 26, 2015 11:54:20 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 26, 2015 11:54:20 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 26, 2015 11:54:20 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 814 ms
@ivanursul
ivanursul / DefaultLoginService.java
Created March 26, 2015 10:08
DefaultLoginService
package org.is.lnu.edbo.service.login;
import java.net.URL;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.xml.namespace.QName;
import org.is.lnu.edbo.model.Authentification;
import org.slf4j.Logger;
@ivanursul
ivanursul / pom.xml
Created March 26, 2015 10:06
pom.xml
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>is-lnu</groupId>
<artifactId>is-lnu</artifactId>
<version>0.0.5-SNAPSHOT</version>
@ivanursul
ivanursul / EDBOGuides.java
Created March 26, 2015 10:04
EDBOGuides.java
package ua.edboservice;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
@ivanursul
ivanursul / CustomDocXExporter.java
Created March 25, 2015 14:57
CustomDocXExporter.java for www.ivanursul.com
package org.jasper.exporter;
import org.jasper.generator.DocxGenerator;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRExporterParameter;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReportsContext;
import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter;
@ivanursul
ivanursul / CustomReportDocxExporter.java
Created March 25, 2015 14:56
CustomReportDocxExporter.java for www.ivanursul.com
package org.jasper.exporter;
import java.util.Map;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter;
import org.springframework.webflow.execution.RequestContext;
import com.jaspersoft.jasperserver.api.common.domain.ExecutionContext;
package com.jaspersoft.jasperserver.war.action;
import com.jaspersoft.jasperserver.api.common.domain.ExecutionContext;
import com.jaspersoft.jasperserver.api.engine.jasperreports.common.ExportParameters;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter;
import org.springframework.webflow.execution.RequestContext;
<bean id="reportDocxExporter" class="com.jaspersoft.jasperserver.war.action.ReportDocxExporter" parent="baseReportExporter">
<property name="setResponseContentLength" value="true"/>
</bean>
@ivanursul
ivanursul / process_person.sql
Last active August 29, 2015 14:15
process_person sql for www.ivanursul.com
create or replace function process_person() returns trigger as $$
declare n_person_id bigint;
begin
if new.status <> 'DELETED' and TG_OP ='UPDATE' then
if old.persontype_id <> new.persontype_id then
insert into q_ob_person(persontype_id, name, firstname, fathername, surname, photo,
gendertype_id, marriedtype_id, citizencountry_id, docseries,
docnum, identifier, resident, birthplace, begdate, enddate, ismilitary,
ishostel, parent_id, uid, utid, uapp, status, actual, note, crtuser,