Class BaseUserEditorWorkflow

  • All Implemented Interfaces:
    com.google.gwt.user.client.ui.IsWidget
    Direct Known Subclasses:
    UserCreationWorkflow, UserEditorWorkflow

    public abstract class BaseUserEditorWorkflow
    extends Object
    implements com.google.gwt.user.client.ui.IsWidget

    The workflow for editing a user.

    It links the editor & sub-editors components with the editor driver and the remote user services.

    Since:
    0.8.0
    • Field Detail

      • userSystemManager

        protected org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager
      • errorEvent

        protected javax.enterprise.event.Event<OnErrorEvent> errorEvent
      • workbenchNotification

        protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> workbenchNotification
      • deleteUserEvent

        protected javax.enterprise.event.Event<DeleteUserEvent> deleteUserEvent
      • saveUserEvent

        protected javax.enterprise.event.Event<SaveUserEvent> saveUserEvent
      • userEditorDriver

        protected org.uberfire.ext.security.management.client.editor.user.UserEditorDriver userEditorDriver
      • errorCallback

        protected final org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message> errorCallback
      • user

        protected org.jboss.errai.security.shared.api.identity.User user
      • isDirty

        protected boolean isDirty
    • Constructor Detail

      • BaseUserEditorWorkflow

        public BaseUserEditorWorkflow​(org.uberfire.ext.security.management.client.ClientUserSystemManager userSystemManager,
                                      javax.enterprise.event.Event<OnErrorEvent> errorEvent,
                                      javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> workbenchNotification,
                                      javax.enterprise.event.Event<DeleteUserEvent> deleteUserEvent,
                                      javax.enterprise.event.Event<SaveUserEvent> saveUserEvent,
                                      ConfirmBox confirmBox,
                                      UserEditor userEditor,
                                      org.uberfire.ext.security.management.client.editor.user.UserEditorDriver userEditorDriver,
                                      ChangePassword changePassword,
                                      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
      • doShow

        protected void doShow​(String userId)
      • clear

        public void clear()
      • getUserEditor

        public UserEditor getUserEditor()
      • isDirty

        public boolean isDirty()
      • onSave

        protected void onSave()
      • onCancel

        protected void onCancel()
      • doShowEditorView

        protected void doShowEditorView()
      • getSaveButtonText

        protected String getSaveButtonText()
      • setDirty

        protected void setDirty​(boolean isDirty)
      • edit

        protected void edit()
      • doSave

        protected void doSave()
      • doAssignGroups

        protected void doAssignGroups​(org.uberfire.mvp.Command callback)
      • doAssignRoles

        protected void doAssignRoles​(org.uberfire.mvp.Command callback)
      • doSaveRemoteServiceCall

        protected void doSaveRemoteServiceCall​(org.jboss.errai.common.client.api.RemoteCallback<org.jboss.errai.security.shared.api.identity.User> callback)
      • afterSave

        protected void afterSave​(String id)
      • doDelete

        protected void doDelete()
      • doChangePassword

        protected void doChangePassword()
      • getGroupNames

        protected Set<String> getGroupNames()
      • getRoleNames

        protected Set<String> getRoleNames()
      • checkEventContext

        protected boolean checkEventContext​(ContextualEvent contextualEvent,
                                            Object context)
      • showError

        protected void showError​(Throwable throwable)
      • checkClear

        protected void checkClear()
      • checkDirty

        protected void checkDirty​(org.uberfire.mvp.Command callback)
      • showLoadingBox

        protected void showLoadingBox()
      • hideLoadingBox

        protected void hideLoadingBox()