Example usage for com.liferay.portal.kernel.model TrashedModel isInTrashContainer

List of usage examples for com.liferay.portal.kernel.model TrashedModel isInTrashContainer

Introduction

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

Prototype

public boolean isInTrashContainer();

Source Link

Usage

From source file:com.liferay.trash.test.util.BaseTrashHandlerTestCase.java

License:Open Source License

protected boolean isInTrashContainer(ClassedModel classedModel) throws Exception {

    if (classedModel instanceof TrashedModel) {
        TrashedModel trashedModel = (TrashedModel) classedModel;

        return trashedModel.isInTrashContainer();
    }/* w w w.  j av a  2 s.c o  m*/

    return false;
}