OFBIZ 選單許可權 配置

2021-09-06 07:00:55 字數 3873 閱讀 9442

1、新加的模組分配給使用者許可權組 需要的許可權:

ofbtools_view 訪問庫存ofbiz管理程式的許可權

posmgr_admin pos-管理員 (新加模組管理員許可權)

2、分配某個模組二級選單的許可權

posmgr_admin pos-管理員 (新加模組管理員許可權,肯定要加,沒有這個許可權,連模組都進不了)

security_admin 在安全管理螢幕中的全部操作。(進入到模組下選單的許可權)

***screen.xml **:

<

screen

name

="showtransactionmgr"

>

<

section

>

<

actions

>

<

property-map

resource

="posmgruilabels"

map-name

="uilabelmap"

global

="true"

/>

<

set

field

="layoutsettings.stylesheets[+0]"

value

="/images/eshouefu/css/main.css"

global

="true"

/>

<

set

field

="layoutsettings.stylesheets[+0]"

value

="/images/eshouefu/css/wdatepicker.css"

global

="true"

/>

<

set

field

="posmgrtabbuttonitem"

value

="transactionmgr"

/>

actions

>

<

widgets

>

<

decorator-screen

name

="main-decorator"

location

="$"

>

<

decorator-section

name

="pre-body"

>

<

section

>

<

condition

>

<

if-service-permission

service-name

="securitypermissioncheck"

main-action

="view"

/>

condition

>

<

widgets

>

<

include-menu

name

="posmgrtabbar"

location

="component://posmgr/widget/posmgrmenus.xml"

/>

widgets

>

section

>

decorator-section

>

<

decorator-section

name

="body"

>

<

platform-specific

>

<

html

>

<

html-template

location

/>

html

>

platform-specific

>

decorator-section

>

decorator-screen

>

widgets

>

section

>

screen

>

***menu.xml:

<

menu

name

="posmgrtabbar"

default-menu-item-name

="transactionquery"

default-selected-style

="selected"

menu-container-style

="button-bar tab-bar"

type

="******"

selected-menuitem-context-field-name

="tabbuttonitem"

>

<

menu-item

name

="transactionquery"

title

="$"

>

<

condition

>

<

if-has-permission

permission

="posmgr"

action

="_admin"

/>

condition

>

<

link

target

="transactionquery"

/>

menu-item

>

<

menu-item

name

="statementdownload"

title

="$"

>

<

condition

>

<

if-has-permission

permission

="posmgr"

action

="_admin"

/>

condition

>

<

link

target

="statementdownload"

/>

menu-item

>

<

menu-item

name

="statementprint"

title

="$"

>

<

condition

>

<

if-has-permission

permission

="posmgr"

action

="_admin"

/>

condition

>

<

link

target

="statementprint"

/>

menu-item

>

menu

>

OFBiz 選單元件 menu widget 指引

選單元件通常用於生成螢幕主選單欄,類似於main data source campaign tracking segment contact list reports logout o 定義選單 menu item name datasource title link target finddata...

ofbiz 許可權設計詳解

ofbiz 中對許可權做了完備的處理,其實許可權也只是資料表乙個字段,這個欄位與安全組關聯起來,然後將安全組與使用者關聯起來,就是兩個多對多的關係,這樣就實現了許可權的分配。security group 這個表是安全組的表,用來存放安全組,其主要就是乙個groupid欄位 security perm...

戲說 ofbiz 許可權組 角色 控制

ofbiz 裡面的許可權管理 發現大家還是有點迷惑 我舉個例子來幫助大家理解吧 a說 提議 要去 高原看藍天白雲 應用a b說 提議 要去內蒙古看大草原 應用b c說 提議 說要去三亞海邊看海 看美女 應用c d說 還是 去上海野生動物園看猴子吧!應用d 這個比較好舉例子,暫且就先去動物園吧 進動物...