Class BaseUserEditorWorkflow
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.editor.user.workflow.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 Summary
Fields Modifier and Type Field Description protected ChangePasswordchangePasswordprotected ConfirmBoxconfirmBoxprotected javax.enterprise.event.Event<DeleteUserEvent>deleteUserEventprotected org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message>errorCallbackprotected javax.enterprise.event.Event<OnErrorEvent>errorEventprotected booleanisDirtyprotected LoadingBoxloadingBoxprotected javax.enterprise.event.Event<SaveUserEvent>saveUserEventprotected org.jboss.errai.security.shared.api.identity.Useruserprotected UserEditoruserEditorprotected org.uberfire.ext.security.management.client.editor.user.UserEditorDriveruserEditorDriverprotected org.uberfire.ext.security.management.client.ClientUserSystemManageruserSystemManagerEntityWorkflowViewviewprotected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent>workbenchNotification
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterSave(String id)com.google.gwt.user.client.ui.WidgetasWidget()protected voidcheckClear()protected voidcheckDirty(org.uberfire.mvp.Command callback)protected booleancheckEventContext(ContextualEvent contextualEvent, Object context)voidclear()protected voiddoAssignGroups(org.uberfire.mvp.Command callback)protected voiddoAssignRoles(org.uberfire.mvp.Command callback)protected voiddoChangePassword()protected voiddoDelete()protected voiddoSave()protected voiddoSaveRemoteServiceCall(org.jboss.errai.common.client.api.RemoteCallback<org.jboss.errai.security.shared.api.identity.User> callback)protected voiddoShow(String userId)protected voiddoShowEditorView()protected voidedit()protected Set<String>getGroupNames()protected Set<String>getRoleNames()protected StringgetSaveButtonText()UserEditorgetUserEditor()protected voidhideLoadingBox()booleanisDirty()protected voidonCancel()protected voidonSave()protected voidsetDirty(boolean isDirty)protected voidshowError(Throwable throwable)protected voidshowLoadingBox()protected voidshowPasswordPopup(ChangePassword.ChangePasswordCallback callback)
-
-
-
Field Detail
-
view
public EntityWorkflowView view
-
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
-
confirmBox
protected ConfirmBox confirmBox
-
userEditor
protected UserEditor userEditor
-
userEditorDriver
protected org.uberfire.ext.security.management.client.editor.user.UserEditorDriver userEditorDriver
-
changePassword
protected ChangePassword changePassword
-
loadingBox
protected LoadingBox loadingBox
-
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:
asWidgetin interfacecom.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()
-
showPasswordPopup
protected void showPasswordPopup(ChangePassword.ChangePasswordCallback callback)
-
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()
-
-