Fórum

Automated Sync files from server to Liferay document library?

Colorado Techie, modificado 11 Anos atrás.

Automated Sync files from server to Liferay document library?

New Member Postagens: 2 Data de Entrada: 30/07/12 Postagens Recentes
I have a folder on a server that receives one file per day as part of an automated process.

I have a document library in Liferay where I want to have a copy of these files and I don't want to have to manually upload the new files into my liferay document library.

I'm brand new to Liferay and I'm not sure what options I have.

Here is what I've tried researching (in each of these I would write a service that would scan the folder on my server for new files every day, if it found one, I try to do one of the following):

  • Email my file(s) as attachments and have that file show up in my document library
  • Post my files to a web DAV url that corresponded to my liferay document library
  • Copy my files to a file share on the Liferay server that corresponded to my liferay document library
  • Use LifeRay sync to sync my files my liferay document library


Unfortunately, I'm stuck.

I've looked into the web-dav URL option but whenever I go to the Web DAV url that liferay gives me I login and then I get "Error 404" - http://i.imgur.com/h9wRt.png . I think there might be a misconfiguration somewhere?

I've looked into emailing my files to an email address that represents my document library but I can't find anything.

I've downloaded and installed LifeRay sync, but I don't see the site in the sites list that contains the document library I want to sync. I don't know why it doesn't show up... perhaps my "site" isn't really a site? Perhaps I don't have permissions? I say this because when I go to "control panel" then I click "Sites" in the left nav, I don't see it in the site list. (See http://i.imgur.com/WfJay.png ) BUT when I type in the URL directly ( https://myliferaysite.com/group/ABCTest I can access the site, browse to the document library, and upload the files through the browser.

I think the Liferay sync might be the easiest to set up, but I can't seem to get this working. It seems the WebDAV URL option seems promising, but I get that 404 error in IE and I keep getting a authentication window in MS Word - see http://i.imgur.com/LfoEH.png .

My broad question is, can someone help me?

My specific questions are:
Why won't the my "ABCTest" site show up in the site list?
Why am I getting a 404 error on the WEB DAV Url? (Or, what is the best way to test if the web DAV url is working?)
Is there built-in functionality to email a file to an email address and have the attachments show up in my document library?
Can I do any of this without writing a lot of java/liferay code?

Thanks~!
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Automated Sync files from server to Liferay document library?

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Colorado Techie:

  • Email my file(s) as attachments and have that file show up in my document library
  • Post my files to a web DAV url that corresponded to my liferay document library
  • Copy my files to a file share on the Liferay server that corresponded to my liferay document library
  • Use LifeRay sync to sync my files my liferay document library



I'd add using Liferay WebServices to this list.

Colorado Techie:

I've looked into the web-dav URL option but whenever I go to the Web DAV url that liferay gives me I login and then I get "Error 404" - http://i.imgur.com/h9wRt.png . I think there might be a misconfiguration somewhere?


Nop, you need a webdav client. Ubuntu and Windows have their own WebDav client, but you can't browse this using your Internet browser.

Colorado Techie:

I've looked into emailing my files to an email address that represents my document library but I can't find anything.


Guess you're right and this feature doesn't exist.

Colorado Techie:

I've downloaded and installed LifeRay sync, but I don't see the site in the sites list that contains the document library I want to sync. I don't know why it doesn't show up... perhaps my "site" isn't really a site? Perhaps I don't have permissions? I say this because when I go to "control panel" then I click "Sites" in the left nav, I don't see it in the site list. (See http://i.imgur.com/WfJay.png ) BUT when I type in the URL directly ( https://myliferaysite.com/group/ABCTest I can access the site, browse to the document library, and upload the files through the browser.

Liferay Sync "free" version only let users to add one and only one site. You have to choose this site in the installer wizard. You have to buy the EE license to have unlimited Site associated to one Sync install.
Colorado Techie, modificado 11 Anos atrás.

RE: Automated Sync files from server to Liferay document library?

New Member Postagens: 2 Data de Entrada: 30/07/12 Postagens Recentes
Okay, I've found some more options...

Question: if my document library portlet is configured to use "dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook" in the portal.properties file, can I just put files into the correct directory on the file system?

If I can just put files in that directory on the file system, then I wouldn't have to worry about using (or coding) liferay features... I can just copy the file to the correct directory.

Thanks~!
thumbnail
Juan Gonzalez P, modificado 11 Anos atrás.

RE: Automated Sync files from server to Liferay document library?

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Colorado Techie:
Okay, I've found some more options...

Question: if my document library portlet is configured to use "dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook" in the portal.properties file, can I just put files into the correct directory on the file system?

If I can just put files in that directory on the file system, then I wouldn't have to worry about using (or coding) liferay features... I can just copy the file to the correct directory.

Thanks~!


Mmm guess you can't because Liferay creates files with special names and directories and afterwards you'll have to add it manually in Liferay tables, so guess isn't an option.