Example usage for com.liferay.portal.kernel.model Portlet isStatic

List of usage examples for com.liferay.portal.kernel.model Portlet isStatic

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model Portlet isStatic.

Prototype

public boolean isStatic();

Source Link

Document

Returns true if the portlet is a static portlet that is cannot be moved.

Usage

From source file:com.liferay.layout.type.controller.test.LayoutTypePortletTest.java

License:Open Source License

@Test
public void testGetAllPortletsWithOnlyStaticPortlets() throws Exception {
    List<Portlet> portlets = _layoutTypePortlet.getAllPortlets();

    for (Portlet portlet : portlets) {
        Assert.assertTrue(portlet + " is not static", portlet.isStatic());
    }//  w w  w .  j a va2s. c o  m
}