ezPublish as Document Management System

Author Message

John Smith

Wednesday 19 July 2006 6:31:42 am

hi there,

I got two questions regarding ezpublish 3.6.1 which will help me to use the software as Document Managment System.

1. Managing Disk Space/Quota.

Can Quota system be set on the software. For e.g. the member A can only be allowed to use 20MB space and another member can only be allowed to use 10MB, something like that.

2. Integration of Antivirus.

Would it be possible to integrate Antivirus into ezpublish, so the documents get scanned before and after uploading/downloading.

Smith.

Egil Fujikawa Nes

Wednesday 19 July 2006 9:10:00 pm

Hi

1.I'm not sure, but I don't thing it's any possibility for quota in eZ publish. It would be nice if somebody else could confirm this:
http://ez.no/community/forum/install_configuration/limiting_data_resources/re_limiting_data_resources

2.Yes it exist antivirus of eZ publish. Björn Dieding in Xrow have made a ClamAV integration that can be found here:
http://ez.no/community/contribs/applications/antivirus_clamav_integration

Best regards
Egil Fujikawa Nes

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

John Smith

Thursday 20 July 2006 2:24:35 am

ezCrew - Any thoughts????

Hi there,

>>>1.I'm not sure, but I don't thing it's any possibility for quota in eZ publish. It would be nice if somebody else could confirm this:
http://ez.no/community/forum/inst...resources/re_limiting_data_resources

So this means it is not possible to limit the users on the intranet for how much disk space they can use. If anybody else knows this, please confirm.

>>>2.Yes it exist antivirus of eZ publish. Björn Dieding in Xrow have made a ClamAV integration that can be found here:
http://ez.no/community/contribs/a...cations/antivirus_clamav_integration

Thanks I know that extension, but is that extension applicable to both uploading/downloading?

Smith

Björn Dieding@xrow.de

Thursday 20 July 2006 5:54:45 am

Hi my antivirus stuff currently just applies for download, but it not hard to implement this for upload too.

Towards the quota: everything is possible... not in there yet, but that's why we code everyday...

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

John Smith

Monday 14 August 2006 5:06:10 am

Any roadmap for "Quota System" in ezpublish?

John Smith

Thursday 01 February 2007 7:02:03 am

Any Luck with Quota System in ezpubish 3.9.x.

Cheers

Smith

Luke Barton

Thursday 01 February 2007 6:41:59 pm

John,

Just an un-tested idea...(this assumes that users are uploading docs outside of the admin interface):

1. Add 2 fields to the user class: max_storage, current_storage. Set a max_storage for each user based on a default and any other business rules that may inform that number.

2. Each time a user uploads a doc, add that file size to the current_storage attribute of that user.

3. Step 2 implies that before presenting a user with an upload form, check to see if current_storage is less than max_storage. If so, present the form; otherwise alert the user of their maximum usage.

4. If a user goes a bit over, that's probably ok.

I don't know how to check the filesize of a doc when uploading (but I'm sure someone does), but I know it's easy to query the filesize of a doc in the system.

Hope this helps. Good luck.

-Luke

John Smith

Friday 02 February 2007 2:17:10 am

Hi Luke,

Thanks for your kind feedback. What I am trying to achieve is to restrict the users with the quota system.

With the help of New Custom Edit Handler, newly registered users should have their own folders in the content structure. Here I want to apply quota system to each of the personal folders.

In the folder, once logged in, they can create sub folders, articles, upload files, images etc. but want to restrict them when they exceed their quota.

Hope someone can help me to achieve this.

Cheers

Smith

Xavier Dutoit

Friday 02 February 2007 3:25:16 am

Well, you can fetch all the files updated, sum the size and based on that decide if they are above quota.

If it takes too long (doubt so, but never dug ezfile attribute enough to know how quick it is), you can write a custom template function, or cronjob it.

X+

http://www.sydesy.com

John Smith

Friday 02 February 2007 3:55:44 am

Hi Xavier,

Thanks for your help.

>>>Well, you can fetch all the files updated, sum the size and based on that decide if they are above quota.

I think that can be done in the same extension which I am using for creating a personal folder.
Am I right?

>>>If it takes too long (doubt so, but never dug ezfile attribute enough to know how quick it is), you can write a custom template function, or cronjob it.

I can't understand this bit. Would it be possible for you to explain me this point bit more in details.

Cheers

Smith

Lazaro Ferreira

Thursday 28 June 2007 8:30:51 am

Hi all

We have seen Björn antivirus stuff for download, it implements an ezbinaryhandler. We need something like this to check the upload of MS Word files.

After researching ezbinaryhandler it seems not ready to support upload (at least in version 3.8.6 ) , on the other hand, We think it is possible to use eZContentUploadHandler to do the job

My question is, which approach do you recomend to implement Björn antivirus stuff for uploads of MS Word Files ?

Regards

Lazaro
http://www.mzbusiness.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:24:40
Script start
Timing: Jan 18 2025 16:24:40
Module start 'layout'
Timing: Jan 18 2025 16:24:40
Module start 'content'
Timing: Jan 18 2025 16:24:40
Module end 'content'
Timing: Jan 18 2025 16:24:40
Script end

Main resources:

Total runtime0.0122 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.0078152.6250
Module start 'layout' 0.00450.0024 740.632839.4453
Module start 'content' 0.00680.0038 780.0781101.3047
Module end 'content' 0.01060.0016 881.382846.3047
Script end 0.0122  927.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002117.4159140.0002
Check MTime0.00107.7921140.0001
Mysql Total
Database connection0.00043.530710.0004
Mysqli_queries0.002117.408130.0007
Looping result0.00000.091610.0000
Template Total0.001310.910.0013
Template load0.00076.120310.0007
Template processing0.00064.756310.0006
Override
Cache load0.00064.602410.0006
General
dbfile0.00021.806380.0000
String conversion0.00000.042940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs