Class RoleEditorDriver
- java.lang.Object
-
- org.uberfire.ext.security.management.client.editor.role.RoleEditorDriver
-
- All Implemented Interfaces:
Driver<org.jboss.errai.security.shared.api.Role,RoleEditor>
@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.
- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description RoleEditorDriver(ClientUserSystemManager userSystemManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidedit(org.jboss.errai.security.shared.api.Role role, RoleEditor roleEditor)Edit the instance using the given editor.booleanflush()Flush the editors hierarchy states and perform the validations.org.uberfire.client.mvp.PerspectiveActivitygetHomePerspective()org.uberfire.security.authz.PermissionCollectiongetPermissions()intgetRolePriority()org.jboss.errai.security.shared.api.RolegetValue()The instance after being flush with against the editors hierarchy.voidshow(org.jboss.errai.security.shared.api.Role role, RoleEditor roleEditor)Show the instance using the given editor.
-
-
-
Constructor Detail
-
RoleEditorDriver
@Inject public RoleEditorDriver(ClientUserSystemManager userSystemManager)
-
-
Method Detail
-
show
public void show(org.jboss.errai.security.shared.api.Role role, RoleEditor roleEditor)Description copied from interface:DriverShow the instance using the given editor.- Specified by:
showin interfaceDriver<org.jboss.errai.security.shared.api.Role,RoleEditor>- Parameters:
role- The instance to show.roleEditor- The viewer for the instance.
-
edit
public void edit(org.jboss.errai.security.shared.api.Role role, RoleEditor roleEditor)Description copied from interface:DriverEdit the instance using the given editor.- Specified by:
editin interfaceDriver<org.jboss.errai.security.shared.api.Role,RoleEditor>- Parameters:
role- The instance to show.roleEditor- 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.Role,RoleEditor>- Returns:
- The validation violations, if any.
-
getValue
public org.jboss.errai.security.shared.api.Role 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.Role,RoleEditor>- Returns:
- The instance.
-
getHomePerspective
public org.uberfire.client.mvp.PerspectiveActivity getHomePerspective()
-
getRolePriority
public int getRolePriority()
-
getPermissions
public org.uberfire.security.authz.PermissionCollection getPermissions()
-
-