Salvatore La Manna
4 anni fa
172 ha cambiato i file con 13304 aggiunte e 1024 eliminazioni
File binario non mostrato.
@ -0,0 +1 @@ |
|||||||
|
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]} |
@ -0,0 +1 @@ |
|||||||
|
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]} |
File binario non mostrato.
@ -0,0 +1,5 @@ |
|||||||
|
<?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 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2000-2013 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.exception.PortalException; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
*/ |
||||||
|
public class ExpiredTokenException extends PortalException { |
||||||
|
|
||||||
|
public ExpiredTokenException() { |
||||||
|
super(); |
||||||
|
} |
||||||
|
|
||||||
|
public ExpiredTokenException(String msg) { |
||||||
|
super(msg); |
||||||
|
} |
||||||
|
|
||||||
|
public ExpiredTokenException(String msg, Throwable cause) { |
||||||
|
super(msg, cause); |
||||||
|
} |
||||||
|
|
||||||
|
public ExpiredTokenException(Throwable cause) { |
||||||
|
super(cause); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,40 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2000-2013 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.exception.PortalException; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
*/ |
||||||
|
public class InactiveSportelloException extends PortalException { |
||||||
|
|
||||||
|
public InactiveSportelloException() { |
||||||
|
super(); |
||||||
|
} |
||||||
|
|
||||||
|
public InactiveSportelloException(String msg) { |
||||||
|
super(msg); |
||||||
|
} |
||||||
|
|
||||||
|
public InactiveSportelloException(String msg, Throwable cause) { |
||||||
|
super(msg, cause); |
||||||
|
} |
||||||
|
|
||||||
|
public InactiveSportelloException(Throwable cause) { |
||||||
|
super(cause); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,40 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2000-2013 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.exception.PortalException; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
*/ |
||||||
|
public class InvalidTokenException extends PortalException { |
||||||
|
|
||||||
|
public InvalidTokenException() { |
||||||
|
super(); |
||||||
|
} |
||||||
|
|
||||||
|
public InvalidTokenException(String msg) { |
||||||
|
super(msg); |
||||||
|
} |
||||||
|
|
||||||
|
public InvalidTokenException(String msg, Throwable cause) { |
||||||
|
super(msg, cause); |
||||||
|
} |
||||||
|
|
||||||
|
public InvalidTokenException(Throwable cause) { |
||||||
|
super(cause); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,40 @@ |
|||||||
|
/** |
||||||
|
* Copyright (c) 2000-2013 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue; |
||||||
|
|
||||||
|
import com.liferay.portal.NoSuchModelException; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
*/ |
||||||
|
public class NoSuchApiSettingException extends NoSuchModelException { |
||||||
|
|
||||||
|
public NoSuchApiSettingException() { |
||||||
|
super(); |
||||||
|
} |
||||||
|
|
||||||
|
public NoSuchApiSettingException(String msg) { |
||||||
|
super(msg); |
||||||
|
} |
||||||
|
|
||||||
|
public NoSuchApiSettingException(String msg, Throwable cause) { |
||||||
|
super(msg, cause); |
||||||
|
} |
||||||
|
|
||||||
|
public NoSuchApiSettingException(Throwable cause) { |
||||||
|
super(cause); |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,34 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.model; |
||||||
|
|
||||||
|
import com.liferay.portal.model.PersistedModel; |
||||||
|
|
||||||
|
/** |
||||||
|
* The extended model interface for the ApiSetting service. Represents a row in the "sicilia_sue_ApiSetting" database table, with each column mapped to a property of this class. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingModel |
||||||
|
* @see it.mwg.sicilia.sue.model.impl.ApiSettingImpl |
||||||
|
* @see it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public interface ApiSetting extends ApiSettingModel, PersistedModel { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify this interface directly. Add methods to {@link it.mwg.sicilia.sue.model.impl.ApiSettingImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. |
||||||
|
*/ |
||||||
|
} |
@ -0,0 +1,379 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.model; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; |
||||||
|
import com.liferay.portal.kernel.exception.SystemException; |
||||||
|
import com.liferay.portal.kernel.util.ProxyUtil; |
||||||
|
import com.liferay.portal.kernel.util.StringBundler; |
||||||
|
import com.liferay.portal.model.BaseModel; |
||||||
|
import com.liferay.portal.model.impl.BaseModelImpl; |
||||||
|
|
||||||
|
import it.mwg.sicilia.sue.service.ApiSettingLocalServiceUtil; |
||||||
|
import it.mwg.sicilia.sue.service.ClpSerializer; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
import java.lang.reflect.Method; |
||||||
|
|
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
*/ |
||||||
|
public class ApiSettingClp extends BaseModelImpl<ApiSetting> |
||||||
|
implements ApiSetting { |
||||||
|
public ApiSettingClp() { |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Class<?> getModelClass() { |
||||||
|
return ApiSetting.class; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getModelClassName() { |
||||||
|
return ApiSetting.class.getName(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long getPrimaryKey() { |
||||||
|
return _id; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setPrimaryKey(long primaryKey) { |
||||||
|
setId(primaryKey); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Serializable getPrimaryKeyObj() { |
||||||
|
return _id; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setPrimaryKeyObj(Serializable primaryKeyObj) { |
||||||
|
setPrimaryKey(((Long)primaryKeyObj).longValue()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Map<String, Object> getModelAttributes() { |
||||||
|
Map<String, Object> attributes = new HashMap<String, Object>(); |
||||||
|
|
||||||
|
attributes.put("id", getId()); |
||||||
|
attributes.put("companyId", getCompanyId()); |
||||||
|
attributes.put("key", getKey()); |
||||||
|
attributes.put("value", getValue()); |
||||||
|
|
||||||
|
return attributes; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setModelAttributes(Map<String, Object> attributes) { |
||||||
|
Long id = (Long)attributes.get("id"); |
||||||
|
|
||||||
|
if (id != null) { |
||||||
|
setId(id); |
||||||
|
} |
||||||
|
|
||||||
|
Long companyId = (Long)attributes.get("companyId"); |
||||||
|
|
||||||
|
if (companyId != null) { |
||||||
|
setCompanyId(companyId); |
||||||
|
} |
||||||
|
|
||||||
|
Long key = (Long)attributes.get("key"); |
||||||
|
|
||||||
|
if (key != null) { |
||||||
|
setKey(key); |
||||||
|
} |
||||||
|
|
||||||
|
String value = (String)attributes.get("value"); |
||||||
|
|
||||||
|
if (value != null) { |
||||||
|
setValue(value); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long getId() { |
||||||
|
return _id; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setId(long id) { |
||||||
|
_id = id; |
||||||
|
|
||||||
|
if (_apiSettingRemoteModel != null) { |
||||||
|
try { |
||||||
|
Class<?> clazz = _apiSettingRemoteModel.getClass(); |
||||||
|
|
||||||
|
Method method = clazz.getMethod("setId", long.class); |
||||||
|
|
||||||
|
method.invoke(_apiSettingRemoteModel, id); |
||||||
|
} |
||||||
|
catch (Exception e) { |
||||||
|
throw new UnsupportedOperationException(e); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long getCompanyId() { |
||||||
|
return _companyId; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setCompanyId(long companyId) { |
||||||
|
_companyId = companyId; |
||||||
|
|
||||||
|
if (_apiSettingRemoteModel != null) { |
||||||
|
try { |
||||||
|
Class<?> clazz = _apiSettingRemoteModel.getClass(); |
||||||
|
|
||||||
|
Method method = clazz.getMethod("setCompanyId", long.class); |
||||||
|
|
||||||
|
method.invoke(_apiSettingRemoteModel, companyId); |
||||||
|
} |
||||||
|
catch (Exception e) { |
||||||
|
throw new UnsupportedOperationException(e); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long getKey() { |
||||||
|
return _key; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setKey(long key) { |
||||||
|
_key = key; |
||||||
|
|
||||||
|
if (_apiSettingRemoteModel != null) { |
||||||
|
try { |
||||||
|
Class<?> clazz = _apiSettingRemoteModel.getClass(); |
||||||
|
|
||||||
|
Method method = clazz.getMethod("setKey", long.class); |
||||||
|
|
||||||
|
method.invoke(_apiSettingRemoteModel, key); |
||||||
|
} |
||||||
|
catch (Exception e) { |
||||||
|
throw new UnsupportedOperationException(e); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getValue() { |
||||||
|
return _value; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setValue(String value) { |
||||||
|
_value = value; |
||||||
|
|
||||||
|
if (_apiSettingRemoteModel != null) { |
||||||
|
try { |
||||||
|
Class<?> clazz = _apiSettingRemoteModel.getClass(); |
||||||
|
|
||||||
|
Method method = clazz.getMethod("setValue", String.class); |
||||||
|
|
||||||
|
method.invoke(_apiSettingRemoteModel, value); |
||||||
|
} |
||||||
|
catch (Exception e) { |
||||||
|
throw new UnsupportedOperationException(e); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public BaseModel<?> getApiSettingRemoteModel() { |
||||||
|
return _apiSettingRemoteModel; |
||||||
|
} |
||||||
|
|
||||||
|
public void setApiSettingRemoteModel(BaseModel<?> apiSettingRemoteModel) { |
||||||
|
_apiSettingRemoteModel = apiSettingRemoteModel; |
||||||
|
} |
||||||
|
|
||||||
|
public Object invokeOnRemoteModel(String methodName, |
||||||
|
Class<?>[] parameterTypes, Object[] parameterValues) |
||||||
|
throws Exception { |
||||||
|
Object[] remoteParameterValues = new Object[parameterValues.length]; |
||||||
|
|
||||||
|
for (int i = 0; i < parameterValues.length; i++) { |
||||||
|
if (parameterValues[i] != null) { |
||||||
|
remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
Class<?> remoteModelClass = _apiSettingRemoteModel.getClass(); |
||||||
|
|
||||||
|
ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader(); |
||||||
|
|
||||||
|
Class<?>[] remoteParameterTypes = new Class[parameterTypes.length]; |
||||||
|
|
||||||
|
for (int i = 0; i < parameterTypes.length; i++) { |
||||||
|
if (parameterTypes[i].isPrimitive()) { |
||||||
|
remoteParameterTypes[i] = parameterTypes[i]; |
||||||
|
} |
||||||
|
else { |
||||||
|
String parameterTypeName = parameterTypes[i].getName(); |
||||||
|
|
||||||
|
remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
Method method = remoteModelClass.getMethod(methodName, |
||||||
|
remoteParameterTypes); |
||||||
|
|
||||||
|
Object returnValue = method.invoke(_apiSettingRemoteModel, |
||||||
|
remoteParameterValues); |
||||||
|
|
||||||
|
if (returnValue != null) { |
||||||
|
returnValue = ClpSerializer.translateOutput(returnValue); |
||||||
|
} |
||||||
|
|
||||||
|
return returnValue; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void persist() throws SystemException { |
||||||
|
if (this.isNew()) { |
||||||
|
ApiSettingLocalServiceUtil.addApiSetting(this); |
||||||
|
} |
||||||
|
else { |
||||||
|
ApiSettingLocalServiceUtil.updateApiSetting(this); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ApiSetting toEscapedModel() { |
||||||
|
return (ApiSetting)ProxyUtil.newProxyInstance(ApiSetting.class.getClassLoader(), |
||||||
|
new Class[] { ApiSetting.class }, new AutoEscapeBeanHandler(this)); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Object clone() { |
||||||
|
ApiSettingClp clone = new ApiSettingClp(); |
||||||
|
|
||||||
|
clone.setId(getId()); |
||||||
|
clone.setCompanyId(getCompanyId()); |
||||||
|
clone.setKey(getKey()); |
||||||
|
clone.setValue(getValue()); |
||||||
|
|
||||||
|
return clone; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int compareTo(ApiSetting apiSetting) { |
||||||
|
long primaryKey = apiSetting.getPrimaryKey(); |
||||||
|
|
||||||
|
if (getPrimaryKey() < primaryKey) { |
||||||
|
return -1; |
||||||
|
} |
||||||
|
else if (getPrimaryKey() > primaryKey) { |
||||||
|
return 1; |
||||||
|
} |
||||||
|
else { |
||||||
|
return 0; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean equals(Object obj) { |
||||||
|
if (this == obj) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
|
||||||
|
if (!(obj instanceof ApiSettingClp)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
ApiSettingClp apiSetting = (ApiSettingClp)obj; |
||||||
|
|
||||||
|
long primaryKey = apiSetting.getPrimaryKey(); |
||||||
|
|
||||||
|
if (getPrimaryKey() == primaryKey) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
else { |
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public Class<?> getClpSerializerClass() { |
||||||
|
return _clpSerializerClass; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int hashCode() { |
||||||
|
return (int)getPrimaryKey(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String toString() { |
||||||
|
StringBundler sb = new StringBundler(9); |
||||||
|
|
||||||
|
sb.append("{id="); |
||||||
|
sb.append(getId()); |
||||||
|
sb.append(", companyId="); |
||||||
|
sb.append(getCompanyId()); |
||||||
|
sb.append(", key="); |
||||||
|
sb.append(getKey()); |
||||||
|
sb.append(", value="); |
||||||
|
sb.append(getValue()); |
||||||
|
sb.append("}"); |
||||||
|
|
||||||
|
return sb.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String toXmlString() { |
||||||
|
StringBundler sb = new StringBundler(16); |
||||||
|
|
||||||
|
sb.append("<model><model-name>"); |
||||||
|
sb.append("it.mwg.sicilia.sue.model.ApiSetting"); |
||||||
|
sb.append("</model-name>"); |
||||||
|
|
||||||
|
sb.append( |
||||||
|
"<column><column-name>id</column-name><column-value><![CDATA["); |
||||||
|
sb.append(getId()); |
||||||
|
sb.append("]]></column-value></column>"); |
||||||
|
sb.append( |
||||||
|
"<column><column-name>companyId</column-name><column-value><![CDATA["); |
||||||
|
sb.append(getCompanyId()); |
||||||
|
sb.append("]]></column-value></column>"); |
||||||
|
sb.append( |
||||||
|
"<column><column-name>key</column-name><column-value><![CDATA["); |
||||||
|
sb.append(getKey()); |
||||||
|
sb.append("]]></column-value></column>"); |
||||||
|
sb.append( |
||||||
|
"<column><column-name>value</column-name><column-value><![CDATA["); |
||||||
|
sb.append(getValue()); |
||||||
|
sb.append("]]></column-value></column>"); |
||||||
|
|
||||||
|
sb.append("</model>"); |
||||||
|
|
||||||
|
return sb.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
private long _id; |
||||||
|
private long _companyId; |
||||||
|
private long _key; |
||||||
|
private String _value; |
||||||
|
private BaseModel<?> _apiSettingRemoteModel; |
||||||
|
private Class<?> _clpSerializerClass = it.mwg.sicilia.sue.service.ClpSerializer.class; |
||||||
|
} |
@ -0,0 +1,173 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.model; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.bean.AutoEscape; |
||||||
|
import com.liferay.portal.model.BaseModel; |
||||||
|
import com.liferay.portal.model.CacheModel; |
||||||
|
import com.liferay.portal.service.ServiceContext; |
||||||
|
|
||||||
|
import com.liferay.portlet.expando.model.ExpandoBridge; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* The base model interface for the ApiSetting service. Represents a row in the "sicilia_sue_ApiSetting" database table, with each column mapped to a property of this class. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* This interface and its corresponding implementation {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.mwg.sicilia.sue.model.impl.ApiSettingImpl}. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSetting |
||||||
|
* @see it.mwg.sicilia.sue.model.impl.ApiSettingImpl |
||||||
|
* @see it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public interface ApiSettingModel extends BaseModel<ApiSetting> { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify or reference this interface directly. All methods that expect a api setting model instance should use the {@link ApiSetting} interface instead. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the primary key of this api setting. |
||||||
|
* |
||||||
|
* @return the primary key of this api setting |
||||||
|
*/ |
||||||
|
public long getPrimaryKey(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the primary key of this api setting. |
||||||
|
* |
||||||
|
* @param primaryKey the primary key of this api setting |
||||||
|
*/ |
||||||
|
public void setPrimaryKey(long primaryKey); |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the ID of this api setting. |
||||||
|
* |
||||||
|
* @return the ID of this api setting |
||||||
|
*/ |
||||||
|
public long getId(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the ID of this api setting. |
||||||
|
* |
||||||
|
* @param id the ID of this api setting |
||||||
|
*/ |
||||||
|
public void setId(long id); |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the company ID of this api setting. |
||||||
|
* |
||||||
|
* @return the company ID of this api setting |
||||||
|
*/ |
||||||
|
public long getCompanyId(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the company ID of this api setting. |
||||||
|
* |
||||||
|
* @param companyId the company ID of this api setting |
||||||
|
*/ |
||||||
|
public void setCompanyId(long companyId); |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the key of this api setting. |
||||||
|
* |
||||||
|
* @return the key of this api setting |
||||||
|
*/ |
||||||
|
public long getKey(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the key of this api setting. |
||||||
|
* |
||||||
|
* @param key the key of this api setting |
||||||
|
*/ |
||||||
|
public void setKey(long key); |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the value of this api setting. |
||||||
|
* |
||||||
|
* @return the value of this api setting |
||||||
|
*/ |
||||||
|
@AutoEscape |
||||||
|
public String getValue(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the value of this api setting. |
||||||
|
* |
||||||
|
* @param value the value of this api setting |
||||||
|
*/ |
||||||
|
public void setValue(String value); |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isNew(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setNew(boolean n); |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isCachedModel(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setCachedModel(boolean cachedModel); |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isEscapedModel(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public Serializable getPrimaryKeyObj(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setPrimaryKeyObj(Serializable primaryKeyObj); |
||||||
|
|
||||||
|
@Override |
||||||
|
public ExpandoBridge getExpandoBridge(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setExpandoBridgeAttributes(BaseModel<?> baseModel); |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setExpandoBridgeAttributes(ServiceContext serviceContext); |
||||||
|
|
||||||
|
@Override |
||||||
|
public Object clone(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public int compareTo(it.mwg.sicilia.sue.model.ApiSetting apiSetting); |
||||||
|
|
||||||
|
@Override |
||||||
|
public int hashCode(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public CacheModel<it.mwg.sicilia.sue.model.ApiSetting> toCacheModel(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting toEscapedModel(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting toUnescapedModel(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public String toString(); |
||||||
|
|
||||||
|
@Override |
||||||
|
public String toXmlString(); |
||||||
|
} |
@ -0,0 +1,125 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.model; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
import java.util.ArrayList; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* This class is used by SOAP remote services, specifically {@link it.mwg.sicilia.sue.service.http.ApiSettingServiceSoap}. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see it.mwg.sicilia.sue.service.http.ApiSettingServiceSoap |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingSoap implements Serializable { |
||||||
|
public static ApiSettingSoap toSoapModel(ApiSetting model) { |
||||||
|
ApiSettingSoap soapModel = new ApiSettingSoap(); |
||||||
|
|
||||||
|
soapModel.setId(model.getId()); |
||||||
|
soapModel.setCompanyId(model.getCompanyId()); |
||||||
|
soapModel.setKey(model.getKey()); |
||||||
|
soapModel.setValue(model.getValue()); |
||||||
|
|
||||||
|
return soapModel; |
||||||
|
} |
||||||
|
|
||||||
|
public static ApiSettingSoap[] toSoapModels(ApiSetting[] models) { |
||||||
|
ApiSettingSoap[] soapModels = new ApiSettingSoap[models.length]; |
||||||
|
|
||||||
|
for (int i = 0; i < models.length; i++) { |
||||||
|
soapModels[i] = toSoapModel(models[i]); |
||||||
|
} |
||||||
|
|
||||||
|
return soapModels; |
||||||
|
} |
||||||
|
|
||||||
|
public static ApiSettingSoap[][] toSoapModels(ApiSetting[][] models) { |
||||||
|
ApiSettingSoap[][] soapModels = null; |
||||||
|
|
||||||
|
if (models.length > 0) { |
||||||
|
soapModels = new ApiSettingSoap[models.length][models[0].length]; |
||||||
|
} |
||||||
|
else { |
||||||
|
soapModels = new ApiSettingSoap[0][0]; |
||||||
|
} |
||||||
|
|
||||||
|
for (int i = 0; i < models.length; i++) { |
||||||
|
soapModels[i] = toSoapModels(models[i]); |
||||||
|
} |
||||||
|
|
||||||
|
return soapModels; |
||||||
|
} |
||||||
|
|
||||||
|
public static ApiSettingSoap[] toSoapModels(List<ApiSetting> models) { |
||||||
|
List<ApiSettingSoap> soapModels = new ArrayList<ApiSettingSoap>(models.size()); |
||||||
|
|
||||||
|
for (ApiSetting model : models) { |
||||||
|
soapModels.add(toSoapModel(model)); |
||||||
|
} |
||||||
|
|
||||||
|
return soapModels.toArray(new ApiSettingSoap[soapModels.size()]); |
||||||
|
} |
||||||
|
|
||||||
|
public ApiSettingSoap() { |
||||||
|
} |
||||||
|
|
||||||
|
public long getPrimaryKey() { |
||||||
|
return _id; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPrimaryKey(long pk) { |
||||||
|
setId(pk); |
||||||
|
} |
||||||
|
|
||||||
|
public long getId() { |
||||||
|
return _id; |
||||||
|
} |
||||||
|
|
||||||
|
public void setId(long id) { |
||||||
|
_id = id; |
||||||
|
} |
||||||
|
|
||||||
|
public long getCompanyId() { |
||||||
|
return _companyId; |
||||||
|
} |
||||||
|
|
||||||
|
public void setCompanyId(long companyId) { |
||||||
|
_companyId = companyId; |
||||||
|
} |
||||||
|
|
||||||
|
public long getKey() { |
||||||
|
return _key; |
||||||
|
} |
||||||
|
|
||||||
|
public void setKey(long key) { |
||||||
|
_key = key; |
||||||
|
} |
||||||
|
|
||||||
|
public String getValue() { |
||||||
|
return _value; |
||||||
|
} |
||||||
|
|
||||||
|
public void setValue(String value) { |
||||||
|
_value = value; |
||||||
|
} |
||||||
|
|
||||||
|
private long _id; |
||||||
|
private long _companyId; |
||||||
|
private long _key; |
||||||
|
private String _value; |
||||||
|
} |
@ -0,0 +1,327 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.model; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.util.Validator; |
||||||
|
import com.liferay.portal.model.ModelWrapper; |
||||||
|
|
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* <p> |
||||||
|
* This class is a wrapper for {@link ApiSetting}. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSetting |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingWrapper implements ApiSetting, ModelWrapper<ApiSetting> { |
||||||
|
public ApiSettingWrapper(ApiSetting apiSetting) { |
||||||
|
_apiSetting = apiSetting; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Class<?> getModelClass() { |
||||||
|
return ApiSetting.class; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String getModelClassName() { |
||||||
|
return ApiSetting.class.getName(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Map<String, Object> getModelAttributes() { |
||||||
|
Map<String, Object> attributes = new HashMap<String, Object>(); |
||||||
|
|
||||||
|
attributes.put("id", getId()); |
||||||
|
attributes.put("companyId", getCompanyId()); |
||||||
|
attributes.put("key", getKey()); |
||||||
|
attributes.put("value", getValue()); |
||||||
|
|
||||||
|
return attributes; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setModelAttributes(Map<String, Object> attributes) { |
||||||
|
Long id = (Long)attributes.get("id"); |
||||||
|
|
||||||
|
if (id != null) { |
||||||
|
setId(id); |
||||||
|
} |
||||||
|
|
||||||
|
Long companyId = (Long)attributes.get("companyId"); |
||||||
|
|
||||||
|
if (companyId != null) { |
||||||
|
setCompanyId(companyId); |
||||||
|
} |
||||||
|
|
||||||
|
Long key = (Long)attributes.get("key"); |
||||||
|
|
||||||
|
if (key != null) { |
||||||
|
setKey(key); |
||||||
|
} |
||||||
|
|
||||||
|
String value = (String)attributes.get("value"); |
||||||
|
|
||||||
|
if (value != null) { |
||||||
|
setValue(value); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the primary key of this api setting. |
||||||
|
* |
||||||
|
* @return the primary key of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public long getPrimaryKey() { |
||||||
|
return _apiSetting.getPrimaryKey(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the primary key of this api setting. |
||||||
|
* |
||||||
|
* @param primaryKey the primary key of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setPrimaryKey(long primaryKey) { |
||||||
|
_apiSetting.setPrimaryKey(primaryKey); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the ID of this api setting. |
||||||
|
* |
||||||
|
* @return the ID of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public long getId() { |
||||||
|
return _apiSetting.getId(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the ID of this api setting. |
||||||
|
* |
||||||
|
* @param id the ID of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setId(long id) { |
||||||
|
_apiSetting.setId(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the company ID of this api setting. |
||||||
|
* |
||||||
|
* @return the company ID of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public long getCompanyId() { |
||||||
|
return _apiSetting.getCompanyId(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the company ID of this api setting. |
||||||
|
* |
||||||
|
* @param companyId the company ID of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setCompanyId(long companyId) { |
||||||
|
_apiSetting.setCompanyId(companyId); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the key of this api setting. |
||||||
|
* |
||||||
|
* @return the key of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public long getKey() { |
||||||
|
return _apiSetting.getKey(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the key of this api setting. |
||||||
|
* |
||||||
|
* @param key the key of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setKey(long key) { |
||||||
|
_apiSetting.setKey(key); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the value of this api setting. |
||||||
|
* |
||||||
|
* @return the value of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public java.lang.String getValue() { |
||||||
|
return _apiSetting.getValue(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the value of this api setting. |
||||||
|
* |
||||||
|
* @param value the value of this api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setValue(java.lang.String value) { |
||||||
|
_apiSetting.setValue(value); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isNew() { |
||||||
|
return _apiSetting.isNew(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setNew(boolean n) { |
||||||
|
_apiSetting.setNew(n); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isCachedModel() { |
||||||
|
return _apiSetting.isCachedModel(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setCachedModel(boolean cachedModel) { |
||||||
|
_apiSetting.setCachedModel(cachedModel); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isEscapedModel() { |
||||||
|
return _apiSetting.isEscapedModel(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.io.Serializable getPrimaryKeyObj() { |
||||||
|
return _apiSetting.getPrimaryKeyObj(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { |
||||||
|
_apiSetting.setPrimaryKeyObj(primaryKeyObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { |
||||||
|
return _apiSetting.getExpandoBridge(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setExpandoBridgeAttributes( |
||||||
|
com.liferay.portal.model.BaseModel<?> baseModel) { |
||||||
|
_apiSetting.setExpandoBridgeAttributes(baseModel); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setExpandoBridgeAttributes( |
||||||
|
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { |
||||||
|
_apiSetting.setExpandoBridgeAttributes(expandoBridge); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setExpandoBridgeAttributes( |
||||||
|
com.liferay.portal.service.ServiceContext serviceContext) { |
||||||
|
_apiSetting.setExpandoBridgeAttributes(serviceContext); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object clone() { |
||||||
|
return new ApiSettingWrapper((ApiSetting)_apiSetting.clone()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int compareTo(it.mwg.sicilia.sue.model.ApiSetting apiSetting) { |
||||||
|
return _apiSetting.compareTo(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int hashCode() { |
||||||
|
return _apiSetting.hashCode(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public com.liferay.portal.model.CacheModel<it.mwg.sicilia.sue.model.ApiSetting> toCacheModel() { |
||||||
|
return _apiSetting.toCacheModel(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting toEscapedModel() { |
||||||
|
return new ApiSettingWrapper(_apiSetting.toEscapedModel()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting toUnescapedModel() { |
||||||
|
return new ApiSettingWrapper(_apiSetting.toUnescapedModel()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.String toString() { |
||||||
|
return _apiSetting.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.String toXmlString() { |
||||||
|
return _apiSetting.toXmlString(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void persist() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
_apiSetting.persist(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean equals(Object obj) { |
||||||
|
if (this == obj) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
|
||||||
|
if (!(obj instanceof ApiSettingWrapper)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
ApiSettingWrapper apiSettingWrapper = (ApiSettingWrapper)obj; |
||||||
|
|
||||||
|
if (Validator.equals(_apiSetting, apiSettingWrapper._apiSetting)) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
|
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} |
||||||
|
*/ |
||||||
|
public ApiSetting getWrappedApiSetting() { |
||||||
|
return _apiSetting; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ApiSetting getWrappedModel() { |
||||||
|
return _apiSetting; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void resetOriginalValues() { |
||||||
|
_apiSetting.resetOriginalValues(); |
||||||
|
} |
||||||
|
|
||||||
|
private ApiSetting _apiSetting; |
||||||
|
} |
@ -0,0 +1,259 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.exception.PortalException; |
||||||
|
import com.liferay.portal.kernel.exception.SystemException; |
||||||
|
import com.liferay.portal.kernel.search.IndexableType; |
||||||
|
import com.liferay.portal.kernel.transaction.Isolation; |
||||||
|
import com.liferay.portal.kernel.transaction.Propagation; |
||||||
|
import com.liferay.portal.kernel.transaction.Transactional; |
||||||
|
import com.liferay.portal.service.BaseLocalService; |
||||||
|
import com.liferay.portal.service.InvokableLocalService; |
||||||
|
import com.liferay.portal.service.PersistedModelLocalService; |
||||||
|
|
||||||
|
/** |
||||||
|
* Provides the local service interface for ApiSetting. Methods of this |
||||||
|
* service will not have security checks based on the propagated JAAS |
||||||
|
* credentials because this service can only be accessed from within the same |
||||||
|
* VM. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingLocalServiceUtil |
||||||
|
* @see it.mwg.sicilia.sue.service.base.ApiSettingLocalServiceBaseImpl |
||||||
|
* @see it.mwg.sicilia.sue.service.impl.ApiSettingLocalServiceImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
@Transactional(isolation = Isolation.PORTAL, rollbackFor = { |
||||||
|
PortalException.class, SystemException.class}) |
||||||
|
public interface ApiSettingLocalService extends BaseLocalService, |
||||||
|
InvokableLocalService, PersistedModelLocalService { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify or reference this interface directly. Always use {@link ApiSettingLocalServiceUtil} to access the api setting local service. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.ApiSettingLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Adds the api setting to the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was added |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting addApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Creates a new api setting with the primary key. Does not add the api setting to the database. |
||||||
|
* |
||||||
|
* @param id the primary key for the new api setting |
||||||
|
* @return the new api setting |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting createApiSetting(long id); |
||||||
|
|
||||||
|
/** |
||||||
|
* Deletes the api setting with the primary key from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws PortalException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Deletes the api setting from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns the matching rows. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @return the matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns a range of the matching rows. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param start the lower bound of the range of model instances |
||||||
|
* @param end the upper bound of the range of model instances (not inclusive) |
||||||
|
* @return the range of matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end) throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns an ordered range of the matching rows. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param start the lower bound of the range of model instances |
||||||
|
* @param end the upper bound of the range of model instances (not inclusive) |
||||||
|
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||||
|
* @return the ordered range of matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end, |
||||||
|
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of rows that match the dynamic query. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @return the number of rows that match the dynamic query |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of rows that match the dynamic query. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param projection the projection to apply to the query |
||||||
|
* @return the number of rows that match the dynamic query |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||||
|
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting fetchApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting |
||||||
|
* @throws PortalException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting getApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
@Override |
||||||
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||||
|
public com.liferay.portal.model.PersistedModel getPersistedModel( |
||||||
|
java.io.Serializable primaryKeyObj) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns a range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @return the range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||||
|
public java.util.List<it.mwg.sicilia.sue.model.ApiSetting> getApiSettings( |
||||||
|
int start, int end) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings. |
||||||
|
* |
||||||
|
* @return the number of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||||
|
public int getApiSettingsCount() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Updates the api setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was updated |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting updateApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @return the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public java.lang.String getBeanIdentifier(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @param beanIdentifier the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public void setBeanIdentifier(java.lang.String beanIdentifier); |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable; |
||||||
|
|
||||||
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||||
|
public java.lang.String get(long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
public void set(long companyId, long key, java.lang.String value) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
} |
@ -0,0 +1,770 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.service.InvokableLocalService; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingLocalServiceClp implements ApiSettingLocalService { |
||||||
|
public ApiSettingLocalServiceClp( |
||||||
|
InvokableLocalService invokableLocalService) { |
||||||
|
_invokableLocalService = invokableLocalService; |
||||||
|
|
||||||
|
_methodName0 = "addApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes0 = new String[] { |
||||||
|
"it.mwg.sicilia.sue.model.ApiSetting" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName1 = "createApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes1 = new String[] { "long" }; |
||||||
|
|
||||||
|
_methodName2 = "deleteApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes2 = new String[] { "long" }; |
||||||
|
|
||||||
|
_methodName3 = "deleteApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes3 = new String[] { |
||||||
|
"it.mwg.sicilia.sue.model.ApiSetting" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName4 = "dynamicQuery"; |
||||||
|
|
||||||
|
_methodParameterTypes4 = new String[] { }; |
||||||
|
|
||||||
|
_methodName5 = "dynamicQuery"; |
||||||
|
|
||||||
|
_methodParameterTypes5 = new String[] { |
||||||
|
"com.liferay.portal.kernel.dao.orm.DynamicQuery" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName6 = "dynamicQuery"; |
||||||
|
|
||||||
|
_methodParameterTypes6 = new String[] { |
||||||
|
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName7 = "dynamicQuery"; |
||||||
|
|
||||||
|
_methodParameterTypes7 = new String[] { |
||||||
|
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", |
||||||
|
"com.liferay.portal.kernel.util.OrderByComparator" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName8 = "dynamicQueryCount"; |
||||||
|
|
||||||
|
_methodParameterTypes8 = new String[] { |
||||||
|
"com.liferay.portal.kernel.dao.orm.DynamicQuery" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName9 = "dynamicQueryCount"; |
||||||
|
|
||||||
|
_methodParameterTypes9 = new String[] { |
||||||
|
"com.liferay.portal.kernel.dao.orm.DynamicQuery", |
||||||
|
"com.liferay.portal.kernel.dao.orm.Projection" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName10 = "fetchApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes10 = new String[] { "long" }; |
||||||
|
|
||||||
|
_methodName11 = "getApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes11 = new String[] { "long" }; |
||||||
|
|
||||||
|
_methodName12 = "getPersistedModel"; |
||||||
|
|
||||||
|
_methodParameterTypes12 = new String[] { "java.io.Serializable" }; |
||||||
|
|
||||||
|
_methodName13 = "getApiSettings"; |
||||||
|
|
||||||
|
_methodParameterTypes13 = new String[] { "int", "int" }; |
||||||
|
|
||||||
|
_methodName14 = "getApiSettingsCount"; |
||||||
|
|
||||||
|
_methodParameterTypes14 = new String[] { }; |
||||||
|
|
||||||
|
_methodName15 = "updateApiSetting"; |
||||||
|
|
||||||
|
_methodParameterTypes15 = new String[] { |
||||||
|
"it.mwg.sicilia.sue.model.ApiSetting" |
||||||
|
}; |
||||||
|
|
||||||
|
_methodName16 = "getBeanIdentifier"; |
||||||
|
|
||||||
|
_methodParameterTypes16 = new String[] { }; |
||||||
|
|
||||||
|
_methodName17 = "setBeanIdentifier"; |
||||||
|
|
||||||
|
_methodParameterTypes17 = new String[] { "java.lang.String" }; |
||||||
|
|
||||||
|
_methodName19 = "get"; |
||||||
|
|
||||||
|
_methodParameterTypes19 = new String[] { "long", "long" }; |
||||||
|
|
||||||
|
_methodName20 = "set"; |
||||||
|
|
||||||
|
_methodParameterTypes20 = new String[] { |
||||||
|
"long", "long", "java.lang.String" |
||||||
|
}; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting addApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName0, |
||||||
|
_methodParameterTypes0, |
||||||
|
new Object[] { ClpSerializer.translateInput(apiSetting) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting createApiSetting(long id) { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName1, |
||||||
|
_methodParameterTypes1, new Object[] { id }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName2, |
||||||
|
_methodParameterTypes2, new Object[] { id }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.PortalException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.PortalException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName3, |
||||||
|
_methodParameterTypes3, |
||||||
|
new Object[] { ClpSerializer.translateInput(apiSetting) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName4, |
||||||
|
_methodParameterTypes4, new Object[] { }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName5, |
||||||
|
_methodParameterTypes5, |
||||||
|
new Object[] { ClpSerializer.translateInput(dynamicQuery) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.util.List)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end) throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName6, |
||||||
|
_methodParameterTypes6, |
||||||
|
new Object[] { |
||||||
|
ClpSerializer.translateInput(dynamicQuery), |
||||||
|
|
||||||
|
start, |
||||||
|
|
||||||
|
end |
||||||
|
}); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.util.List)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end, |
||||||
|
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName7, |
||||||
|
_methodParameterTypes7, |
||||||
|
new Object[] { |
||||||
|
ClpSerializer.translateInput(dynamicQuery), |
||||||
|
|
||||||
|
start, |
||||||
|
|
||||||
|
end, |
||||||
|
|
||||||
|
ClpSerializer.translateInput(orderByComparator) |
||||||
|
}); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.util.List)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName8, |
||||||
|
_methodParameterTypes8, |
||||||
|
new Object[] { ClpSerializer.translateInput(dynamicQuery) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return ((Long)returnObj).longValue(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||||
|
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName9, |
||||||
|
_methodParameterTypes9, |
||||||
|
new Object[] { |
||||||
|
ClpSerializer.translateInput(dynamicQuery), |
||||||
|
|
||||||
|
ClpSerializer.translateInput(projection) |
||||||
|
}); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return ((Long)returnObj).longValue(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting fetchApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName10, |
||||||
|
_methodParameterTypes10, new Object[] { id }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting getApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName11, |
||||||
|
_methodParameterTypes11, new Object[] { id }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.PortalException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.PortalException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public com.liferay.portal.model.PersistedModel getPersistedModel( |
||||||
|
java.io.Serializable primaryKeyObj) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName12, |
||||||
|
_methodParameterTypes12, |
||||||
|
new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.PortalException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.PortalException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.util.List<it.mwg.sicilia.sue.model.ApiSetting> getApiSettings( |
||||||
|
int start, int end) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName13, |
||||||
|
_methodParameterTypes13, new Object[] { start, end }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.util.List<it.mwg.sicilia.sue.model.ApiSetting>)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int getApiSettingsCount() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName14, |
||||||
|
_methodParameterTypes14, new Object[] { }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return ((Integer)returnObj).intValue(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting updateApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName15, |
||||||
|
_methodParameterTypes15, |
||||||
|
new Object[] { ClpSerializer.translateInput(apiSetting) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (it.mwg.sicilia.sue.model.ApiSetting)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.String getBeanIdentifier() { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName16, |
||||||
|
_methodParameterTypes16, new Object[] { }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.lang.String)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||||
|
try { |
||||||
|
_invokableLocalService.invokeMethod(_methodName17, |
||||||
|
_methodParameterTypes17, |
||||||
|
new Object[] { ClpSerializer.translateInput(beanIdentifier) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable { |
||||||
|
throw new UnsupportedOperationException(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.String get(long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableLocalService.invokeMethod(_methodName19, |
||||||
|
_methodParameterTypes19, new Object[] { companyId, key }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.lang.String)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void set(long companyId, long key, java.lang.String value) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
try { |
||||||
|
_invokableLocalService.invokeMethod(_methodName20, |
||||||
|
_methodParameterTypes20, |
||||||
|
new Object[] { companyId, key, ClpSerializer.translateInput( |
||||||
|
value) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||||
|
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||||
|
} |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private InvokableLocalService _invokableLocalService; |
||||||
|
private String _methodName0; |
||||||
|
private String[] _methodParameterTypes0; |
||||||
|
private String _methodName1; |
||||||
|
private String[] _methodParameterTypes1; |
||||||
|
private String _methodName2; |
||||||
|
private String[] _methodParameterTypes2; |
||||||
|
private String _methodName3; |
||||||
|
private String[] _methodParameterTypes3; |
||||||
|
private String _methodName4; |
||||||
|
private String[] _methodParameterTypes4; |
||||||
|
private String _methodName5; |
||||||
|
private String[] _methodParameterTypes5; |
||||||
|
private String _methodName6; |
||||||
|
private String[] _methodParameterTypes6; |
||||||
|
private String _methodName7; |
||||||
|
private String[] _methodParameterTypes7; |
||||||
|
private String _methodName8; |
||||||
|
private String[] _methodParameterTypes8; |
||||||
|
private String _methodName9; |
||||||
|
private String[] _methodParameterTypes9; |
||||||
|
private String _methodName10; |
||||||
|
private String[] _methodParameterTypes10; |
||||||
|
private String _methodName11; |
||||||
|
private String[] _methodParameterTypes11; |
||||||
|
private String _methodName12; |
||||||
|
private String[] _methodParameterTypes12; |
||||||
|
private String _methodName13; |
||||||
|
private String[] _methodParameterTypes13; |
||||||
|
private String _methodName14; |
||||||
|
private String[] _methodParameterTypes14; |
||||||
|
private String _methodName15; |
||||||
|
private String[] _methodParameterTypes15; |
||||||
|
private String _methodName16; |
||||||
|
private String[] _methodParameterTypes16; |
||||||
|
private String _methodName17; |
||||||
|
private String[] _methodParameterTypes17; |
||||||
|
private String _methodName19; |
||||||
|
private String[] _methodParameterTypes19; |
||||||
|
private String _methodName20; |
||||||
|
private String[] _methodParameterTypes20; |
||||||
|
} |
@ -0,0 +1,314 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; |
||||||
|
import com.liferay.portal.kernel.util.ReferenceRegistry; |
||||||
|
import com.liferay.portal.service.InvokableLocalService; |
||||||
|
|
||||||
|
/** |
||||||
|
* Provides the local service utility for ApiSetting. This utility wraps |
||||||
|
* {@link it.mwg.sicilia.sue.service.impl.ApiSettingLocalServiceImpl} and is the |
||||||
|
* primary access point for service operations in application layer code running |
||||||
|
* on the local server. Methods of this service will not have security checks |
||||||
|
* based on the propagated JAAS credentials because this service can only be |
||||||
|
* accessed from within the same VM. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingLocalService |
||||||
|
* @see it.mwg.sicilia.sue.service.base.ApiSettingLocalServiceBaseImpl |
||||||
|
* @see it.mwg.sicilia.sue.service.impl.ApiSettingLocalServiceImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingLocalServiceUtil { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify this class directly. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.ApiSettingLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Adds the api setting to the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was added |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting addApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().addApiSetting(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Creates a new api setting with the primary key. Does not add the api setting to the database. |
||||||
|
* |
||||||
|
* @param id the primary key for the new api setting |
||||||
|
* @return the new api setting |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting createApiSetting(long id) { |
||||||
|
return getService().createApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Deletes the api setting with the primary key from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws PortalException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().deleteApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Deletes the api setting from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().deleteApiSetting(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { |
||||||
|
return getService().dynamicQuery(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns the matching rows. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @return the matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public static java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().dynamicQuery(dynamicQuery); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns a range of the matching rows. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param start the lower bound of the range of model instances |
||||||
|
* @param end the upper bound of the range of model instances (not inclusive) |
||||||
|
* @return the range of matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public static java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end) throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().dynamicQuery(dynamicQuery, start, end); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns an ordered range of the matching rows. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param start the lower bound of the range of model instances |
||||||
|
* @param end the upper bound of the range of model instances (not inclusive) |
||||||
|
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||||
|
* @return the ordered range of matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public static java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end, |
||||||
|
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService() |
||||||
|
.dynamicQuery(dynamicQuery, start, end, orderByComparator); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of rows that match the dynamic query. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @return the number of rows that match the dynamic query |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().dynamicQueryCount(dynamicQuery); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of rows that match the dynamic query. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param projection the projection to apply to the query |
||||||
|
* @return the number of rows that match the dynamic query |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||||
|
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().dynamicQueryCount(dynamicQuery, projection); |
||||||
|
} |
||||||
|
|
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting fetchApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().fetchApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting |
||||||
|
* @throws PortalException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting getApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().getApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
public static com.liferay.portal.model.PersistedModel getPersistedModel( |
||||||
|
java.io.Serializable primaryKeyObj) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().getPersistedModel(primaryKeyObj); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns a range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @return the range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static java.util.List<it.mwg.sicilia.sue.model.ApiSetting> getApiSettings( |
||||||
|
int start, int end) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().getApiSettings(start, end); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings. |
||||||
|
* |
||||||
|
* @return the number of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static int getApiSettingsCount() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().getApiSettingsCount(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Updates the api setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was updated |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting updateApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().updateApiSetting(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @return the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public static java.lang.String getBeanIdentifier() { |
||||||
|
return getService().getBeanIdentifier(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @param beanIdentifier the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public static void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||||
|
getService().setBeanIdentifier(beanIdentifier); |
||||||
|
} |
||||||
|
|
||||||
|
public static java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable { |
||||||
|
return getService().invokeMethod(name, parameterTypes, arguments); |
||||||
|
} |
||||||
|
|
||||||
|
public static java.lang.String get(long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getService().get(companyId, key); |
||||||
|
} |
||||||
|
|
||||||
|
public static void set(long companyId, long key, java.lang.String value) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
getService().set(companyId, key, value); |
||||||
|
} |
||||||
|
|
||||||
|
public static void clearService() { |
||||||
|
_service = null; |
||||||
|
} |
||||||
|
|
||||||
|
public static ApiSettingLocalService getService() { |
||||||
|
if (_service == null) { |
||||||
|
InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), |
||||||
|
ApiSettingLocalService.class.getName()); |
||||||
|
|
||||||
|
if (invokableLocalService instanceof ApiSettingLocalService) { |
||||||
|
_service = (ApiSettingLocalService)invokableLocalService; |
||||||
|
} |
||||||
|
else { |
||||||
|
_service = new ApiSettingLocalServiceClp(invokableLocalService); |
||||||
|
} |
||||||
|
|
||||||
|
ReferenceRegistry.registerReference(ApiSettingLocalServiceUtil.class, |
||||||
|
"_service"); |
||||||
|
} |
||||||
|
|
||||||
|
return _service; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.2.0 |
||||||
|
*/ |
||||||
|
public void setService(ApiSettingLocalService service) { |
||||||
|
} |
||||||
|
|
||||||
|
private static ApiSettingLocalService _service; |
||||||
|
} |
@ -0,0 +1,324 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.service.ServiceWrapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* Provides a wrapper for {@link ApiSettingLocalService}. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingLocalService |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingLocalServiceWrapper implements ApiSettingLocalService, |
||||||
|
ServiceWrapper<ApiSettingLocalService> { |
||||||
|
public ApiSettingLocalServiceWrapper( |
||||||
|
ApiSettingLocalService apiSettingLocalService) { |
||||||
|
_apiSettingLocalService = apiSettingLocalService; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Adds the api setting to the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was added |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting addApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.addApiSetting(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Creates a new api setting with the primary key. Does not add the api setting to the database. |
||||||
|
* |
||||||
|
* @param id the primary key for the new api setting |
||||||
|
* @return the new api setting |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting createApiSetting(long id) { |
||||||
|
return _apiSettingLocalService.createApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Deletes the api setting with the primary key from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws PortalException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.deleteApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Deletes the api setting from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting deleteApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.deleteApiSetting(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { |
||||||
|
return _apiSettingLocalService.dynamicQuery(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns the matching rows. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @return the matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.dynamicQuery(dynamicQuery); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns a range of the matching rows. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param start the lower bound of the range of model instances |
||||||
|
* @param end the upper bound of the range of model instances (not inclusive) |
||||||
|
* @return the range of matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end) throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.dynamicQuery(dynamicQuery, start, end); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Performs a dynamic query on the database and returns an ordered range of the matching rows. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param start the lower bound of the range of model instances |
||||||
|
* @param end the upper bound of the range of model instances (not inclusive) |
||||||
|
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||||
|
* @return the ordered range of matching rows |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
@SuppressWarnings("rawtypes") |
||||||
|
public java.util.List dynamicQuery( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||||
|
int end, |
||||||
|
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.dynamicQuery(dynamicQuery, start, end, |
||||||
|
orderByComparator); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of rows that match the dynamic query. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @return the number of rows that match the dynamic query |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.dynamicQueryCount(dynamicQuery); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of rows that match the dynamic query. |
||||||
|
* |
||||||
|
* @param dynamicQuery the dynamic query |
||||||
|
* @param projection the projection to apply to the query |
||||||
|
* @return the number of rows that match the dynamic query |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public long dynamicQueryCount( |
||||||
|
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||||
|
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.dynamicQueryCount(dynamicQuery, |
||||||
|
projection); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting fetchApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.fetchApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting |
||||||
|
* @throws PortalException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting getApiSetting(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.getApiSetting(id); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public com.liferay.portal.model.PersistedModel getPersistedModel( |
||||||
|
java.io.Serializable primaryKeyObj) |
||||||
|
throws com.liferay.portal.kernel.exception.PortalException, |
||||||
|
com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.getPersistedModel(primaryKeyObj); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns a range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @return the range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public java.util.List<it.mwg.sicilia.sue.model.ApiSetting> getApiSettings( |
||||||
|
int start, int end) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.getApiSettings(start, end); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings. |
||||||
|
* |
||||||
|
* @return the number of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public int getApiSettingsCount() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.getApiSettingsCount(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Updates the api setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
* @return the api setting that was updated |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting updateApiSetting( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.updateApiSetting(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @return the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public java.lang.String getBeanIdentifier() { |
||||||
|
return _apiSettingLocalService.getBeanIdentifier(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @param beanIdentifier the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||||
|
_apiSettingLocalService.setBeanIdentifier(beanIdentifier); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable { |
||||||
|
return _apiSettingLocalService.invokeMethod(name, parameterTypes, |
||||||
|
arguments); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.String get(long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return _apiSettingLocalService.get(companyId, key); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void set(long companyId, long key, java.lang.String value) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
_apiSettingLocalService.set(companyId, key, value); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} |
||||||
|
*/ |
||||||
|
public ApiSettingLocalService getWrappedApiSettingLocalService() { |
||||||
|
return _apiSettingLocalService; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService} |
||||||
|
*/ |
||||||
|
public void setWrappedApiSettingLocalService( |
||||||
|
ApiSettingLocalService apiSettingLocalService) { |
||||||
|
_apiSettingLocalService = apiSettingLocalService; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ApiSettingLocalService getWrappedService() { |
||||||
|
return _apiSettingLocalService; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setWrappedService(ApiSettingLocalService apiSettingLocalService) { |
||||||
|
_apiSettingLocalService = apiSettingLocalService; |
||||||
|
} |
||||||
|
|
||||||
|
private ApiSettingLocalService _apiSettingLocalService; |
||||||
|
} |
@ -0,0 +1,66 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.exception.PortalException; |
||||||
|
import com.liferay.portal.kernel.exception.SystemException; |
||||||
|
import com.liferay.portal.kernel.jsonwebservice.JSONWebService; |
||||||
|
import com.liferay.portal.kernel.transaction.Isolation; |
||||||
|
import com.liferay.portal.kernel.transaction.Transactional; |
||||||
|
import com.liferay.portal.security.ac.AccessControlled; |
||||||
|
import com.liferay.portal.service.BaseService; |
||||||
|
import com.liferay.portal.service.InvokableService; |
||||||
|
|
||||||
|
/** |
||||||
|
* Provides the remote service interface for ApiSetting. Methods of this |
||||||
|
* service are expected to have security checks based on the propagated JAAS |
||||||
|
* credentials because this service can be accessed remotely. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingServiceUtil |
||||||
|
* @see it.mwg.sicilia.sue.service.base.ApiSettingServiceBaseImpl |
||||||
|
* @see it.mwg.sicilia.sue.service.impl.ApiSettingServiceImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
@AccessControlled |
||||||
|
@JSONWebService |
||||||
|
@Transactional(isolation = Isolation.PORTAL, rollbackFor = { |
||||||
|
PortalException.class, SystemException.class}) |
||||||
|
public interface ApiSettingService extends BaseService, InvokableService { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify or reference this interface directly. Always use {@link ApiSettingServiceUtil} to access the api setting remote service. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.ApiSettingServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @return the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public java.lang.String getBeanIdentifier(); |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @param beanIdentifier the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public void setBeanIdentifier(java.lang.String beanIdentifier); |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable; |
||||||
|
} |
@ -0,0 +1,91 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.service.InvokableService; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingServiceClp implements ApiSettingService { |
||||||
|
public ApiSettingServiceClp(InvokableService invokableService) { |
||||||
|
_invokableService = invokableService; |
||||||
|
|
||||||
|
_methodName0 = "getBeanIdentifier"; |
||||||
|
|
||||||
|
_methodParameterTypes0 = new String[] { }; |
||||||
|
|
||||||
|
_methodName1 = "setBeanIdentifier"; |
||||||
|
|
||||||
|
_methodParameterTypes1 = new String[] { "java.lang.String" }; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.String getBeanIdentifier() { |
||||||
|
Object returnObj = null; |
||||||
|
|
||||||
|
try { |
||||||
|
returnObj = _invokableService.invokeMethod(_methodName0, |
||||||
|
_methodParameterTypes0, new Object[] { }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
return (java.lang.String)ClpSerializer.translateOutput(returnObj); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||||
|
try { |
||||||
|
_invokableService.invokeMethod(_methodName1, |
||||||
|
_methodParameterTypes1, |
||||||
|
new Object[] { ClpSerializer.translateInput(beanIdentifier) }); |
||||||
|
} |
||||||
|
catch (Throwable t) { |
||||||
|
t = ClpSerializer.translateThrowable(t); |
||||||
|
|
||||||
|
if (t instanceof RuntimeException) { |
||||||
|
throw (RuntimeException)t; |
||||||
|
} |
||||||
|
else { |
||||||
|
throw new RuntimeException(t.getClass().getName() + |
||||||
|
" is not a valid exception"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable { |
||||||
|
throw new UnsupportedOperationException(); |
||||||
|
} |
||||||
|
|
||||||
|
private InvokableService _invokableService; |
||||||
|
private String _methodName0; |
||||||
|
private String[] _methodParameterTypes0; |
||||||
|
private String _methodName1; |
||||||
|
private String[] _methodParameterTypes1; |
||||||
|
} |
@ -0,0 +1,96 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; |
||||||
|
import com.liferay.portal.kernel.util.ReferenceRegistry; |
||||||
|
import com.liferay.portal.service.InvokableService; |
||||||
|
|
||||||
|
/** |
||||||
|
* Provides the remote service utility for ApiSetting. This utility wraps |
||||||
|
* {@link it.mwg.sicilia.sue.service.impl.ApiSettingServiceImpl} and is the |
||||||
|
* primary access point for service operations in application layer code running |
||||||
|
* on a remote server. Methods of this service are expected to have security |
||||||
|
* checks based on the propagated JAAS credentials because this service can be |
||||||
|
* accessed remotely. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingService |
||||||
|
* @see it.mwg.sicilia.sue.service.base.ApiSettingServiceBaseImpl |
||||||
|
* @see it.mwg.sicilia.sue.service.impl.ApiSettingServiceImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingServiceUtil { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify this class directly. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.ApiSettingServiceImpl} and rerun ServiceBuilder to regenerate this class. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @return the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public static java.lang.String getBeanIdentifier() { |
||||||
|
return getService().getBeanIdentifier(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @param beanIdentifier the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
public static void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||||
|
getService().setBeanIdentifier(beanIdentifier); |
||||||
|
} |
||||||
|
|
||||||
|
public static java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable { |
||||||
|
return getService().invokeMethod(name, parameterTypes, arguments); |
||||||
|
} |
||||||
|
|
||||||
|
public static void clearService() { |
||||||
|
_service = null; |
||||||
|
} |
||||||
|
|
||||||
|
public static ApiSettingService getService() { |
||||||
|
if (_service == null) { |
||||||
|
InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), |
||||||
|
ApiSettingService.class.getName()); |
||||||
|
|
||||||
|
if (invokableService instanceof ApiSettingService) { |
||||||
|
_service = (ApiSettingService)invokableService; |
||||||
|
} |
||||||
|
else { |
||||||
|
_service = new ApiSettingServiceClp(invokableService); |
||||||
|
} |
||||||
|
|
||||||
|
ReferenceRegistry.registerReference(ApiSettingServiceUtil.class, |
||||||
|
"_service"); |
||||||
|
} |
||||||
|
|
||||||
|
return _service; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.2.0 |
||||||
|
*/ |
||||||
|
public void setService(ApiSettingService service) { |
||||||
|
} |
||||||
|
|
||||||
|
private static ApiSettingService _service; |
||||||
|
} |
@ -0,0 +1,84 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service; |
||||||
|
|
||||||
|
import com.liferay.portal.service.ServiceWrapper; |
||||||
|
|
||||||
|
/** |
||||||
|
* Provides a wrapper for {@link ApiSettingService}. |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingService |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingServiceWrapper implements ApiSettingService, |
||||||
|
ServiceWrapper<ApiSettingService> { |
||||||
|
public ApiSettingServiceWrapper(ApiSettingService apiSettingService) { |
||||||
|
_apiSettingService = apiSettingService; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @return the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public java.lang.String getBeanIdentifier() { |
||||||
|
return _apiSettingService.getBeanIdentifier(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Sets the Spring bean ID for this bean. |
||||||
|
* |
||||||
|
* @param beanIdentifier the Spring bean ID for this bean |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||||
|
_apiSettingService.setBeanIdentifier(beanIdentifier); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public java.lang.Object invokeMethod(java.lang.String name, |
||||||
|
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||||
|
throws java.lang.Throwable { |
||||||
|
return _apiSettingService.invokeMethod(name, parameterTypes, arguments); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} |
||||||
|
*/ |
||||||
|
public ApiSettingService getWrappedApiSettingService() { |
||||||
|
return _apiSettingService; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService} |
||||||
|
*/ |
||||||
|
public void setWrappedApiSettingService(ApiSettingService apiSettingService) { |
||||||
|
_apiSettingService = apiSettingService; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ApiSettingService getWrappedService() { |
||||||
|
return _apiSettingService; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void setWrappedService(ApiSettingService apiSettingService) { |
||||||
|
_apiSettingService = apiSettingService; |
||||||
|
} |
||||||
|
|
||||||
|
private ApiSettingService _apiSettingService; |
||||||
|
} |
@ -0,0 +1,37 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service.persistence; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; |
||||||
|
import com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
import it.mwg.sicilia.sue.model.ApiSetting; |
||||||
|
import it.mwg.sicilia.sue.service.ApiSettingLocalServiceUtil; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public abstract class ApiSettingActionableDynamicQuery |
||||||
|
extends BaseActionableDynamicQuery { |
||||||
|
public ApiSettingActionableDynamicQuery() throws SystemException { |
||||||
|
setBaseLocalService(ApiSettingLocalServiceUtil.getService()); |
||||||
|
setClass(ApiSetting.class); |
||||||
|
|
||||||
|
setClassLoader(it.mwg.sicilia.sue.service.ClpSerializer.class.getClassLoader()); |
||||||
|
|
||||||
|
setPrimaryKeyPropertyName("id"); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,223 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service.persistence; |
||||||
|
|
||||||
|
import com.liferay.portal.service.persistence.BasePersistence; |
||||||
|
|
||||||
|
import it.mwg.sicilia.sue.model.ApiSetting; |
||||||
|
|
||||||
|
/** |
||||||
|
* The persistence interface for the api setting service. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Caching information and settings can be found in <code>portal.properties</code> |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingPersistenceImpl |
||||||
|
* @see ApiSettingUtil |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public interface ApiSettingPersistence extends BasePersistence<ApiSetting> { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify or reference this interface directly. Always use {@link ApiSettingUtil} to access the api setting persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting where companyId = ? and key = ? or throws a {@link it.mwg.sicilia.sue.NoSuchApiSettingException} if it could not be found. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the matching api setting |
||||||
|
* @throws it.mwg.sicilia.sue.NoSuchApiSettingException if a matching api setting could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting findByCompanyIdKey( |
||||||
|
long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting where companyId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the matching api setting, or <code>null</code> if a matching api setting could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting fetchByCompanyIdKey( |
||||||
|
long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting where companyId = ? and key = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @param retrieveFromCache whether to use the finder cache |
||||||
|
* @return the matching api setting, or <code>null</code> if a matching api setting could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting fetchByCompanyIdKey( |
||||||
|
long companyId, long key, boolean retrieveFromCache) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Removes the api setting where companyId = ? and key = ? from the database. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting removeByCompanyIdKey( |
||||||
|
long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings where companyId = ? and key = ?. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the number of matching api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public int countByCompanyIdKey(long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Caches the api setting in the entity cache if it is enabled. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
*/ |
||||||
|
public void cacheResult(it.mwg.sicilia.sue.model.ApiSetting apiSetting); |
||||||
|
|
||||||
|
/** |
||||||
|
* Caches the api settings in the entity cache if it is enabled. |
||||||
|
* |
||||||
|
* @param apiSettings the api settings |
||||||
|
*/ |
||||||
|
public void cacheResult( |
||||||
|
java.util.List<it.mwg.sicilia.sue.model.ApiSetting> apiSettings); |
||||||
|
|
||||||
|
/** |
||||||
|
* Creates a new api setting with the primary key. Does not add the api setting to the database. |
||||||
|
* |
||||||
|
* @param id the primary key for the new api setting |
||||||
|
* @return the new api setting |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting create(long id); |
||||||
|
|
||||||
|
/** |
||||||
|
* Removes the api setting with the primary key from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws it.mwg.sicilia.sue.NoSuchApiSettingException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting remove(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException; |
||||||
|
|
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting updateImpl( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key or throws a {@link it.mwg.sicilia.sue.NoSuchApiSettingException} if it could not be found. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting |
||||||
|
* @throws it.mwg.sicilia.sue.NoSuchApiSettingException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting findByPrimaryKey(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key or returns <code>null</code> if it could not be found. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting, or <code>null</code> if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public it.mwg.sicilia.sue.model.ApiSetting fetchByPrimaryKey(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns all the api settings. |
||||||
|
* |
||||||
|
* @return the api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public java.util.List<it.mwg.sicilia.sue.model.ApiSetting> findAll() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns a range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @return the range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public java.util.List<it.mwg.sicilia.sue.model.ApiSetting> findAll( |
||||||
|
int start, int end) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns an ordered range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||||
|
* @return the ordered range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public java.util.List<it.mwg.sicilia.sue.model.ApiSetting> findAll( |
||||||
|
int start, int end, |
||||||
|
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Removes all the api settings from the database. |
||||||
|
* |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public void removeAll() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings. |
||||||
|
* |
||||||
|
* @return the number of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public int countAll() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException; |
||||||
|
} |
@ -0,0 +1,352 @@ |
|||||||
|
/** |
||||||
|
* 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. |
||||||
|
*/ |
||||||
|
|
||||||
|
package it.mwg.sicilia.sue.service.persistence; |
||||||
|
|
||||||
|
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; |
||||||
|
import com.liferay.portal.kernel.dao.orm.DynamicQuery; |
||||||
|
import com.liferay.portal.kernel.exception.SystemException; |
||||||
|
import com.liferay.portal.kernel.util.OrderByComparator; |
||||||
|
import com.liferay.portal.kernel.util.ReferenceRegistry; |
||||||
|
import com.liferay.portal.service.ServiceContext; |
||||||
|
|
||||||
|
import it.mwg.sicilia.sue.model.ApiSetting; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* The persistence utility for the api setting service. This utility wraps {@link ApiSettingPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Caching information and settings can be found in <code>portal.properties</code> |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @author Manifattura Web Group Srl |
||||||
|
* @see ApiSettingPersistence |
||||||
|
* @see ApiSettingPersistenceImpl |
||||||
|
* @generated |
||||||
|
*/ |
||||||
|
public class ApiSettingUtil { |
||||||
|
/* |
||||||
|
* NOTE FOR DEVELOPERS: |
||||||
|
* |
||||||
|
* Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache() |
||||||
|
*/ |
||||||
|
public static void clearCache() { |
||||||
|
getPersistence().clearCache(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) |
||||||
|
*/ |
||||||
|
public static void clearCache(ApiSetting apiSetting) { |
||||||
|
getPersistence().clearCache(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) |
||||||
|
*/ |
||||||
|
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) |
||||||
|
throws SystemException { |
||||||
|
return getPersistence().countWithDynamicQuery(dynamicQuery); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) |
||||||
|
*/ |
||||||
|
public static List<ApiSetting> findWithDynamicQuery( |
||||||
|
DynamicQuery dynamicQuery) throws SystemException { |
||||||
|
return getPersistence().findWithDynamicQuery(dynamicQuery); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) |
||||||
|
*/ |
||||||
|
public static List<ApiSetting> findWithDynamicQuery( |
||||||
|
DynamicQuery dynamicQuery, int start, int end) |
||||||
|
throws SystemException { |
||||||
|
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) |
||||||
|
*/ |
||||||
|
public static List<ApiSetting> findWithDynamicQuery( |
||||||
|
DynamicQuery dynamicQuery, int start, int end, |
||||||
|
OrderByComparator orderByComparator) throws SystemException { |
||||||
|
return getPersistence() |
||||||
|
.findWithDynamicQuery(dynamicQuery, start, end, |
||||||
|
orderByComparator); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) |
||||||
|
*/ |
||||||
|
public static ApiSetting update(ApiSetting apiSetting) |
||||||
|
throws SystemException { |
||||||
|
return getPersistence().update(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) |
||||||
|
*/ |
||||||
|
public static ApiSetting update(ApiSetting apiSetting, |
||||||
|
ServiceContext serviceContext) throws SystemException { |
||||||
|
return getPersistence().update(apiSetting, serviceContext); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting where companyId = ? and key = ? or throws a {@link it.mwg.sicilia.sue.NoSuchApiSettingException} if it could not be found. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the matching api setting |
||||||
|
* @throws it.mwg.sicilia.sue.NoSuchApiSettingException if a matching api setting could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting findByCompanyIdKey( |
||||||
|
long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException { |
||||||
|
return getPersistence().findByCompanyIdKey(companyId, key); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting where companyId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the matching api setting, or <code>null</code> if a matching api setting could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting fetchByCompanyIdKey( |
||||||
|
long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().fetchByCompanyIdKey(companyId, key); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting where companyId = ? and key = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @param retrieveFromCache whether to use the finder cache |
||||||
|
* @return the matching api setting, or <code>null</code> if a matching api setting could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting fetchByCompanyIdKey( |
||||||
|
long companyId, long key, boolean retrieveFromCache) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence() |
||||||
|
.fetchByCompanyIdKey(companyId, key, retrieveFromCache); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Removes the api setting where companyId = ? and key = ? from the database. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting removeByCompanyIdKey( |
||||||
|
long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException { |
||||||
|
return getPersistence().removeByCompanyIdKey(companyId, key); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings where companyId = ? and key = ?. |
||||||
|
* |
||||||
|
* @param companyId the company ID |
||||||
|
* @param key the key |
||||||
|
* @return the number of matching api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static int countByCompanyIdKey(long companyId, long key) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().countByCompanyIdKey(companyId, key); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Caches the api setting in the entity cache if it is enabled. |
||||||
|
* |
||||||
|
* @param apiSetting the api setting |
||||||
|
*/ |
||||||
|
public static void cacheResult( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) { |
||||||
|
getPersistence().cacheResult(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Caches the api settings in the entity cache if it is enabled. |
||||||
|
* |
||||||
|
* @param apiSettings the api settings |
||||||
|
*/ |
||||||
|
public static void cacheResult( |
||||||
|
java.util.List<it.mwg.sicilia.sue.model.ApiSetting> apiSettings) { |
||||||
|
getPersistence().cacheResult(apiSettings); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Creates a new api setting with the primary key. Does not add the api setting to the database. |
||||||
|
* |
||||||
|
* @param id the primary key for the new api setting |
||||||
|
* @return the new api setting |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting create(long id) { |
||||||
|
return getPersistence().create(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Removes the api setting with the primary key from the database. Also notifies the appropriate model listeners. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting that was removed |
||||||
|
* @throws it.mwg.sicilia.sue.NoSuchApiSettingException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting remove(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException { |
||||||
|
return getPersistence().remove(id); |
||||||
|
} |
||||||
|
|
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting updateImpl( |
||||||
|
it.mwg.sicilia.sue.model.ApiSetting apiSetting) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().updateImpl(apiSetting); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key or throws a {@link it.mwg.sicilia.sue.NoSuchApiSettingException} if it could not be found. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting |
||||||
|
* @throws it.mwg.sicilia.sue.NoSuchApiSettingException if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting findByPrimaryKey(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException, |
||||||
|
it.mwg.sicilia.sue.NoSuchApiSettingException { |
||||||
|
return getPersistence().findByPrimaryKey(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the api setting with the primary key or returns <code>null</code> if it could not be found. |
||||||
|
* |
||||||
|
* @param id the primary key of the api setting |
||||||
|
* @return the api setting, or <code>null</code> if a api setting with the primary key could not be found |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static it.mwg.sicilia.sue.model.ApiSetting fetchByPrimaryKey(long id) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().fetchByPrimaryKey(id); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns all the api settings. |
||||||
|
* |
||||||
|
* @return the api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static java.util.List<it.mwg.sicilia.sue.model.ApiSetting> findAll() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().findAll(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns a range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @return the range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static java.util.List<it.mwg.sicilia.sue.model.ApiSetting> findAll( |
||||||
|
int start, int end) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().findAll(start, end); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns an ordered range of all the api settings. |
||||||
|
* |
||||||
|
* <p> |
||||||
|
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.ApiSettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||||
|
* </p> |
||||||
|
* |
||||||
|
* @param start the lower bound of the range of api settings |
||||||
|
* @param end the upper bound of the range of api settings (not inclusive) |
||||||
|
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||||
|
* @return the ordered range of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static java.util.List<it.mwg.sicilia.sue.model.ApiSetting> findAll( |
||||||
|
int start, int end, |
||||||
|
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().findAll(start, end, orderByComparator); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Removes all the api settings from the database. |
||||||
|
* |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static void removeAll() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
getPersistence().removeAll(); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Returns the number of api settings. |
||||||
|
* |
||||||
|
* @return the number of api settings |
||||||
|
* @throws SystemException if a system exception occurred |
||||||
|
*/ |
||||||
|
public static int countAll() |
||||||
|
throws com.liferay.portal.kernel.exception.SystemException { |
||||||
|
return getPersistence().countAll(); |
||||||
|
} |
||||||
|
|
||||||
|
public static ApiSettingPersistence getPersistence() { |
||||||
|
if (_persistence == null) { |
||||||
|
_persistence = (ApiSettingPersistence)PortletBeanLocatorUtil.locate(it.mwg.sicilia.sue.service.ClpSerializer.getServletContextName(), |
||||||
|
ApiSettingPersistence.class.getName()); |
||||||
|
|
||||||
|
ReferenceRegistry.registerReference(ApiSettingUtil.class, |
||||||
|
"_persistence"); |
||||||
|
} |
||||||
|
|
||||||
|
return _persistence; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* @deprecated As of 6.2.0 |
||||||
|
*/ |
||||||
|
public void setPersistence(ApiSettingPersistence persistence) { |
||||||
|
} |
||||||
|
|
||||||
|
private static ApiSettingPersistence _persistence; |
||||||
|
} |
@ -0,0 +1,4 @@ |
|||||||
|
IX_7B780A8D=sicilia_sue_ApiSetting.CompanyIdKey |
||||||
|
|
||||||
|
IX_8B2AB20B=sicilia_sue_Sportello.ComuneId |
||||||
|
IX_F4E738BB=sicilia_sue_Sportello.UserName |
@ -0,0 +1,4 @@ |
|||||||
|
create unique index IX_7B780A8D on sicilia_sue_ApiSetting (companyId, key_); |
||||||
|
|
||||||
|
create unique index IX_8B2AB20B on sicilia_sue_Sportello (comuneId); |
||||||
|
create unique index IX_F4E738BB on sicilia_sue_Sportello (userName); |
@ -1,9 +1,26 @@ |
|||||||
|
create table sicilia_sue_ApiSetting ( |
||||||
|
id_ LONG not null primary key, |
||||||
|
companyId LONG, |
||||||
|
key_ LONG, |
||||||
|
value STRING null |
||||||
|
); |
||||||
|
|
||||||
create table sicilia_sue_Sportello ( |
create table sicilia_sue_Sportello ( |
||||||
sportelloId LONG not null primary key, |
sportelloId LONG not null primary key, |
||||||
groupId LONG, |
groupId LONG, |
||||||
companyId LONG, |
companyId LONG, |
||||||
userId LONG, |
|
||||||
userName VARCHAR(75) null, |
|
||||||
createDate DATE null, |
createDate DATE null, |
||||||
modifiedDate DATE null |
createUserId LONG, |
||||||
|
createUserName VARCHAR(75) null, |
||||||
|
modifiedDate DATE null, |
||||||
|
modifiedUserId LONG, |
||||||
|
modifiedUserName VARCHAR(75) null, |
||||||
|
userName VARCHAR(75) null, |
||||||
|
email VARCHAR(240) null, |
||||||
|
comuneId LONG, |
||||||
|
attivo BOOLEAN, |
||||||
|
password_ VARCHAR(75) null, |
||||||
|
passwordModifiedDate DATE null, |
||||||
|
passwordModifiedUserId LONG, |
||||||
|
passwordModifiedUserName VARCHAR(240) null |
||||||
); |
); |
@ -1,13 +1,35 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
|
|
||||||
<model-hints> |
<model-hints> |
||||||
|
<model name="it.mwg.sicilia.sue.model.ApiSetting"> |
||||||
|
<field name="id" type="long" /> |
||||||
|
<field name="companyId" type="long" /> |
||||||
|
<field name="key" type="long" /> |
||||||
|
<field name="value" type="String"> |
||||||
|
<hint name="max-length">4000</hint> |
||||||
|
</field> |
||||||
|
</model> |
||||||
<model name="it.mwg.sicilia.sue.model.Sportello"> |
<model name="it.mwg.sicilia.sue.model.Sportello"> |
||||||
<field name="sportelloId" type="long" /> |
<field name="sportelloId" type="long" /> |
||||||
<field name="groupId" type="long" /> |
<field name="groupId" type="long" /> |
||||||
<field name="companyId" type="long" /> |
<field name="companyId" type="long" /> |
||||||
<field name="userId" type="long" /> |
|
||||||
<field name="userName" type="String" /> |
|
||||||
<field name="createDate" type="Date" /> |
<field name="createDate" type="Date" /> |
||||||
|
<field name="createUserId" type="long" /> |
||||||
|
<field name="createUserName" type="String" /> |
||||||
<field name="modifiedDate" type="Date" /> |
<field name="modifiedDate" type="Date" /> |
||||||
|
<field name="modifiedUserId" type="long" /> |
||||||
|
<field name="modifiedUserName" type="String" /> |
||||||
|
<field name="userName" type="String" /> |
||||||
|
<field name="email" type="String"> |
||||||
|
<hint name="max-length">240</hint> |
||||||
|
</field> |
||||||
|
<field name="comuneId" type="long" /> |
||||||
|
<field name="attivo" type="boolean" /> |
||||||
|
<field name="password" type="String" /> |
||||||
|
<field name="passwordModifiedDate" type="Date" /> |
||||||
|
<field name="passwordModifiedUserId" type="long" /> |
||||||
|
<field name="passwordModifiedUserName" type="String"> |
||||||
|
<hint name="max-length">240</hint> |
||||||
|
</field> |
||||||
</model> |
</model> |
||||||
</model-hints> |
</model-hints> |
Some files were not shown because too many files have changed in this diff Show More
Caricamento…
Reference in new issue