access fixed within template
This commit is contained in:
parent
de8db15928
commit
3f57d63fba
1 changed files with 11 additions and 9 deletions
|
@ -227,7 +227,9 @@ public class ConfigTemplateForm implements TemplateComposer {
|
||||||
.withFilter(this.groupFilter)
|
.withFilter(this.groupFilter)
|
||||||
.sortable()
|
.sortable()
|
||||||
.widthProportion(1))
|
.widthProportion(1))
|
||||||
.withDefaultAction(pageActionBuilder
|
.withDefaultActionIf(
|
||||||
|
() -> modifyGrant,
|
||||||
|
() -> pageActionBuilder
|
||||||
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_EDIT)
|
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_EDIT)
|
||||||
.withParentEntityKey(entityKey)
|
.withParentEntityKey(entityKey)
|
||||||
.create())
|
.create())
|
||||||
|
@ -249,7 +251,7 @@ public class ConfigTemplateForm implements TemplateComposer {
|
||||||
attrTable::getSelection,
|
attrTable::getSelection,
|
||||||
PageAction::applySingleSelectionAsEntityKey,
|
PageAction::applySingleSelectionAsEntityKey,
|
||||||
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
||||||
.publishIf(attrTable::hasAnyContent, false)
|
.publishIf(() -> attrTable.hasAnyContent() && modifyGrant, false)
|
||||||
|
|
||||||
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_SET_DEFAULT)
|
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_SET_DEFAULT)
|
||||||
.withParentEntityKey(entityKey)
|
.withParentEntityKey(entityKey)
|
||||||
|
@ -258,7 +260,7 @@ public class ConfigTemplateForm implements TemplateComposer {
|
||||||
action -> this.resetToDefaults(action, attrTable),
|
action -> this.resetToDefaults(action, attrTable),
|
||||||
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
||||||
.noEventPropagation()
|
.noEventPropagation()
|
||||||
.publishIf(attrTable::hasAnyContent, false)
|
.publishIf(() -> attrTable.hasAnyContent() && modifyGrant, false)
|
||||||
|
|
||||||
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_LIST_REMOVE_VIEW)
|
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_LIST_REMOVE_VIEW)
|
||||||
.withParentEntityKey(entityKey)
|
.withParentEntityKey(entityKey)
|
||||||
|
@ -267,7 +269,7 @@ public class ConfigTemplateForm implements TemplateComposer {
|
||||||
action -> this.removeFormView(action, attrTable),
|
action -> this.removeFormView(action, attrTable),
|
||||||
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
||||||
.noEventPropagation()
|
.noEventPropagation()
|
||||||
.publishIf(attrTable::hasAnyContent, false)
|
.publishIf(() -> attrTable.hasAnyContent() && modifyGrant, false)
|
||||||
|
|
||||||
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_LIST_ATTACH_DEFAULT_VIEW)
|
.newAction(ActionDefinition.SEB_EXAM_CONFIG_TEMPLATE_ATTR_LIST_ATTACH_DEFAULT_VIEW)
|
||||||
.withParentEntityKey(entityKey)
|
.withParentEntityKey(entityKey)
|
||||||
|
@ -276,7 +278,7 @@ public class ConfigTemplateForm implements TemplateComposer {
|
||||||
action -> this.attachView(action, attrTable),
|
action -> this.attachView(action, attrTable),
|
||||||
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
EMPTY_ATTRIBUTE_SELECTION_TEXT_KEY)
|
||||||
.noEventPropagation()
|
.noEventPropagation()
|
||||||
.publishIf(attrTable::hasAnyContent, false);
|
.publishIf(() -> attrTable.hasAnyContent() && modifyGrant, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
pageActionBuilder
|
pageActionBuilder
|
||||||
|
|
Loading…
Add table
Reference in a new issue