method, txRequiredList,
PropsValues.SERVICE_BUILDER_SERVICE_READ_ONLY_PREFIXES);
}
public boolean isSoapMethod(JavaMethod method) {
Type returnType = method.getReturns();
String returnTypeGenericsName = getTypeGenericsName(returnType);
String returnValueName = returnType.getValue();
if (returnTypeGenericsName.contains(
"com.liferay.portal.kernel.search.") ||
returnTypeGenericsName.contains("com.liferay.portal.model.Theme") ||
returnTypeGenericsName.contains(
"com.liferay.portlet.social.model.SocialActivityDefinition") ||
returnTypeGenericsName.equals("java.util.List<java.lang.Object>") ||
returnValueName.equals("com.liferay.portal.model.Lock") ||
returnValueName.equals(
"com.liferay.portlet.messageboards.model.MBMessageDisplay") ||
returnValueName.startsWith("java.io") ||
returnValueName.equals("java.util.Map") ||
returnValueName.equals("java.util.Properties") ||
returnValueName.startsWith("javax")) {
return false;
}
if (returnTypeGenericsName.contains(
"com.liferay.portal.kernel.repository.model.FileEntry") ||
returnTypeGenericsName.contains(
"com.liferay.portal.kernel.repository.model.Folder")) {
}
else if (returnTypeGenericsName.contains(
"com.liferay.portal.kernel.repository.")) {
return false;
}
JavaParameter[] parameters = method.getParameters();
for (JavaParameter javaParameter : parameters) {
Type type = javaParameter.getType();
String parameterTypeName = type.getValue() + _getDimensions(type);
if (parameterTypeName.equals(
"com.liferay.portal.kernel.util.UnicodeProperties") ||
parameterTypeName.equals(
"com.liferay.portal.theme.ThemeDisplay") ||