Class AbstractEntityActionsFactory
java.lang.Object
ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
ch.tocco.nice2.netui.impl.actions.entityoperation.AbstractEntityActionsFactory
- All Implemented Interfaces:
ActionFactory
- Direct Known Subclasses:
AbstractListEntityActionsFactory
,CreateFromRelationEntityActionsFactory
,MainCreateEntityActionsFactory
,MainCreateStoreAsTemplateActionsFactory
,MainUpdateEntityActionsFactory
,MassMutationActionFactory
,ModalCreateEntityActionsFactory
,ModalCreateLoadTemplateActionsFactory
,ModalUpdateEntityActionsFactory
Factory for the default entity actions like "create", "delete", "copy" and "store".
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.slf4j.Logger
protected final PersistPermissionService
Fields inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
actionBuilder
Fields inherited from interface ch.tocco.nice2.netui.spi.actions.ActionFactory
DISABLE_ACTION, HIGH_PRIORITY, LOW_PRIORITY, PERFORM_DENIED_KEY, REMOVE_ACTION
-
Constructor Summary
ConstructorDescriptionAbstractEntityActionsFactory
(org.slf4j.Logger log, ActionsBuilder actionBuilder, PersistPermissionService persistPermissionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected SeparatorModel
protected ActionModel
create
(String id, String name, boolean enabled, @Nullable String emPermission, String entityPermission, String icon) protected ActionModel
create
(String id, String name, boolean enabled, @Nullable String emPermission, String entityPermission, String icon, int pos) createAction
(String id) @Nullable Collection
<ActionModel> createActions
(Situation situation) Create a newActionGroupModel
for the specified situation.createGroup
(String id) protected abstract ActionGroupModel
getPrivileged
(Situation situation) protected abstract boolean
protected ActionGroupModel
makeGroup
(List<ActionModel> actionList) protected void
removeForbidden
(Situation situation, ActionGroupModel gr) Methods inherited from class ch.tocco.nice2.netui.spi.actions.AbstractActionFactory
addSeparator, addToList, asCollection, getEntityName, getPrimaryKey, isEntity, isForm, isPlace, isScope, isScreen
-
Field Details
-
log
protected final org.slf4j.Logger log -
persistPermissionService
-
-
Constructor Details
-
AbstractEntityActionsFactory
public AbstractEntityActionsFactory(org.slf4j.Logger log, ActionsBuilder actionBuilder, PersistPermissionService persistPermissionService)
-
-
Method Details
-
createActions
Description copied from interface:ActionFactory
Create a newActionGroupModel
for the specified situation.- Returns:
null
if this factory provides no actions for this situation.
-
createAction
-
createGroup
-
create
-
create
-
create
-
removeForbidden
-
isForMe
-
getPrivileged
-
makeGroup
-