Gabriele Zigurella
2 anni fa
29 ha cambiato i file con 8833 aggiunte e 0 eliminazioni
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="docroot/WEB-INF/src"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_75"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="java"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="jst.web"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
||||
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet"> |
||||
<attributes> |
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/portos-bo-portlet"/> |
||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/portos-bo-shared"/> |
||||
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> |
||||
</classpath> |
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>quarkus-bridge-portlet</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.validation.validationbuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> |
||||
</natures> |
||||
</projectDescription> |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE project> |
||||
|
||||
<project name="quarkus-bridge-portlet" basedir="." default="deploy"> |
||||
<import file="C:\liferay-sviluppo\ide\6_2\sicilia\paesaggistica\liferay-plugins-sdk-6.2\portlets/build-common-portlet.xml" /> |
||||
</project> |
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0 |
||||
Class-Path: |
||||
|
@ -0,0 +1 @@
|
||||
/classes/ |
File binario non mostrato.
File binario non mostrato.
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.2.0//EN" "http://www.liferay.com/dtd/liferay-display_6_2_0.dtd"> |
||||
|
||||
<display> |
||||
<category name="category.sample"> |
||||
<portlet id="quarkus-bridge" /> |
||||
</category> |
||||
</display> |
@ -0,0 +1,14 @@
|
||||
name=Quarkus Bridge |
||||
module-group-id=liferay |
||||
module-incremental-version=1 |
||||
tags= |
||||
short-description= |
||||
long-description= |
||||
change-log= |
||||
page-url=http://www.liferay.com |
||||
author=Liferay, Inc. |
||||
licenses=LGPL |
||||
liferay-versions=6.2.0+ |
||||
required-deployment-contexts=\ |
||||
portos-bo-portlet,\ |
||||
hms-taglib-hook |
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd"> |
||||
|
||||
<liferay-portlet-app> |
||||
<portlet> |
||||
<portlet-name>quarkus-bridge</portlet-name> |
||||
<icon>/icon.png</icon> |
||||
<scheduler-entry> |
||||
<scheduler-description>quarkus bridge pratiche</scheduler-description> |
||||
<scheduler-event-listener-class>portos.nextmind.quarkus.bridge.scheduler.QuarkusBridgeScheduler</scheduler-event-listener-class> |
||||
<trigger> |
||||
<cron> |
||||
<cron-trigger-value>0 */5 * ? * *</cron-trigger-value> |
||||
</cron> |
||||
</trigger> |
||||
</scheduler-entry> |
||||
<header-portlet-css>/css/main.css</header-portlet-css> |
||||
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript> |
||||
<css-class-wrapper>quarkus-bridge-portlet</css-class-wrapper> |
||||
</portlet> |
||||
<role-mapper> |
||||
<role-name>administrator</role-name> |
||||
<role-link>Administrator</role-link> |
||||
</role-mapper> |
||||
<role-mapper> |
||||
<role-name>guest</role-name> |
||||
<role-link>Guest</role-link> |
||||
</role-mapper> |
||||
<role-mapper> |
||||
<role-name>power-user</role-name> |
||||
<role-link>Power User</role-link> |
||||
</role-mapper> |
||||
<role-mapper> |
||||
<role-name>user</role-name> |
||||
<role-link>User</role-link> |
||||
</role-mapper> |
||||
</liferay-portlet-app> |
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?> |
||||
|
||||
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0"> |
||||
<portlet> |
||||
<portlet-name>quarkus-bridge</portlet-name> |
||||
<display-name>Quarkus Bridge</display-name> |
||||
<portlet-class>com.liferay.util.bridges.mvc.MVCPortlet</portlet-class> |
||||
<init-param> |
||||
<name>view-template</name> |
||||
<value>/view.jsp</value> |
||||
</init-param> |
||||
<expiration-cache>0</expiration-cache> |
||||
<supports> |
||||
<mime-type>text/html</mime-type> |
||||
</supports> |
||||
<portlet-info> |
||||
<title>Quarkus Bridge</title> |
||||
<short-title>Quarkus Bridge</short-title> |
||||
<keywords>Quarkus Bridge</keywords> |
||||
</portlet-info> |
||||
<security-role-ref> |
||||
<role-name>administrator</role-name> |
||||
</security-role-ref> |
||||
<security-role-ref> |
||||
<role-name>guest</role-name> |
||||
</security-role-ref> |
||||
<security-role-ref> |
||||
<role-name>power-user</role-name> |
||||
</security-role-ref> |
||||
<security-role-ref> |
||||
<role-name>user</role-name> |
||||
</security-role-ref> |
||||
</portlet> |
||||
</portlet-app> |
@ -0,0 +1,74 @@
|
||||
package portos.nextmind.liferay.bridge.persistence; |
||||
|
||||
import com.liferay.portal.kernel.exception.PortalException; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.log.Log; |
||||
import com.liferay.portal.kernel.log.LogFactoryUtil; |
||||
import com.liferay.portal.kernel.util.StringPool; |
||||
import com.liferay.portal.kernel.util.Validator; |
||||
import com.liferay.portal.model.RoleConstants; |
||||
import com.liferay.portal.model.User; |
||||
import com.liferay.portal.service.RoleLocalServiceUtil; |
||||
import com.liferay.portal.service.ServiceContext; |
||||
import com.liferay.portal.service.UserLocalServiceUtil; |
||||
|
||||
import it.tref.liferay.portos.bo.model.Comune; |
||||
import it.tref.liferay.portos.bo.model.Territorio; |
||||
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; |
||||
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; |
||||
|
||||
import java.util.List; |
||||
import java.util.Locale; |
||||
|
||||
public class PraticaValidator { |
||||
static Log _log = LogFactoryUtil.getLog(PraticaValidator.class); |
||||
|
||||
public static Comune fetchComune(long companyId, String codiceIstat) throws SystemException { |
||||
Comune comune = ComuneLocalServiceUtil.fetchByC_CI(companyId, codiceIstat); |
||||
if (comune == null) { |
||||
_log.warn("#[!]# Nessun Comune trovato con la coppia companyId "+companyId+ |
||||
" e codiceIstat "+codiceIstat); |
||||
_log.warn("#[!]# La richiesta sarà ignorata, verificare sul middleware Quarkus"); |
||||
return null; |
||||
} |
||||
return comune; |
||||
} |
||||
|
||||
public static Territorio fetchTerritorio(long comuneId) throws SystemException{ |
||||
List<Territorio> territori = TerritorioLocalServiceUtil.findByComuneId(comuneId, 0, 1); |
||||
if (territori.isEmpty()) { |
||||
_log.warn("#[!]# Nessun Territorio trovato per il comuneId "+comuneId); |
||||
_log.warn("#[!]# La richiesta sarà ignorata, verificare sul middleware Quarkus"); |
||||
return null; |
||||
} |
||||
return territori.get(0); |
||||
} |
||||
|
||||
public static User fetchUser(long companyId, long groupId, String codiceFiscale, String email, String nome, String cognome, long comuneId) throws SystemException, PortalException{ |
||||
User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, |
||||
codiceFiscale.trim().toLowerCase()); |
||||
if(Validator.isNotNull(user)) { |
||||
return user; |
||||
} |
||||
|
||||
// Crea utente se assente in database
|
||||
long admingRoleId = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR).getRoleId(); |
||||
User admin = UserLocalServiceUtil.getRoleUsers(admingRoleId).get(0); |
||||
|
||||
// Alter serviceContext to bypass Liferay user creation workflow
|
||||
ServiceContext userServiceContext = new ServiceContext(); |
||||
userServiceContext.setScopeGroupId(groupId); |
||||
userServiceContext.setCompanyId(companyId); |
||||
userServiceContext.setUserId(admin.getUserId()); |
||||
|
||||
user = UserLocalServiceUtil.addUser( |
||||
admin.getUserId(), companyId, true, StringPool.BLANK, StringPool.BLANK, |
||||
false, codiceFiscale.trim().toLowerCase(), email, 0l, StringPool.BLANK, Locale.ITALY, |
||||
nome, StringPool.BLANK, cognome, |
||||
0, 0, true, 1, 1, 1980, StringPool.BLANK, |
||||
new long[]{groupId}, new long[]{}, |
||||
new long[]{}, new long[]{}, false, userServiceContext); |
||||
|
||||
return user; |
||||
} |
||||
} |
@ -0,0 +1,12 @@
|
||||
package portos.nextmind.quarkus.bridge.api; |
||||
|
||||
public class QuarkusBridgeConstants { |
||||
public final static String HEADER_REQUEST = "HeaderPratica"; |
||||
public final static String BODY_REQUEST = "SportelloPratica"; |
||||
public final static String codiceIstat = "cadastralCode"; |
||||
public final static String codiceFiscale = "digitalHolderTaxCode"; |
||||
public final static String email = "address"; |
||||
public final static String nome = "name"; |
||||
public final static String cognome = "surname"; |
||||
public final static String tipoProcedura = "proceedingType"; |
||||
} |
@ -0,0 +1,110 @@
|
||||
package portos.nextmind.quarkus.bridge.api; |
||||
|
||||
import com.liferay.portal.kernel.json.JSONArray; |
||||
import com.liferay.portal.kernel.json.JSONException; |
||||
import com.liferay.portal.kernel.json.JSONFactoryUtil; |
||||
import com.liferay.portal.kernel.json.JSONObject; |
||||
import com.liferay.portal.kernel.log.Log; |
||||
import com.liferay.portal.kernel.log.LogFactoryUtil; |
||||
import com.liferay.portal.kernel.messaging.Message; |
||||
|
||||
import java.io.BufferedReader; |
||||
import java.io.IOException; |
||||
import java.io.InputStreamReader; |
||||
import java.net.HttpURLConnection; |
||||
import java.net.MalformedURLException; |
||||
import java.net.URL; |
||||
|
||||
public class QuarkusBridgeMessageFactoryUtil { |
||||
static Log _log = LogFactoryUtil.getLog(QuarkusBridgeMessageFactoryUtil.class); |
||||
|
||||
private static Message INSTANCE_READ(){ |
||||
Message INSTANCE_READ_MESSAGE = new Message(); |
||||
INSTANCE_READ_MESSAGE.setPayload(RequestAction.READ); |
||||
return INSTANCE_READ_MESSAGE; |
||||
} |
||||
|
||||
private static Message INSTANCE_WRITE(){ |
||||
Message INSTANCE_WRITE_MESSAGE = new Message(); |
||||
INSTANCE_WRITE_MESSAGE.setPayload(RequestAction.WRITE); |
||||
return INSTANCE_WRITE_MESSAGE; |
||||
} |
||||
|
||||
private static Message INSTANCE_DELETE(){ |
||||
Message INSTANCE_DELETE_MESSAGE = new Message(); |
||||
INSTANCE_DELETE_MESSAGE.setPayload(RequestAction.DELETE); |
||||
return INSTANCE_DELETE_MESSAGE; |
||||
} |
||||
|
||||
public static Message[] registerMessages(){ |
||||
Message[] messages = {INSTANCE_READ(), INSTANCE_WRITE(), INSTANCE_DELETE()}; |
||||
return messages; |
||||
} |
||||
|
||||
public enum RequestAction { |
||||
READ, WRITE, DELETE |
||||
} |
||||
|
||||
public static JSONObject readNewData(String context){ |
||||
JSONObject responseBody = JSONFactoryUtil.createJSONObject(); |
||||
HttpURLConnection HttpConnection = null; |
||||
try{ |
||||
URL url = new URL("http://localhost:50000/portos/mw/new/".concat(context)); |
||||
|
||||
HttpConnection = (HttpURLConnection) url.openConnection(); |
||||
|
||||
// Set MediaType Accepted in Accept Header
|
||||
HttpConnection.addRequestProperty("Accept", "application/json"); |
||||
|
||||
// Set request method
|
||||
HttpConnection.setRequestMethod("GET"); |
||||
|
||||
// Set connection timeout
|
||||
HttpConnection.setConnectTimeout(5000); |
||||
|
||||
// Enable input/output streams
|
||||
HttpConnection.setDoInput(true); |
||||
HttpConnection.setDoOutput(true); |
||||
|
||||
// Get the response code
|
||||
StringBuilder response = new StringBuilder(); |
||||
int responseCode = HttpConnection.getResponseCode(); |
||||
switch(responseCode){ |
||||
case 200: |
||||
_log.debug("### Quarkus Bridge [Read :: 200 OK]"); |
||||
// Read the response
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(HttpConnection.getInputStream())); |
||||
String line; |
||||
while ((line = reader.readLine()) != null) { |
||||
response.append(line); |
||||
} |
||||
reader.close(); |
||||
//TODO Process the response
|
||||
if(response.charAt(0) == '{'){ |
||||
JSONObject resultSet = JSONFactoryUtil.createJSONObject(response.toString()); |
||||
responseBody = responseBody.put("result", resultSet); |
||||
} |
||||
if(response.charAt(0) == '['){ |
||||
JSONArray resultSet = JSONFactoryUtil.createJSONArray(response.toString()); |
||||
responseBody = responseBody.put("result", resultSet); |
||||
} |
||||
break; |
||||
case 500: |
||||
_log.debug("### Quarkus Bridge [Read :: 500 Quarkus Server Error]"); |
||||
break; |
||||
} |
||||
}catch(RuntimeException e){ |
||||
_log.error(e,e); |
||||
} catch (MalformedURLException e) { |
||||
_log.error(e,e); |
||||
} catch (IOException e) { |
||||
_log.error(e,e); |
||||
} catch (JSONException e) { |
||||
_log.error(e,e); |
||||
} finally { |
||||
// Close the connection
|
||||
HttpConnection.disconnect(); |
||||
} |
||||
return responseBody; |
||||
} |
||||
} |
@ -0,0 +1,144 @@
|
||||
package portos.nextmind.quarkus.bridge.scheduler; |
||||
|
||||
import com.liferay.portal.kernel.dao.orm.DynamicQuery; |
||||
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; |
||||
import com.liferay.portal.kernel.exception.PortalException; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.json.JSONArray; |
||||
import com.liferay.portal.kernel.json.JSONFactoryUtil; |
||||
import com.liferay.portal.kernel.json.JSONObject; |
||||
import com.liferay.portal.kernel.log.Log; |
||||
import com.liferay.portal.kernel.log.LogFactoryUtil; |
||||
import com.liferay.portal.kernel.messaging.Message; |
||||
import com.liferay.portal.kernel.messaging.MessageListener; |
||||
import com.liferay.portal.kernel.messaging.MessageListenerException; |
||||
import com.liferay.portal.kernel.util.StringPool; |
||||
import com.liferay.portal.kernel.util.Validator; |
||||
import com.liferay.portal.model.Company; |
||||
import com.liferay.portal.model.User; |
||||
import com.liferay.portal.service.CompanyLocalServiceUtil; |
||||
import com.liferay.portal.service.ServiceContext; |
||||
|
||||
import it.tref.liferay.portos.bo.model.Comune; |
||||
import it.tref.liferay.portos.bo.model.DettPratica; |
||||
import it.tref.liferay.portos.bo.model.IntPratica; |
||||
import it.tref.liferay.portos.bo.model.Territorio; |
||||
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; |
||||
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; |
||||
import it.tref.liferay.portos.bo.shared.util.Constants; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
import portos.nextmind.liferay.bridge.persistence.PraticaValidator; |
||||
import portos.nextmind.quarkus.bridge.api.QuarkusBridgeConstants; |
||||
import portos.nextmind.quarkus.bridge.api.QuarkusBridgeMessageFactoryUtil; |
||||
|
||||
public class QuarkusBridgeScheduler implements MessageListener { |
||||
|
||||
Log _log = LogFactoryUtil.getLog(QuarkusBridgeScheduler.class); |
||||
|
||||
@Override |
||||
public void receive(Message message) throws MessageListenerException { |
||||
_log.info("### Quarkus Bridge Scheduler starting . . ."); |
||||
ArrayList<Company> companies = null; |
||||
try { |
||||
companies = new ArrayList<>(CompanyLocalServiceUtil.getCompanies()); |
||||
} catch (SystemException e) { |
||||
_log.error(e,e); |
||||
} |
||||
if(Validator.isNull(companies)){ |
||||
_log.error("### Quarkus Bridge was unable to create batch beacuse it was unable to find any companyId."); |
||||
return; |
||||
} |
||||
for(Company company : companies){ |
||||
JSONObject createPayload = prepareCreateBatch(company.getCompanyId()); |
||||
JSONObject updatePayload = prepareUpdateBatch(company.getCompanyId()); |
||||
//TODO: persist pratiche
|
||||
} |
||||
_log.info("### Quarkus Bridge Scheduler batch ready."); |
||||
} |
||||
|
||||
private JSONObject prepareCreateBatch(long companyId){ |
||||
final String clientContext = "SISMICA"; |
||||
JSONObject object = QuarkusBridgeMessageFactoryUtil.readNewData(clientContext); |
||||
_log.debug(object.toString()); |
||||
JSONArray pratiche = object.getJSONArray("result"); |
||||
for(int i = 0; i < pratiche.length() ; i++){ |
||||
JSONObject pratica = pratiche.getJSONObject(i); |
||||
JSONObject Header = pratica.getJSONObject(QuarkusBridgeConstants.HEADER_REQUEST); |
||||
//TODO: check requestAction da Header?
|
||||
//TODO: check operation da Header?
|
||||
JSONObject Sportello = pratica.getJSONObject(QuarkusBridgeConstants.BODY_REQUEST); |
||||
String codiceIstat = Sportello.getString(QuarkusBridgeConstants.codiceIstat); |
||||
try { |
||||
// Cerca comune di appartenenza
|
||||
Comune comune = PraticaValidator.fetchComune(companyId, codiceIstat); |
||||
if(Validator.isNull(comune)) continue; |
||||
// Cerca territorio di appartenenza
|
||||
long comuneId = comune.getComuneId(); |
||||
Territorio territorio = PraticaValidator.fetchTerritorio(comuneId); |
||||
if(Validator.isNull(territorio)) continue; |
||||
// Cerca utente associato alla pratica
|
||||
long groupId = territorio.getGroupId(); |
||||
String codiceFiscale = Sportello.getString(QuarkusBridgeConstants.codiceFiscale); |
||||
String email = Sportello.getString(QuarkusBridgeConstants.email, StringPool.BLANK); |
||||
String nome = Sportello.getString(QuarkusBridgeConstants.nome, StringPool.BLANK); |
||||
String cognome = Sportello.getString(QuarkusBridgeConstants.cognome, StringPool.BLANK); |
||||
if(Validator.isBlank(email) || Validator.isBlank(nome) || Validator.isBlank(cognome)){ |
||||
_log.error("#[!]# Missing one or more of the required fields - First Name, Last Name, E-Mail"); |
||||
continue; |
||||
} |
||||
User user = PraticaValidator.fetchUser(companyId, groupId, |
||||
codiceFiscale, email, nome, cognome, comuneId); |
||||
// Recupera la procedura della pratica
|
||||
String tipoProcedura = Sportello.getString(QuarkusBridgeConstants.tipoProcedura); |
||||
|
||||
|
||||
ServiceContext serviceContext = new ServiceContext(); |
||||
serviceContext.setScopeGroupId(groupId); |
||||
serviceContext.setCompanyId(companyId); |
||||
serviceContext.setUserId(user.getUserId()); |
||||
//TODO: remove circuit breaker
|
||||
if(true) continue; |
||||
|
||||
|
||||
// Aggiungi DettPratica
|
||||
long territorioId = territorio.getTerritorioId(); |
||||
//TODO: verifica che la procedura non esista già
|
||||
if(!Constants.PRATICA_ZONE.containsKey(tipoProcedura)){ |
||||
_log.error("#[!]# " + tipoProcedura + " is not a Valid TipoPratica"); |
||||
continue; |
||||
} |
||||
DettPratica dettPratica = DettPraticaLocalServiceUtil |
||||
.addDettPratica(territorioId, tipoProcedura, serviceContext); |
||||
|
||||
} catch (SystemException e) { |
||||
_log.error(e ,e); |
||||
} catch (PortalException e) { |
||||
_log.error(e, e); |
||||
} |
||||
} |
||||
return object; |
||||
} |
||||
|
||||
private JSONObject prepareUpdateBatch(long companyId){ |
||||
JSONObject payload = JSONFactoryUtil.createJSONObject(); |
||||
final String clientContext = "SISMICA"; |
||||
// TODO: capire perché Enrico filtrava solo su queste ScheduledActions
|
||||
// int ORDER_ScheduledAction = 2;
|
||||
// payload.put("searchedScheduledAction", ORDER_ScheduledAction);
|
||||
DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery(); |
||||
query.add(RestrictionsFactoryUtil.eq("companyId", companyId)); |
||||
//TODO: scoprire in quali stati possono essere le pratiche ed ottimizzare la query
|
||||
try { |
||||
List<IntPratica> praticheDaAggiornare = IntPraticaLocalServiceUtil.dynamicQuery(query); |
||||
//TODO: splittare le pratiche da aggiornare in base alle operazioni che devono essere svolte
|
||||
} catch (SystemException e) { |
||||
_log.error(e,e); |
||||
} |
||||
return payload; |
||||
} |
||||
|
||||
|
||||
} |
File diff soppresso perché troppo grande
Load Diff
@ -0,0 +1,538 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> |
||||
|
||||
<taglib> |
||||
<tlib-version>1.0</tlib-version> |
||||
<jsp-version>1.1</jsp-version> |
||||
<short-name>liferay-portlet</short-name> |
||||
<uri>http://liferay.com/tld/portlet</uri> |
||||
|
||||
<!-- |
||||
liferay-portlet:actionURL is similar to portlet:actionURL except it has the |
||||
additional attributes plid, portletName, anchor, and encrypt. |
||||
|
||||
Set varImpl to set the PortletURL object. This gives you an object reference |
||||
to the underlying URL implementation. |
||||
|
||||
Set plid to the plid of another layout. This allows you to post the URL to |
||||
another layout. |
||||
|
||||
Set portletName to the name of a portlet other than the current portlet. |
||||
This allows you to post the URL to another portlet. |
||||
|
||||
Set anchor to false if you do not want the page to refresh and anchor to the |
||||
current portlet. |
||||
|
||||
Set encrypt to true if you want to encrypt all the parameter values. |
||||
|
||||
Set doAsUserId to process this URL as if it is accessed by the specified |
||||
user. |
||||
|
||||
Set portletConfiguration to true if you want to pass the parameters needed |
||||
when you are accessing a portlet that is wrapped by the Portlet |
||||
Configuration portlet. |
||||
--> |
||||
|
||||
<tag> |
||||
<name>actionURL</name> |
||||
<tag-class>com.liferay.taglib.portlet.ActionURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.ActionURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>allowEmptyParam</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>anchor</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>copyCurrentRenderParameters</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>doAsGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>doAsUserId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>encrypt</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>escapeXml</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>plid</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletConfiguration</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletMode</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletName</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>refererGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>refererPlid</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>secure</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>varImpl</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>windowState</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-back</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconBackTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-close</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconCloseTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-configuration</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconConfigurationTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-edit</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconEditTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-edit-defaults</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconEditDefaultsTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-edit-guest</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconEditGuestTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-export-import</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconExportImportTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-help</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconHelpTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-maximize</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconMaximizeTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-minimize</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconMinimizeTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-options</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconOptionsTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-portlet</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconPortletTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>ariaRole</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>id</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>label</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portlet</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>url</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-portlet-css</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconPortletCssTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-print</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconPrintTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>icon-refresh</name> |
||||
<tag-class>com.liferay.taglib.portletext.IconRefreshTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>param</name> |
||||
<tag-class>com.liferay.taglib.util.ParamTag</tag-class> |
||||
<body-content>empty</body-content> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>value</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>preview</name> |
||||
<tag-class>com.liferay.taglib.portletext.PreviewTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>portletName</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>queryString</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>showBorders</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>width</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
|
||||
<!-- |
||||
liferay-portlet:renderURL is similar to portlet:renderURL except it has the |
||||
additional attributes plid, portletName, anchor, and encrypt. |
||||
|
||||
Set varImpl to set the PortletURL object. This gives you an object reference |
||||
to the underlying URL implementation. |
||||
|
||||
Set plid to the plid of another layout. This allows you to post the URL to |
||||
another layout. |
||||
|
||||
Set portletName to the name of a portlet other than the current portlet. |
||||
This allows you to post the URL to another portlet. |
||||
|
||||
Set anchor to false if you do not want the page to refresh and anchor to the |
||||
current portlet. |
||||
|
||||
Set encrypt to true if you want to encrypt all the parameter values. |
||||
|
||||
Set doAsUserId to process this URL as if it is accessed by the specified |
||||
user. |
||||
|
||||
Set portletConfiguration to true if you want to pass the parameters needed |
||||
when you are accessing a portlet that is wrapped by the Portlet |
||||
Configuration portlet. |
||||
--> |
||||
|
||||
<tag> |
||||
<name>renderURL</name> |
||||
<tag-class>com.liferay.taglib.portlet.RenderURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.RenderURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>allowEmptyParam</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>anchor</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>copyCurrentRenderParameters</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>doAsGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>doAsUserId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>encrypt</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>escapeXml</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>plid</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletConfiguration</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletMode</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletName</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>refererGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>refererPlid</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>secure</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>varImpl</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>windowState</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>renderURLParams</name> |
||||
<tag-class>com.liferay.taglib.portlet.RenderURLParamsTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>varImpl</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
|
||||
<!-- |
||||
liferay-portlet:resourceURL is similar to portlet:resourceURL except it has |
||||
the additional attributes plid, portletName, anchor, and encrypt. |
||||
|
||||
Set varImpl to set the PortletURL object. This gives you an object reference |
||||
to the underlying URL implementation. |
||||
|
||||
Set plid to the plid of another layout. This allows you to post the URL to |
||||
another layout. |
||||
|
||||
Set portletName to the name of a portlet other than the current portlet. |
||||
This allows you to post the URL to another portlet. |
||||
|
||||
Set anchor to false if you do not want the page to refresh and anchor to the |
||||
current portlet. |
||||
|
||||
Set encrypt to true if you want to encrypt all the parameter values. |
||||
|
||||
Set doAsUserId to process this URL as if it is accessed by the specified |
||||
user. |
||||
|
||||
Set portletConfiguration to true if you want to pass the parameters needed |
||||
when you are accessing a portlet that is wrapped by the Portlet |
||||
Configuration portlet. |
||||
--> |
||||
|
||||
<tag> |
||||
<name>resourceURL</name> |
||||
<tag-class>com.liferay.taglib.portlet.ResourceURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.ResourceURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>anchor</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>copyCurrentRenderParameters</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>doAsGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>doAsUserId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>encrypt</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>escapeXml</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>id</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>plid</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletConfiguration</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletMode</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletName</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>refererGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>refererPlid</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>secure</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>varImpl</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>windowState</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>runtime</name> |
||||
<tag-class>com.liferay.taglib.portletext.RuntimeTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>defaultPreferences</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletName</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>queryString</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
</taglib> |
@ -0,0 +1,158 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> |
||||
|
||||
<taglib> |
||||
<tlib-version>1.0</tlib-version> |
||||
<jsp-version>1.1</jsp-version> |
||||
<short-name>portlet</short-name> |
||||
<uri>http://java.sun.com/portlet</uri> |
||||
<tag> |
||||
<name>actionURL</name> |
||||
<tag-class>com.liferay.taglib.portlet.ActionURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.ActionURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>copyCurrentRenderParameters</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>escapeXml</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletMode</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>secure</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>windowState</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>defineObjects</name> |
||||
<tag-class>com.liferay.taglib.portlet.DefineObjectsTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.DefineObjectsTei</tei-class> |
||||
<body-content>empty</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>namespace</name> |
||||
<tag-class>com.liferay.taglib.portlet.NamespaceTag</tag-class> |
||||
<body-content>empty</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>param</name> |
||||
<tag-class>com.liferay.taglib.util.ParamTag</tag-class> |
||||
<body-content>empty</body-content> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>value</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>property</name> |
||||
<tag-class>com.liferay.taglib.util.PropertyTag</tag-class> |
||||
<body-content>empty</body-content> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>value</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>renderURL</name> |
||||
<tag-class>com.liferay.taglib.portlet.RenderURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.RenderURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>copyCurrentRenderParameters</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>escapeXml</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletMode</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>secure</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>windowState</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>resourceURL</name> |
||||
<tag-class>com.liferay.taglib.portlet.ResourceURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.portlet.ResourceURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>cacheability</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>escapeXml</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>id</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>secure</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
</taglib> |
@ -0,0 +1,106 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> |
||||
|
||||
<taglib> |
||||
<tlib-version>1.0</tlib-version> |
||||
<jsp-version>1.1</jsp-version> |
||||
<short-name>liferay-security</short-name> |
||||
<uri>http://liferay.com/tld/security</uri> |
||||
<tag> |
||||
<name>doAsURL</name> |
||||
<tag-class>com.liferay.taglib.security.DoAsURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.security.DoAsURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>doAsUserId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>encrypt</name> |
||||
<tag-class>com.liferay.taglib.security.EncryptTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>className</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>protocol</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>style</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>target</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>unencryptedParams</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>url</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>permissionsURL</name> |
||||
<tag-class>com.liferay.taglib.security.PermissionsURLTag</tag-class> |
||||
<tei-class>com.liferay.taglib.security.PermissionsURLTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>modelResource</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>modelResourceDescription</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>redirect</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>resourceGroupId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>resourcePrimKey</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>roleTypes</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>windowState</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
</taglib> |
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> |
||||
|
||||
<taglib> |
||||
<tlib-version>1.0</tlib-version> |
||||
<jsp-version>1.1</jsp-version> |
||||
<short-name>theme</short-name> |
||||
<uri>http://liferay.com/tld/theme</uri> |
||||
<tag> |
||||
<name>defineObjects</name> |
||||
<tag-class>com.liferay.taglib.theme.DefineObjectsTag</tag-class> |
||||
<tei-class>com.liferay.taglib.theme.DefineObjectsTei</tei-class> |
||||
<body-content>empty</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>include</name> |
||||
<tag-class>com.liferay.taglib.theme.IncludeTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>page</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>layout-icon</name> |
||||
<tag-class>com.liferay.taglib.theme.LayoutIconTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>layout</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>meta-tags</name> |
||||
<tag-class>com.liferay.taglib.theme.MetaTagsTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
<tag> |
||||
<name>param</name> |
||||
<tag-class>com.liferay.taglib.util.ParamTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>value</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>wrap-portlet</name> |
||||
<tag-class>com.liferay.taglib.theme.WrapPortletTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>page</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
</taglib> |
File diff soppresso perché troppo grande
Load Diff
@ -0,0 +1,141 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"> |
||||
|
||||
<taglib> |
||||
<tlib-version>1.2</tlib-version> |
||||
<jsp-version>1.1</jsp-version> |
||||
<short-name>liferay-util</short-name> |
||||
<uri>http://liferay.com/tld/util</uri> |
||||
<tag> |
||||
<name>body-bottom</name> |
||||
<tag-class>com.liferay.taglib.util.BodyBottomTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>outputKey</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>body-top</name> |
||||
<tag-class>com.liferay.taglib.util.BodyTopTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>outputKey</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>buffer</name> |
||||
<tag-class>com.liferay.taglib.util.BufferTag</tag-class> |
||||
<tei-class>com.liferay.taglib.util.BufferTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>get-url</name> |
||||
<tag-class>com.liferay.taglib.util.GetUrlTag</tag-class> |
||||
<tei-class>com.liferay.taglib.util.GetUrlTei</tei-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>expires</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>url</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>var</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>html-bottom</name> |
||||
<tag-class>com.liferay.taglib.util.HtmlBottomTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>outputKey</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>position</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>html-top</name> |
||||
<tag-class>com.liferay.taglib.util.HtmlTopTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>outputKey</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>position</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>include</name> |
||||
<tag-class>com.liferay.taglib.util.IncludeTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>page</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>portletId</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>servletContext</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>strict</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>useCustomPage</name> |
||||
<required>false</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>param</name> |
||||
<tag-class>com.liferay.taglib.util.ParamTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
<attribute> |
||||
<name>name</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
<attribute> |
||||
<name>value</name> |
||||
<required>true</required> |
||||
<rtexprvalue>true</rtexprvalue> |
||||
</attribute> |
||||
</tag> |
||||
<tag> |
||||
<name>whitespace-remover</name> |
||||
<tag-class>com.liferay.taglib.util.WhitespaceRemoverTag</tag-class> |
||||
<body-content>JSP</body-content> |
||||
</tag> |
||||
</taglib> |
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
||||
</web-app> |
Dopo Larghezza: | Altezza: | Dimensione: 467 B |
@ -0,0 +1,22 @@
|
||||
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
||||
<% |
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
%> |
||||
|
||||
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> |
||||
|
||||
<portlet:defineObjects /> |
||||
|
||||
This is the <b>Quarkus Bridge</b> portlet. |
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?> |
||||
|
||||
<ivy-module |
||||
version="2.0" |
||||
xmlns:m2="http://ant.apache.org/ivy/maven" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" |
||||
> |
||||
<info module="quarkus-bridge-portlet" organisation="com.liferay"> |
||||
<extends extendType="configurations,description,info" location="${sdk.dir}/ivy.xml" module="com.liferay.sdk" organisation="com.liferay" revision="latest.integration" /> |
||||
</info> |
||||
|
||||
<dependencies defaultconf="default"> |
||||
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" /> |
||||
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" /> |
||||
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0-SNAPSHOT" /> |
||||
</dependencies> |
||||
</ivy-module> |
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?> |
||||
|
||||
<arquillian |
||||
xmlns="http://jboss.org/schema/arquillian" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd" |
||||
> |
||||
<container default="true" qualifier="tomcat"> |
||||
<configuration> |
||||
<property name="jmxPort">8099</property> |
||||
<property name="pass">tomcat</property> |
||||
<property name="user">tomcat</property> |
||||
</configuration> |
||||
</container> |
||||
</arquillian> |
Caricamento…
Reference in new issue