@Dependent public class RoleEditorDriver extends Object implements Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
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.
| Constructor and Description |
|---|
RoleEditorDriver(ClientUserSystemManager userSystemManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
edit(org.jboss.errai.security.shared.api.Role role,
RoleEditor roleEditor)
Edit the instance using the given editor.
|
boolean |
flush()
Flush the editors hierarchy states and perform the validations.
|
org.uberfire.client.mvp.PerspectiveActivity |
getHomePerspective() |
org.uberfire.security.authz.PermissionCollection |
getPermissions() |
int |
getRolePriority() |
org.jboss.errai.security.shared.api.Role |
getValue()
The instance after being flush with against the editors hierarchy.
|
void |
show(org.jboss.errai.security.shared.api.Role role,
RoleEditor roleEditor)
Show the instance using the given editor.
|
@Inject public RoleEditorDriver(ClientUserSystemManager userSystemManager)
public void show(org.jboss.errai.security.shared.api.Role role,
RoleEditor roleEditor)
Drivershow in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>role - The instance to show.roleEditor - The viewer for the instance.public void edit(org.jboss.errai.security.shared.api.Role role,
RoleEditor roleEditor)
Driveredit in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>role - The instance to show.roleEditor - The editor for the instance.public boolean flush()
Driverflush in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>public org.jboss.errai.security.shared.api.Role getValue()
DrivergetValue in interface Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>public org.uberfire.client.mvp.PerspectiveActivity getHomePerspective()
public int getRolePriority()
public org.uberfire.security.authz.PermissionCollection getPermissions()
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.