Example usage for com.liferay.portal.kernel.template TemplateHandler getResourceName

List of usage examples for com.liferay.portal.kernel.template TemplateHandler getResourceName

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.template TemplateHandler getResourceName.

Prototype

public String getResourceName();

Source Link

Document

Returns the name of the resource associated with the template.

Usage

From source file:com.liferay.portlet.display.template.web.internal.dynamic.data.mapping.util.PortletDisplayTemplateDDMPermissionSupport.java

License:Open Source License

@Override
public String getResourceName(long classNameId) {
    TemplateHandler templateHandler = TemplateHandlerRegistryUtil.getTemplateHandler(classNameId);

    if (templateHandler != null) {
        return templateHandler.getResourceName();
    }/*from www  .  ja va2s  .com*/

    return StringPool.BLANK;
}