
META-INF.resources.document_library.folder_columns.jspf Maven / Gradle / Ivy
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%
int curFoldersCount = 0;
int curFileEntriesCount = 0;
boolean repositoryAccess = true;
try {
curFoldersCount = DLAppServiceUtil.getFoldersCount(curFolder.getRepositoryId(), curFolder.getFolderId());
curFileEntriesCount = DLAppServiceUtil.getFileEntriesAndFileShortcutsCount(curFolder.getRepositoryId(), curFolder.getFolderId(), status);
}
catch (RepositoryException re) {
_log.error(re.getMessage());
}
catch (Exception e) {
repositoryAccess = false;
row.setClassName("repository-error");
}
for (int j = 0; j < folderColumns.length; j++) {
String folderColumn = folderColumns[j];
%>
<%
String align = SearchEntry.DEFAULT_ALIGN;
if ((j + 1) == folderColumns.length) {
align = "right";
}
%>
<%
AssetRendererFactory> assetRendererFactory = AssetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName(DLFolder.class.getName());
AssetRenderer> assetRenderer = assetRendererFactory.getAssetRenderer(curFolder.getFolderId());
%>
<%
List subfolders = new ArrayList();
try {
subfolders = DLAppServiceUtil.getFolders(curFolder.getRepositoryId(), curFolder.getFolderId(), 0, 5);
}
catch (Exception e) {
}
%>
<%
boolean isLocked = curFolder.isLocked();
%>
<%
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy