Forums / General / ezPublish as Document Management System

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

eZ debug

Timing: Jan 18 2025 14:56:24
Script start
Timing: Jan 18 2025 14:56:24
Module start 'content'
Timing: Jan 18 2025 14:56:25
Module end 'content'
Timing: Jan 18 2025 14:56:25
Script end

Main resources:

Total runtime1.5480 sec
Peak memory usage4,096.0000 KB
Database Queries226

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.8594180.8359
Module start 'content' 0.00621.3655 769.6953783.9922
Module end 'content' 1.37170.1762 1,553.6875349.3125
Script end 1.5479  1,903.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2584210.0002
Check MTime0.00160.1025210.0001
Mysql Total
Database connection0.00080.049010.0008
Mysqli_queries1.454593.95962260.0064
Looping result0.00220.14372240.0000
Template Total1.519298.120.7596
Template load0.00230.149220.0012
Template processing1.516897.987220.7584
Template load and register function0.00010.009710.0001
states
state_id_array0.00110.072010.0011
state_identifier_array0.00140.087920.0007
Override
Cache load0.00210.1381780.0000
Sytem overhead
Fetch class attribute can translate value0.00150.096270.0002
Fetch class attribute name0.00110.0688140.0001
XML
Image XML parsing0.00220.144470.0003
class_abstraction
Instantiating content class attribute0.00000.0018140.0000
General
dbfile0.00460.2949390.0001
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 39
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs