@Override public String getOrderBy() { return StringUtil.merge( ListUtil.toList(_orderByComparators, OrderByComparator::getOrderBy), StringPool.COMMA); }
public DDMFormLayoutColumn(int size, String... ddmFormFieldNames) { _size = size; _ddmFormFieldNames = ListUtil.toList(ddmFormFieldNames); }
@Override public List<XStreamAlias> getXStreamAliases() { return ListUtil.toList(_xStreamAliases); }
@Override public List<Capability> getExportCapabilities() { return ListUtil.toList(new Capability[] {assetExportCapability}); }
@Override public List<Capability> getImportCapabilities() { return ListUtil.toList(new Capability[] {assetImportCapability}); }
@Override public List<XStreamType> getAllowedXStreamTypes() { return ListUtil.toList(_xStreamTypes); }
@Override public List<XStreamAlias> getXStreamAliases() { return ListUtil.toList(_xStreamAliases); }
public static int getFoldersAndArticlesCount(long groupId, Long[] folderIds, int status) throws RemoteException { try { int returnValue = JournalFolderServiceUtil.getFoldersAndArticlesCount(groupId, ListUtil.toList(folderIds), status); return returnValue; } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
public static void getSubfolderIds(Long[] folderIds, long groupId, long folderId, boolean recurse) throws RemoteException { try { JournalFolderServiceUtil.getSubfolderIds(ListUtil.toList(folderIds), groupId, folderId, recurse); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * @deprecated As of Wilberforce (7.0.x), replaced by {@link #getSubfolderIds(List, long, long, boolean)} */ @Deprecated public static void getSubfolderIds(Long[] folderIds, long groupId, long folderId) throws RemoteException { try { JournalFolderServiceUtil.getSubfolderIds(ListUtil.toList(folderIds), groupId, folderId); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
/** * Returns the number of folders containing web content articles belonging * to the group. * * @param groupId the primary key of the web content article's group * @param folderIds the primary keys of the web content article folders (optionally {@link java.util.Collections#EMPTY_LIST}) * @return the number of matching folders containing web content articles */ public static int getFoldersAndArticlesCount(long groupId, Long[] folderIds) throws RemoteException { try { int returnValue = JournalArticleServiceUtil.getFoldersAndArticlesCount(groupId, ListUtil.toList(folderIds)); return returnValue; } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
private void _populateStagedModelTypes( Map<String, String[]> parameterMap, Portlet dataSiteLevelPortlet) { if (!parameterMap.containsKey("stagedModelTypes")) { parameterMap.put("stagedModelTypes", new String[0]); } PortletDataHandler portletDataHandler = dataSiteLevelPortlet.getPortletDataHandlerInstance(); List<StagedModelType> stagedModelTypes = ListUtil.toList( portletDataHandler.getDeletionSystemEventStagedModelTypes()); if (ListUtil.isEmpty(stagedModelTypes)) { return; } String[] parameterStagedModelTypes = parameterMap.get( "stagedModelTypes"); List<String> parameterStagedModelTypesList = ListUtil.toList( parameterStagedModelTypes); for (StagedModelType stagedModelType : stagedModelTypes) { String stagedModelTypeString = stagedModelType.toString(); if (!parameterStagedModelTypesList.contains( stagedModelTypeString)) { parameterStagedModelTypesList.add(stagedModelTypeString); } } parameterMap.put( "stagedModelTypes", parameterStagedModelTypesList.toArray(new String[0])); }
try { int returnValue = JournalArticleServiceUtil.searchCount(companyId, groupId, ListUtil.toList(folderIds), classNameId, keywords, version, ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate);
public List<UpgradeInfo> getUpgradeInfos( String fromVersionString, String toVersionString) { if (!_directedGraph.containsVertex(fromVersionString)) { return Collections.emptyList(); } if (!_directedGraph.containsVertex(toVersionString)) { return Collections.emptyList(); } DijkstraShortestPath<String, UpgradeProcessEdge> dijkstraShortestPath = new DijkstraShortestPath<>( _directedGraph, fromVersionString, toVersionString); List<UpgradeProcessEdge> upgradeProcessEdges = dijkstraShortestPath.getPathEdgeList(); if (upgradeProcessEdges == null) { return Collections.emptyList(); } return ListUtil.toList( upgradeProcessEdges, new Function<UpgradeProcessEdge, UpgradeInfo>() { @Override public UpgradeInfo apply( UpgradeProcessEdge upgradeProcessEdge) { return upgradeProcessEdge.getUpgradeInfo(); } }); }
try { int returnValue = JournalArticleServiceUtil.searchCount(companyId, groupId, ListUtil.toList(folderIds), classNameId, articleId, version, title, description, content, ddmStructureKey, ddmTemplateKey, displayDateGT,
try { int returnValue = JournalArticleServiceUtil.searchCount(companyId, groupId, ListUtil.toList(folderIds), classNameId, articleId, version, title, description, content, ddmStructureKeys, ddmTemplateKeys, displayDateGT,
java.util.List<com.liferay.journal.model.JournalArticle> returnValue = JournalArticleServiceUtil.search(companyId, groupId, ListUtil.toList(folderIds), classNameId, keywords, version, ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT, status, reviewDate, start, end, obc); java.util.List<com.liferay.journal.model.JournalArticle> returnValue = JournalArticleServiceUtil.search(companyId, groupId, ListUtil.toList(folderIds), classNameId, articleId, version, title, description, content, ddmStructureKey, ddmTemplateKey, displayDateGT, displayDateLT, status, java.util.List<com.liferay.journal.model.JournalArticle> returnValue = JournalArticleServiceUtil.search(companyId, groupId, ListUtil.toList(folderIds), classNameId, articleId, version, title, description, content, ddmStructureKeys, ddmTemplateKeys, displayDateGT, displayDateLT, status,
List<Long> categoryIds = ListUtil.toList( categories, AssetCategory.CATEGORY_ID_ACCESSOR);