Skip to content

Instantly share code, notes, and snippets.

@topolik
Created January 30, 2014 08:11
Show Gist options
  • Save topolik/8704454 to your computer and use it in GitHub Desktop.
Save topolik/8704454 to your computer and use it in GitHub Desktop.
ADT
<ul>
<#if entries?has_content>
<#list entries as curEntry>
<li>${htmlUtil.escape(curEntry.getTitle(locale))}: ${curEntry.getClassName()}, ${curEntry.getMimeType()}</li>
</#list>
</#if>
</ul>
@topolik
Copy link
Author

topolik commented Jan 30, 2014

Result from my DB:

  • quote.png: com.liferay.portlet.documentlibrary.model.DLFileEntry, image/png
  • rss: com.liferay.portlet.journal.model.JournalArticle, text/html
  • xxx: com.liferay.portlet.wiki.model.WikiPage, text/html
  • FrontPage: com.liferay.portlet.wiki.model.WikiPage, text/html
  • '+alert('ⓧⓢⓢ')+'"+alert("ⓧⓢⓢ")+">: com.liferay.portlet.messageboards.model.MBMessage, text/html
  • xxx: com.liferay.portlet.journal.model.JournalArticle, text/html
  • xxx axx '">: com.liferay.portlet.journal.model.JournalArticle, text/html
  • asdfxx: com.liferay.portlet.journal.model.JournalArticle, text/html
  • 000.txt: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • 000000000000000: com.liferay.portlet.documentlibrary.model.DLFileEntry, application/octet-stream
  • test.png: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • get.txt: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • csrfxxx.txt: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • csrf2.txt: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • csrf1.txt: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • csrf.txt: com.liferay.portlet.documentlibrary.model.DLFileEntry, text/plain
  • 123456786: com.liferay.portlet.documentlibrary.model.DLFileEntry, application/octet-stream
  • 123456787: com.liferay.portlet.documentlibrary.model.DLFileEntry, application/octet-stream
  • 123456788: com.liferay.portlet.documentlibrary.model.DLFileEntry, application/octet-stream
  • 123456789: com.liferay.portlet.documentlibrary.model.DLFileEntry, application/octet-stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment