Class BaseRoleEditorWorkflow
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.editor.role.workflow.BaseRoleEditorWorkflow
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
RoleEditorWorkflow
public abstract class BaseRoleEditorWorkflow extends Object implements com.google.gwt.user.client.ui.IsWidget
The workflow for editing a role.
It links the editor & sub-editors components with the editor driver and the remote user services.
- Since:
- 0.9.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jboss.errai.common.client.api.Caller<org.uberfire.backend.authz.AuthorizationService>authorizationServiceprotected ConfirmBoxconfirmBoxprotected org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message>errorCallbackprotected javax.enterprise.event.Event<OnErrorEvent>errorEventprotected booleanisDirtyprotected LoadingBoxloadingBoxprotected org.uberfire.security.authz.PermissionManagerpermissionManagerprotected org.jboss.errai.security.shared.api.Roleroleprotected RoleEditorroleEditorprotected org.uberfire.ext.security.management.client.editor.role.RoleEditorDriverroleEditorDriverprotected javax.enterprise.event.Event<SaveRoleEvent>saveRoleEventprotected org.uberfire.ext.security.management.client.ClientUserSystemManageruserSystemManagerEntityWorkflowViewviewprotected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent>workbenchNotification
-
Constructor Summary
Constructors Constructor Description BaseRoleEditorWorkflow(org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager, org.jboss.errai.common.client.api.Caller<org.uberfire.backend.authz.AuthorizationService> authorizationService, org.uberfire.security.authz.PermissionManager permissionManager, javax.enterprise.event.Event<OnErrorEvent> errorEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> workbenchNotification, javax.enterprise.event.Event<SaveRoleEvent> saveRoleEvent, ConfirmBox confirmBox, RoleEditor roleEditor, org.uberfire.ext.security.management.client.editor.role.RoleEditorDriver roleEditorDriver, LoadingBox loadingBox, EntityWorkflowView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()protected voidcheckDirty(org.uberfire.mvp.Command callback)protected booleancheckEventContext(ContextualEvent contextualEvent, Object context)voidclear()protected voiddoInitView()protected voiddoLoad(String roleName)protected voiddoSave()protected voiddoShow(String roleName)protected voidedit()RoleEditorgetRoleEditor()protected StringgetSaveButtonText()protected voidhideLoadingBox()booleanisDirty()protected voidonCancel()protected voidonSave()protected voidsetDirty(boolean isDirty)protected voidshowLoadingBox()protected voidshowNotification(String message)
-
-
-
Field Detail
-
view
public EntityWorkflowView view
-
userSystemManager
protected org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager
-
authorizationService
protected org.jboss.errai.common.client.api.Caller<org.uberfire.backend.authz.AuthorizationService> authorizationService
-
permissionManager
protected org.uberfire.security.authz.PermissionManager permissionManager
-
errorEvent
protected javax.enterprise.event.Event<OnErrorEvent> errorEvent
-
workbenchNotification
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> workbenchNotification
-
saveRoleEvent
protected javax.enterprise.event.Event<SaveRoleEvent> saveRoleEvent
-
confirmBox
protected ConfirmBox confirmBox
-
roleEditor
protected RoleEditor roleEditor
-
roleEditorDriver
protected org.uberfire.ext.security.management.client.editor.role.RoleEditorDriver roleEditorDriver
-
loadingBox
protected LoadingBox loadingBox
-
errorCallback
protected final org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> errorCallback
-
role
protected org.jboss.errai.security.shared.api.Role role
-
isDirty
protected boolean isDirty
-
-
Constructor Detail
-
BaseRoleEditorWorkflow
public BaseRoleEditorWorkflow(org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager, org.jboss.errai.common.client.api.Caller<org.uberfire.backend.authz.AuthorizationService> authorizationService, org.uberfire.security.authz.PermissionManager permissionManager, javax.enterprise.event.Event<OnErrorEvent> errorEvent, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> workbenchNotification, javax.enterprise.event.Event<SaveRoleEvent> saveRoleEvent, ConfirmBox confirmBox, RoleEditor roleEditor, org.uberfire.ext.security.management.client.editor.role.RoleEditorDriver roleEditorDriver, LoadingBox loadingBox, EntityWorkflowView view)
-
-
Method Detail
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
getRoleEditor
public RoleEditor getRoleEditor()
-
clear
public void clear()
-
isDirty
public boolean isDirty()
-
doShow
protected void doShow(String roleName)
-
doLoad
protected void doLoad(String roleName)
-
onSave
protected void onSave()
-
onCancel
protected void onCancel()
-
doInitView
protected void doInitView()
-
getSaveButtonText
protected String getSaveButtonText()
-
showNotification
protected void showNotification(String message)
-
setDirty
protected void setDirty(boolean isDirty)
-
edit
protected void edit()
-
doSave
protected void doSave()
-
checkEventContext
protected boolean checkEventContext(ContextualEvent contextualEvent, Object context)
-
checkDirty
protected void checkDirty(org.uberfire.mvp.Command callback)
-
showLoadingBox
protected void showLoadingBox()
-
hideLoadingBox
protected void hideLoadingBox()
-
-