Class UserEditorDriver
- java.lang.Object
-
- org.uberfire.ext.security.management.client.editor.user.UserEditorDriver
-
- All Implemented Interfaces:
Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
@Dependent public class UserEditorDriver extends Object implements Driver<org.jboss.errai.security.shared.api.identity.User,UserEditor>
It links the user editors hierarchy with the instance edited by flushing the editor's values into the User model.
It contains all logic for editing a User instance by using Editors hierarchy instances, so the editors's concrete widget/component implementation is isolated from the edition logic.
- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description UserEditorDriver(ClientUserSystemManager userSystemManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.errai.security.shared.api.identity.UsercreateNewUser(String identifier)voidedit(org.jboss.errai.security.shared.api.identity.User user, UserEditor userEditor)Edit the instance using the given editor.booleanflush()Flush the editors hierarchy states and perform the validations.org.jboss.errai.security.shared.api.identity.UsergetValue()The instance after being flush with against the editors hierarchy.voidshow(org.jboss.errai.security.shared.api.identity.User user, UserEditor userEditor)Show the instance using the given editor.
-
-
-
Constructor Detail
-
UserEditorDriver
@Inject public UserEditorDriver(ClientUserSystemManager userSystemManager)
-
-
Method Detail
-
createNewUser
public org.jboss.errai.security.shared.api.identity.User createNewUser(String identifier)
-
show
public void show(org.jboss.errai.security.shared.api.identity.User user, UserEditor userEditor)Description copied from interface:DriverShow the instance using the given editor.- Specified by:
showin interfaceDriver<org.jboss.errai.security.shared.api.identity.User,UserEditor>- Parameters:
user- The instance to show.userEditor- The viewer for the instance.
-
edit
public void edit(org.jboss.errai.security.shared.api.identity.User user, UserEditor userEditor)Description copied from interface:DriverEdit the instance using the given editor.- Specified by:
editin interfaceDriver<org.jboss.errai.security.shared.api.identity.User,UserEditor>- Parameters:
user- The instance to show.userEditor- The editor for the instance.
-
flush
public boolean flush()
Description copied from interface:DriverFlush the editors hierarchy states and perform the validations.- Specified by:
flushin interfaceDriver<org.jboss.errai.security.shared.api.identity.User,UserEditor>- Returns:
- The validation violations, if any.
-
getValue
public org.jboss.errai.security.shared.api.identity.User getValue()
Description copied from interface:DriverThe instance after being flush with against the editors hierarchy.- Specified by:
getValuein interfaceDriver<org.jboss.errai.security.shared.api.identity.User,UserEditor>- Returns:
- The instance.
-
-