com.liferay.portlet.PortletQNameUtil Maven / Gradle / Ivy
/**
* 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 com.liferay.portlet;
import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
import com.liferay.portal.kernel.xml.Element;
import com.liferay.portal.kernel.xml.QName;
/**
* @author Brian Wing Shun Chan
*/
public class PortletQNameUtil {
public static String getKey(QName qName) {
return getPortletQName().getKey(qName);
}
public static String getKey(String uri, String localPart) {
return getPortletQName().getKey(uri, localPart);
}
public static PortletQName getPortletQName() {
PortalRuntimePermission.checkGetBeanProperty(PortletQNameUtil.class);
return _portletQName;
}
public static String getPublicRenderParameterIdentifier(
String publicRenderParameterName) {
return getPortletQName().getPublicRenderParameterIdentifier(
publicRenderParameterName);
}
public static String getPublicRenderParameterName(QName qName) {
return getPortletQName().getPublicRenderParameterName(qName);
}
public static QName getQName(
Element qNameEl, Element nameEl, String defaultNamespace) {
return getPortletQName().getQName(qNameEl, nameEl, defaultNamespace);
}
public static QName getQName(String publicRenderParameterName) {
return getPortletQName().getQName(publicRenderParameterName);
}
public static String getRemovePublicRenderParameterName(QName qName) {
return getPortletQName().getRemovePublicRenderParameterName(qName);
}
public static void setPublicRenderParameterIdentifier(
String publicRenderParameterName, String identifier) {
getPortletQName().setPublicRenderParameterIdentifier(
publicRenderParameterName, identifier);
}
public void setPortletQName(PortletQName portletQName) {
PortalRuntimePermission.checkSetBeanProperty(getClass());
_portletQName = portletQName;
}
private static PortletQName _portletQName;
}