Class 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 Detail

      • 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
      • roleEditorDriver

        protected org.uberfire.ext.security.management.client.editor.role.RoleEditorDriver roleEditorDriver
      • 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:
        asWidget in interface com.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()