Skip to content

Instantly share code, notes, and snippets.

View fabian-bouche-liferay's full-sized avatar

Fabian Bouché fabian-bouche-liferay

View GitHub Profile
package com.imolczek.lab.liferay.testportlet.portlet;
import java.io.IOException;
import javax.portlet.ActionURL;
import javax.portlet.Portlet;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.ResourceURL;
package com.liferay.samples.fbo.custom;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Map;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.filter.FilterChain;
package com.liferay.samples.fbo.custom;
import java.util.List;
import org.osgi.service.component.annotations.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.model.Layout;
package com.liferay.samples.fbo.custom;
import java.util.List;
import org.osgi.service.component.annotations.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.liferay.document.library.kernel.service.DLAppService;
import com.liferay.document.library.kernel.service.DLAppServiceWrapper;
package com.liferay.samples.fbo.coe.samlmapper;
import javax.servlet.http.Cookie;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
import com.liferay.portal.kernel.cache.MultiVMPool;
package com.liferay.samples.fbo.coe.samlmapper;
import java.io.IOException;
import java.util.UUID;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
@fabian-bouche-liferay
fabian-bouche-liferay / DDMFormExamples.java
Created July 6, 2020 14:48
Examples d'usages des API DDM Form
// Une instance de formulaire (le formulaire qu'on remplit)
DDMFormInstance DDMFormInstance;
// Initialisation du service context
ServiceContext serviceContext = ServiceContextFactory.getInstance(
DDMFormInstanceRecord.class.getName(), resourceRequest);
serviceContext.setAttribute("status", WorkflowConstants.STATUS_DRAFT);
serviceContext.setAttribute("validateDDMFormValues", Boolean.FALSE);
serviceContext.setWorkflowAction(WorkflowConstants.ACTION_SAVE_DRAFT);
@fabian-bouche-liferay
fabian-bouche-liferay / fragment.html
Created June 24, 2020 15:09
Provider module in fragment
<div class="fragment_36697">
<lfr-editable id="unique-id" type="text">
[Event "F/S Return Match"]
[Site "Beograd, Serbia Yugoslavia|JUG"]
[Date "1992.11.04"]
[Round "29"]
[White "Fischer, Robert J."]
[Black "Spassky, Boris V."]
[Result "1/2-1/2"]
@fabian-bouche-liferay
fabian-bouche-liferay / docker-compose.yml
Last active August 7, 2023 10:19
Cluster Galera Mariadb
version: '2.4'
networks:
app-tier:
driver: bridge
services:
mariadb-galera-node-1:
image: 'docker.io/bitnami/mariadb-galera:10.2.32'
ports:
2020-06-05 14:12:25.991 DEBUG [http-nio-8080-exec-14][JDBCTransaction:78] begin
2020-06-05 14:12:25.992 DEBUG [http-nio-8080-exec-14][JDBCTransaction:83] current autocommit status: true
2020-06-05 14:12:25.992 DEBUG [http-nio-8080-exec-14][JDBCTransaction:86] disabling autocommit
2020-06-05 14:12:25.992 DEBUG [http-nio-8080-exec-14][JDBCTransaction:78] begin
2020-06-05 14:12:25.992 DEBUG [http-nio-8080-exec-14][JDBCTransaction:83] current autocommit status: true
2020-06-05 14:12:25.993 DEBUG [http-nio-8080-exec-14][JDBCTransaction:86] disabling autocommit
2020-06-05 14:12:26.011 DEBUG [http-nio-8080-exec-14][SQL:111] select this_.fooId as fooId645_0_, this_.uuid_ as uuid2_645_0_, this_.groupId as groupId645_0_, this_.companyId as companyId645_0_, this_.userId as userId645_0_, this_.userName as userName645_0_, this_.createDate as createDate645_0_, this_.modifiedDate as modified8_645_0_, this_.field1 as field9_645_0_, this_.field2 as field10_645_0_, this_.field3 as field11_645_0_, this_.field4 as field12_645_0_