cms.getRequestContext().setSiteRoot(storedSiteRoot); if (res.isFile()) { byte[] historyResourceContent = ((CmsFile)res).getContents(); if ((historyResourceContent == null) || (historyResourceContent.length == 0)) {
cms.getRequestContext().setSiteRoot(storedSiteRoot); if (res.isFile()) { byte[] historyResourceContent = ((CmsFile)res).getContents(); if ((historyResourceContent == null) || (historyResourceContent.length == 0)) {
/** * Constructor from a history resource.<p> * * @param resource the base history resource */ public CmsHistoryFile(I_CmsHistoryResource resource) { this( resource.getPublishTag(), resource.getStructureId(), resource.getResourceId(), resource.getRootPath(), resource.getTypeId(), resource.getFlags(), resource.getProjectLastModified(), resource.getState(), resource.getDateCreated(), resource.getUserCreated(), resource.getDateLastModified(), resource.getUserLastModified(), resource.getDateReleased(), resource.getDateExpired(), resource.getLength(), resource.getDateContent(), resource.getVersion(), resource.getParentId(), resource.isFile() ? ((CmsFile)resource).getContents() : null, resource.getResourceVersion(), resource.getStructureVersion()); }
"" + deleted.getVersion()); String iconPath = OpenCms.getWorkplaceManager().getExplorerTypeSetting( deleted.isFile() ? "unknown_file" : "unknown_folder").getBigIconIfAvailable(); if (explorerType != null) { iconPath = CmsWorkplace.RES_PATH_FILETYPES + explorerType.getBigIconIfAvailable();
/** * Constructor from a history resource.<p> * * @param resource the base history resource */ public CmsHistoryFile(I_CmsHistoryResource resource) { this( resource.getPublishTag(), resource.getStructureId(), resource.getResourceId(), resource.getRootPath(), resource.getTypeId(), resource.getFlags(), resource.getProjectLastModified(), resource.getState(), resource.getDateCreated(), resource.getUserCreated(), resource.getDateLastModified(), resource.getUserLastModified(), resource.getDateReleased(), resource.getDateExpired(), resource.getLength(), resource.getDateContent(), resource.getVersion(), resource.getParentId(), resource.isFile() ? ((CmsFile)resource).getContents() : null, resource.getResourceVersion(), resource.getStructureVersion()); }