Example usage for com.liferay.portal.kernel.util ListUtil toList

List of usage examples for com.liferay.portal.kernel.util ListUtil toList

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util ListUtil toList.

Prototype

@Deprecated
public static List<Short> toList(short[] array) 

Source Link

Usage

From source file:com.liferay.asset.assetrendererfactoryregistryutil.test.AssetRendererFactoryRegistryUtilTest.java

License:Open Source License

@Test
public void testGetClassNameIds1() {
    long[] classNameIds = AssetRendererFactoryRegistryUtil.getClassNameIds(1);

    List<Long> classNameIdsList = ListUtil.toList(classNameIds);

    Assert.assertTrue(classNameIdsList.toString(), classNameIdsList.contains(Long.valueOf(1234567890)));
}

From source file:com.liferay.asset.assetrendererfactoryregistryutil.test.AssetRendererFactoryRegistryUtilTest.java

License:Open Source License

@Test
public void testGetClassNameIds2() {
    long[] classNameIds = AssetRendererFactoryRegistryUtil.getClassNameIds(1, true);

    List<Long> classNameIdsList = ListUtil.toList(classNameIds);

    Assert.assertTrue(classNameIdsList.toString(), classNameIdsList.contains(Long.valueOf(1234567890)));
}

From source file:com.liferay.asset.assetrendererfactoryregistryutil.test.AssetRendererFactoryRegistryUtilTest.java

License:Open Source License

@Test
public void testGetClassNameIds3() {
    long[] classNameIds = AssetRendererFactoryRegistryUtil.getClassNameIds(1, false);

    List<Long> classNameIdsList = ListUtil.toList(classNameIds);

    Assert.assertTrue(classNameIdsList.toString(), classNameIdsList.contains(Long.valueOf(1234567890)));
}

From source file:com.liferay.asset.categories.internal.xstream.configurator.AssetCategoriesXStreamConfigurator.java

License:Open Source License

@Override
public List<XStreamType> getAllowedXStreamTypes() {
    return ListUtil.toList(_xStreamTypes);
}

From source file:com.liferay.asset.categories.internal.xstream.configurator.AssetCategoriesXStreamConfigurator.java

License:Open Source License

@Override
public List<XStreamAlias> getXStreamAliases() {
    return ListUtil.toList(_xStreamAliases);
}

From source file:com.liferay.asset.categories.navigation.web.internal.exportimport.portlet.preferences.processor.AssetCategoriesNavigationPortletPreferencesProcessor.java

License:Open Source License

@Override
public List<Capability> getExportCapabilities() {
    return ListUtil.toList(new Capability[] { _portletDisplayTemplateExportCapability });
}

From source file:com.liferay.asset.categories.navigation.web.internal.exportimport.portlet.preferences.processor.AssetCategoriesNavigationPortletPreferencesProcessor.java

License:Open Source License

@Override
public List<Capability> getImportCapabilities() {
    return ListUtil.toList(new Capability[] { _portletDisplayTemplateImportCapability });
}

From source file:com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.AssetPublisherExportImportPortletPreferencesProcessor.java

License:Open Source License

@Override
public List<Capability> getExportCapabilities() {
    return ListUtil.toList(new Capability[] { _assetPublisherPortletDisplayTemplateExportCapability });
}

From source file:com.liferay.asset.publisher.web.internal.exportimport.portlet.preferences.processor.AssetPublisherExportImportPortletPreferencesProcessor.java

License:Open Source License

@Override
public List<Capability> getImportCapabilities() {
    return ListUtil.toList(new Capability[] { _assetPublisherPortletDisplayTemplateImportCapability });
}

From source file:com.liferay.blogs.web.internal.exportimport.portlet.preferences.processor.BlogsExportImportPortletPreferencesProcessor.java

License:Open Source License

@Override
public List<Capability> getExportCapabilities() {
    return ListUtil.toList(new Capability[] { _blogsPortletDisplayTemplateExportCapability });
}