001
014
015 package com.liferay.taglib.ui;
016
017 import com.liferay.portal.kernel.util.MethodKey;
018 import com.liferay.portal.kernel.util.PortalClassInvoker;
019 import com.liferay.portal.kernel.util.StringPool;
020
021 import javax.servlet.jsp.JspException;
022 import javax.servlet.jsp.PageContext;
023 import javax.servlet.jsp.tagext.TagSupport;
024
025
029 public class InputPermissionsParamsTag extends TagSupport {
030
031 public static String doTag(
032 String modelName, PageContext pageContext)
033 throws Exception {
034
035 Object returnObj = PortalClassInvoker.invoke(
036 false, _doEndTagMethodKey, modelName, pageContext);
037
038 if (returnObj != null) {
039 return returnObj.toString();
040 }
041 else {
042 return StringPool.BLANK;
043 }
044 }
045
046 @Override
047 public int doEndTag() throws JspException {
048 try {
049 doTag(_modelName, pageContext);
050
051 return EVAL_PAGE;
052 }
053 catch (Exception e) {
054 throw new JspException(e);
055 }
056 }
057
058 public void setModelName(String modelName) {
059 _modelName = modelName;
060 }
061
062 private static final String _TAG_CLASS =
063 "com.liferay.portal.servlet.taglib.ui.InputPermissionsParamsTagUtil";
064
065 private static MethodKey _doEndTagMethodKey = new MethodKey(
066 _TAG_CLASS, "doEndTag", String.class, PageContext.class);
067
068 private String _modelName;
069
070 }