Foren
Limit the size of document library of an organization
Khaled Annajar, geändert vor 12 Jahren.
Limit the size of document library of an organization
New Member Beiträge: 3 Beitrittsdatum: 01.01.12 Neueste Beiträge
Hi,
I want to be able to put a disk space limit to a document library of an organization in liferay. Or to be able to measure the disk space taken by an organization.
Is there anything in liferay's API that does that or is there a map between an organization and files on the filesystem that I can use to calculate its size?
I want to be able to put a disk space limit to a document library of an organization in liferay. Or to be able to measure the disk space taken by an organization.
Is there anything in liferay's API that does that or is there a map between an organization and files on the filesystem that I can use to calculate its size?
jelmer kuperus, geändert vor 12 Jahren.
RE: Limit the size of document library of an organization
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste BeiträgeIs there anything in liferay's API that does that
Not that i am aware
or is there a map between an organization and files on the filesystem that I can use to calculate its size?
No but you could create your own implementation of com.liferay.documentlibrary.util.Hook (possibly extend FileSystemHook) to ensure that files that belong to an organisation are saved to it's own folder.
You can register that implementation by using the image.hook.impl property in portal-ext.properties
Khaled Annajar, geändert vor 12 Jahren.
RE: Limit the size of document library of an organization
New Member Beiträge: 3 Beitrittsdatum: 01.01.12 Neueste Beiträge
No but you could create your own implementation of com.liferay.documentlibrary.util.Hook (possibly extend FileSystemHook) to ensure that files that belong to an organisation are saved to it's own folder.
Please could you write some links showing how to develop that implementation?
jelmer kuperus, geändert vor 12 Jahren.
RE: Limit the size of document library of an organization
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
You can take a look at the default FileSystemHook implementation here :
http://svn.liferay.com/repos/public/portal/branches/6.0.6/portal-impl/src/com/liferay/documentlibrary/util/FileSystemHook.java
** use guest as username
http://svn.liferay.com/repos/public/portal/branches/6.0.6/portal-impl/src/com/liferay/documentlibrary/util/FileSystemHook.java
** use guest as username
Jitendra Rajput, geändert vor 12 Jahren.
RE: Limit the size of document library of an organization
Liferay Master Beiträge: 875 Beitrittsdatum: 07.01.11 Neueste Beiträge
http://www.liferay.com/web/minhchau.dang/blog/-/blogs/updating-document-library-hooks
Khaled Annajar, geändert vor 12 Jahren.
RE: Limit the size of document library of an organization
New Member Beiträge: 3 Beitrittsdatum: 01.01.12 Neueste Beiträge
Thanks I'll check it out.