List of usage examples for com.liferay.portal.kernel.jsonwebservice JSONWebServiceActionsManagerUtil getJSONWebServiceActionMappings
public static List<JSONWebServiceActionMapping> getJSONWebServiceActionMappings(String contextName)
From source file:com.liferay.ide.servlet.WebServicesServlet.java
License:Open Source License
protected Map<String, Set<JSONWebServiceActionMapping>> getJSONWebServiceClazz() { List<JSONWebServiceActionMapping> jsonWebServiceActionMappings = JSONWebServiceActionsManagerUtil .getJSONWebServiceActionMappings(StringPool.BLANK); Map<String, Set<JSONWebServiceActionMapping>> jsonWebServiceClazz = new LinkedHashMap<String, Set<JSONWebServiceActionMapping>>(); for (JSONWebServiceActionMapping jsonWebServiceActionMapping : jsonWebServiceActionMappings) { Class<?> actionClass = jsonWebServiceActionMapping.getActionClass(); String actionClassName = actionClass.getSimpleName(); if (actionClassName.endsWith("ServiceUtil")) { actionClassName = actionClassName.substring(0, actionClassName.length() - 11); }//from w ww.j a v a 2 s .c o m Set<JSONWebServiceActionMapping> jsonWebServiceMappings = jsonWebServiceClazz.get(actionClassName); if (Validator.isNull(jsonWebServiceMappings)) { jsonWebServiceMappings = new LinkedHashSet<JSONWebServiceActionMapping>(); jsonWebServiceClazz.put(actionClassName, jsonWebServiceMappings); } jsonWebServiceMappings.add(jsonWebServiceActionMapping); } return jsonWebServiceClazz; }