摘 要:在Web應(yīng)用軟件中,權(quán)限管理是常見的功能,不同用戶具有不同的軟件使用權(quán)限,系統(tǒng)根據(jù)登錄用戶的角色來完成權(quán)限的審定,從而進(jìn)入用戶的軟件使用界面。在實際應(yīng)用中,登錄用戶的權(quán)限有時會根據(jù)實際情況發(fā)生變化,從而需要調(diào)整相應(yīng)的用戶權(quán)限,常規(guī)的權(quán)限管理無法適應(yīng)權(quán)限的動態(tài)變化。為解決這種問題,設(shè)計了一種高效的權(quán)限管理方案,利用該方案實現(xiàn)了用戶權(quán)限的動態(tài)管理,該設(shè)計方案已用于實際的軟件項目中,極大地提高了權(quán)限管理的靈活性、方便性和高效性。
關(guān)鍵詞:Web應(yīng)用軟件; 用戶權(quán)限; 動態(tài)管理; 權(quán)限組; 權(quán)限管理方案
中圖分類號:TP393.09 文獻(xiàn)標(biāo)識碼:A
文章編號:1004-373X(2010)12-0047-04
Design and Accomplishment of Dynamic Authority Management Based on Web Software
ZHANG Zhi-qiang, YE An-sheng, GU Mu-song
(College of Information Science and Technology, Chengdu University, Chengdu 610106, China)
Abstract:The authority management is a rather common function in the Web applied software. Since different users possess different limits of authority, the system examines and approves a user′s limits of authority according to his role, and then allows him to enter the user interface. Sometimes the authority of the user who logins in may vary according to the actual situation, thus the user′s authority also need to be adjusted. As the common management of authority cannot adapt to the dynamic changes of authority, in order to manage the users′ authority, a more effective plan which can bring about a dynamic management of users′ authority was designed. The plan has already been applied to some practical software projects and has greatly improved the adaptability, convenience and effectiveness of the authority management.
Keywords:Web software; authority of user; dynamic management; authority group; plan of authority management
0 引 言
在Web應(yīng)用軟件中,權(quán)限管理是軟件常見的功能,不同的用戶具有不同的權(quán)限使用軟件,當(dāng)用戶登錄系統(tǒng)時,系統(tǒng)會根據(jù)登錄用戶的角色確定登錄用戶的權(quán)限,根據(jù)用戶的權(quán)限進(jìn)入不同的軟件界面。在軟件的實際應(yīng)用中,有時需要改變用戶的權(quán)限,常見的權(quán)限管理一般是通過對角色的切換來完成的。角色種類與權(quán)限一般在軟件的前期設(shè)計中就已經(jīng)確定,當(dāng)角色種類與權(quán)限確定后就不容易改變,否則需要更改整個軟件的設(shè)計方案,這就是常規(guī)的角色管理,常規(guī)的角色管理無法靈活地適應(yīng)實際情況的變化。為解決該缺陷,能夠靈活地適應(yīng)權(quán)限的變化,在軟件的權(quán)限管理中需要以動態(tài)方式管理和維護(hù)角色,從而達(dá)到動態(tài)設(shè)置用戶權(quán)限的目的。……