文件管理系统。 [英] Document Management System.

查看:73
本文介绍了文件管理系统。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在开展一个项目,我需要应用程序才能拥有一些文档管理功能。我正在看的一些功能如下:



1.用户可以上传各种类型的文件(主要是文档文件,例如文档,演示文稿,电子表格,文本文档等等。



2.他/她应该能够通过某些标签进行分类,或者应该具有单独文件夹中的功能。



3.我已经创建了文件上传工具。目前我将用户上传的文件存储在文件系统中。每个用户的文件保存在一起的位置。有没有更好的方法将它们保存在单独的用户智能目录中,或者我应该使用任何数据库存储方案......?分离是为了安全性和更好的可管理性。



4.用户应该能够随时检索文件。



我遇到了一些现成的解决方案,可以做这些事情(Sharpoint,DotnetNuke,MojoPortal等等)但是我更热衷于理解DMS的核心概念并在本地C#中构建自定义的东西。



如果有人能给我一个良好的开端,一些例子或用于构建这种解决方案的类和资源将会有很大的帮助。





谢谢和问候,

Jaydeep

Hi,

I'm working on a project where I need the application to have some document management capabilities. Some of the features I'm looking at are like:

1. User can upload various types of files(majorly document files e.g. document,presentation,spreadsheets,text document, etc.).

2. He/She should be able to categorize through some tags or should be given functionality to have in separate folders.

3. I've created the file upload facility. Currently I'm storing the user uploaded file in a file system. Where each user's files are kept together. Is there a better way to keep them in separate user wise directories or should I use any DB storage scenario...?? Separation is for security and better manageability.

4. User should be able to retrieve a file whenever he needs.

I came across some of the ready made solutions which can do such things like (Sharpoint, DotnetNuke, MojoPortal, etc..) But I'm more keen into understanding the core concepts of DMS and build something custom in native C#.

If anyone can give me a good head-start, some examples or the classes and resources used to build such solution would be of great help.


Thanks & Regards,
Jaydeep

推荐答案

我之前在LAMP做过类似的项目。这些是我的建议:



1.使用文件系统作为文件存储。

2.为每个用户创建一个单独的主文件夹。此主文件夹名称可以基于用户的唯一登录ID。

3.当用户创建类别或标签时,它们将作为子文件夹添加到其主文件夹中。



通过这种方式,只有经过身份验证的用户才能访问自己的主文件夹及其中的所有内容。
I have done a similar project before in LAMP. These are my suggestion:

1. Use file system as the storage of documents.
2. Create a separate main folder for each user. This main folder name could be based on the unique sign-in id of the user.
3. When a user creates a category or tag , they will be added as a sub-folder in his main folder.

In this way, only authenticated user can access his own main folder and everything in it.


如果您的应用程序用户不是您的服务器/机器用户(用户通过您的自定义/会员数据库管理)然后需要做一些事情来提高安全性。



步骤1>您可以创建/选择机器/服务器用户并访问权限(读取/修改)到您可以存储用户文档的目录的根目录。



步骤2>创建/管理根目录下的所有子目录,包括用户和文档类别。例如

d:\documents> u001> hrm> habibcv.docx

这里的文件是根目录,u001是唯一的用户id,hrm是文件类别,habibcv.docx是文件。在这种情况下,您将为应用程序部署时创建文档目录。剩余目录需要在用户上传文档时创建(如果子目录不存在)

另一种组织目录结构的方式

d:\documents> hrm> u001> habibcv.docx

在这种情况下,部署应用程序时将创建文档和所有类别目录。当用户上传文档(如果不存在目录)时,将在运行时创建剩余用户目录。



步骤3>从您的应用程序运行时,您可以模拟您的应用程序用户到该机器用户访问(创建目录,读/写文件等)文件系统目录。
If your application users are not your server/machine users (users manage by your custom/membership database) then need to do something for better security.

Step 1> You can create/select a machine/server user and access permission(read/modify) to the root of the directory where you can store users document.

Step 2> Create/manage all sub directories under that root dirctory accroding to user and document category. for example
d:\documents > u001 > hrm > habibcv.docx
Here documents is the root directory, u001 is the unique user id, hrm is the document category, habibcv.docx is the document. In this case you will create documents directory for application deployment time. Remaining directory need to create when user upload document (if sub directories does not exists)
Another way you can organize your directory structure
d:\documents > hrm > u001 > habibcv.docx
in this case documents and all category directory will be created when application is deployed. Remaining users directory will be created at run-time when user upload document (if not exists directory)

step 3> Runtime from your application, you can impersonate your application user to that machine user for accessing (create directory, read/write files etc) that file-system directories.


这篇关于文件管理系统。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆