Skip to content

Instantly share code, notes, and snippets.

@chingovan
Created April 27, 2017 17:14
Show Gist options
  • Save chingovan/e862aeeaae7ea719c75a1405ba7ac1e8 to your computer and use it in GitHub Desktop.
Save chingovan/e862aeeaae7ea719c75a1405ba7ac1e8 to your computer and use it in GitHub Desktop.
package com.chingovan.liferay7.test.portlet;
import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
import javax.portlet.Portlet;
import org.osgi.service.component.annotations.Component;
/**
* @author ChiNV
*/
@Component(
immediate = true,
property = {
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.instanceable=true",
"javax.portlet.display-name=test-portlet Portlet",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=/view.jsp",
"javax.portlet.resource-bundle=content.Language",
"javax.portlet.security-role-ref=power-user,user"
},
service = Portlet.class
)
public class TestPortlet extends MVCPortlet {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment