Salvatore La Manna
4 anni fa
25 ha cambiato i file con 167 aggiunte e 35 eliminazioni
@ -0,0 +1,33 @@
|
||||
eclipse.preferences.version=1 |
||||
liferay-display-xml-reference-not-found=2 |
||||
liferay-display-xml-resource-not-found=2 |
||||
liferay-display-xml-syntax-invalid=2 |
||||
liferay-display-xml-type-hierarchy-incorrect=2 |
||||
liferay-display-xml-type-not-found=2 |
||||
liferay-hook-xml-reference-not-found=2 |
||||
liferay-hook-xml-resource-not-found=2 |
||||
liferay-hook-xml-syntax-invalid=2 |
||||
liferay-hook-xml-type-hierarchy-incorrect=2 |
||||
liferay-hook-xml-type-not-found=2 |
||||
liferay-jsp-files-java-method-not-found=2 |
||||
liferay-jsp-files-resource-property-not-found=2 |
||||
liferay-layout-templates-xml-reference-not-found=2 |
||||
liferay-layout-templates-xml-resource-not-found=2 |
||||
liferay-layout-templates-xml-syntax-invalid=2 |
||||
liferay-layout-templates-xml-type-hierarchy-incorrect=2 |
||||
liferay-layout-templates-xml-type-not-found=2 |
||||
liferay-portlet-xml-reference-not-found=2 |
||||
liferay-portlet-xml-resource-not-found=2 |
||||
liferay-portlet-xml-syntax-invalid=2 |
||||
liferay-portlet-xml-type-hierarchy-incorrect=2 |
||||
liferay-portlet-xml-type-not-found=2 |
||||
portlet-xml-reference-not-found=2 |
||||
portlet-xml-resource-not-found=2 |
||||
portlet-xml-syntax-invalid=2 |
||||
portlet-xml-type-hierarchy-incorrect=2 |
||||
portlet-xml-type-not-found=2 |
||||
service-xml-reference-not-found=2 |
||||
service-xml-resource-not-found=2 |
||||
service-xml-syntax-invalid=2 |
||||
service-xml-type-hierarchy-incorrect=2 |
||||
service-xml-type-not-found=2 |
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1 |
||||
sdk-name=liferay-plugins-sdk-6.2 |
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1 |
||||
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false |
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1 |
||||
org.eclipse.wst.ws.service.policy.projectEnabled=false |
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE project> |
||||
|
||||
<project name="sicilia-sue-connector-portlet" basedir="." default="deploy"> |
||||
<property name="import.shared" value="portos-bo-shared" /> |
||||
<import file="../build-common-portlet.xml" /> |
||||
</project> |
@ -1 +0,0 @@
|
||||
/classes/ |
File binario non mostrato.
File binario non mostrato.
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd"> |
||||
<hook> |
||||
<portal-properties>portal.properties</portal-properties> |
||||
</hook> |
@ -0,0 +1,40 @@
|
||||
package it.mwg.sicilia.sue.api.common; |
||||
|
||||
|
||||
public class Action { |
||||
|
||||
private String name; |
||||
private String description; |
||||
private String method; |
||||
|
||||
public Action(String name, String description, String method) { |
||||
|
||||
this.name = name; |
||||
this.description = description; |
||||
this.method = method; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getDescription() { |
||||
return description; |
||||
} |
||||
|
||||
public void setDescription(String description) { |
||||
this.description = description; |
||||
} |
||||
|
||||
public String getMethod() { |
||||
return method; |
||||
} |
||||
|
||||
public void setMethod(String method) { |
||||
this.method = method; |
||||
} |
||||
} |
@ -0,0 +1,39 @@
|
||||
package it.mwg.sicilia.sue.api.common; |
||||
|
||||
import com.liferay.portal.kernel.json.JSONFactoryUtil; |
||||
import com.liferay.portal.kernel.json.JSONSerializer; |
||||
|
||||
public class ApiResponse { |
||||
|
||||
private int code; |
||||
private String message; |
||||
|
||||
private static final JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer().exclude("class"); |
||||
|
||||
public ApiResponse(int code, String message) { |
||||
|
||||
this.setCode(code); |
||||
this.setMessage(message); |
||||
} |
||||
|
||||
public int getCode() { |
||||
return code; |
||||
} |
||||
|
||||
public void setCode(int code) { |
||||
this.code = code; |
||||
} |
||||
|
||||
public String getMessage() { |
||||
return message; |
||||
} |
||||
|
||||
public void setMessage(String message) { |
||||
this.message = message; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return serializer.serialize(this); |
||||
} |
||||
} |
@ -0,0 +1,22 @@
|
||||
package it.mwg.sicilia.sue.api.v1; |
||||
|
||||
import it.mwg.sicilia.sue.api.common.Action; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
import com.liferay.portal.kernel.servlet.HttpMethods; |
||||
|
||||
public class Actions { |
||||
|
||||
@SuppressWarnings("serial") |
||||
private static final List<Action> ACTIONS = new ArrayList<Action>() { |
||||
{ |
||||
add(new Action("login", "Login", HttpMethods.POST)); |
||||
} |
||||
}; |
||||
|
||||
public static List<Action> getActions() { |
||||
return ACTIONS; |
||||
} |
||||
} |
@ -1 +0,0 @@
|
||||
a=b |
@ -1 +0,0 @@
|
||||
build.auto.upgrade=false |
Caricamento…
Reference in new issue