Liferay Control Panel adds basic document process analysis to the specified folder

Source: Internet
Author: User

Conclusion:

When you log in with an administrator in Liferay, navigate to Control Panel->documents and Media, and add basicdocument under the specified folder, the server does the following things:

(1) Add a record to the Dlfileentry table to represent the added document.

(2) Add a record in the Dlfileentryversion table and associate it to the Dlfileentry table through the Fileentryid foreign key to record the version information of the newly added document.

(3) Update the timestamp of the latest post submission in the Dlfolder table.

(4) According to the server for the specific implementation of Com.liferay.portlet.documentlibrary.store, the file virus scanning first (in the portal.properties has a switch), The uploaded resource file is then saved to a specific location in the store.

There are 5 implementations in the store, and I can at least guarantee that if you use Filesystemstore, the resource file is put into the $liferay_home/data/document_library directory, and the end file name is no longer the file name of the upload, but <version_number>. If you are using Dbstore, the resource file will eventually be placed in the Database Dlcontent table, and resource files (such as pictures) are stored as blobs.

(5) Add a record in the Assetentry table, which is associated with the dlfileentry through the CLASSPK foreign key, because file is an asset, so you must also leave a record in this table.

Specific analysis:

Liferay Control Panel, when you create a folder, and then add a basic Document to it:

To view the browser debug information:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.