/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() throws CmsException { List<CmsListItem> ret = new ArrayList<CmsListItem>(); List<I_CmsHistoryResource> list = getCms().readDeletedResources(m_resourcename, m_readTree); Iterator<I_CmsHistoryResource> iter = list.iterator(); while (iter.hasNext()) { I_CmsHistoryResource res = iter.next(); CmsListItem item = getList().newItem(res.getStructureId().toString()); String resourcePath = getCms().getSitePath((CmsResource)res); item.set(LIST_COLUMN_NAME, m_resourcename + "|" + resourcePath); LOG.info("deleted resource list, name = " + m_resourcename + "|" + resourcePath); item.set(LIST_COLUMN_DELETION_DATE, new Date(res.getDateLastModified())); item.set(LIST_COLUMN_VERSION, String.valueOf(res.getVersion())); item.set(LIST_COLUMN_TYPEID, String.valueOf(res.getTypeId())); ret.add(item); } return ret; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List getListItems() throws CmsException { List ret = new ArrayList(); List list = getCms().readDeletedResources(m_resourcename, m_readTree); Iterator iter = list.iterator(); while (iter.hasNext()) { I_CmsHistoryResource res = (I_CmsHistoryResource)iter.next(); CmsListItem item = getList().newItem(res.getStructureId().toString()); String resourcePath = getCms().getSitePath((CmsResource)res); item.set(LIST_COLUMN_NAME, m_resourcename + "|" + resourcePath); item.set(LIST_COLUMN_DELETION_DATE, new Date(res.getDateLastModified())); item.set(LIST_COLUMN_VERSION, String.valueOf(res.getVersion())); item.set(LIST_COLUMN_TYPEID, String.valueOf(res.getTypeId())); ret.add(item); } return ret; }
/** * Constructor from a history resource.<p> * * @param resource the base history resource */ public CmsHistoryFolder(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.getVersion(), resource.getParentId(), resource.getResourceVersion(), resource.getStructureVersion()); }
/** * 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()); }
histRes.getResourceId(), path + resName, histRes.getTypeId(), isFolder, histRes.getFlags(),
histRes.getResourceId(), path + resName, histRes.getTypeId(), isFolder, histRes.getFlags(),
/** * Constructor from a history resource.<p> * * @param resource the base history resource */ public CmsHistoryFolder(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.getVersion(), resource.getParentId(), resource.getResourceVersion(), resource.getStructureVersion()); }
String filetype = String.valueOf(histRes.getTypeId()); String dateLastModified = getMessages().getDateTime(histRes.getDateLastModified()); String datePublished = getMessages().getDateTime(project.getPublishingDate());
String filetype = String.valueOf(histRes.getTypeId()); String dateLastModified = getMessages().getDateTime(histRes.getDateLastModified()); String datePublished = getMessages().getDateTime(project.getPublishingDate());
I_CmsResourceType resType = OpenCms.getResourceManager().getResourceType(deleted.getTypeId()); String typeName = resType.getTypeName(); CmsExplorerTypeSettings explorerType = OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName);
/** * 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()); }