org.cruxframework.crux.core.client.permission
Class DefaultPermissionsUIHandler
java.lang.Object
org.cruxframework.crux.core.client.permission.DefaultPermissionsUIHandler
- All Implemented Interfaces:
- PermissionsUIHandler
public class DefaultPermissionsUIHandler
- extends Object
- implements PermissionsUIHandler
A Default UI handler for user lack of permissions scenarios.
It just set widget enabled property to false and add a dependent styleName to it,
when user can not edit its content.
- Author:
- Thiago da Rosa de Bustamante
|
Method Summary |
void |
markAsUnauthorizedForEdition(com.google.gwt.user.client.ui.HasEnabled widget)
Notify the given widget that current user has no role for edit its contents |
void |
markAsUnauthorizedForViewing(com.google.gwt.user.client.ui.IsWidget widget)
Notify the given widget that current user has no role for view its contents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPermissionsUIHandler
public DefaultPermissionsUIHandler()
markAsUnauthorizedForEdition
public void markAsUnauthorizedForEdition(com.google.gwt.user.client.ui.HasEnabled widget)
- Description copied from interface:
PermissionsUIHandler
- Notify the given widget that current user has no role for edit its contents
- Specified by:
markAsUnauthorizedForEdition in interface PermissionsUIHandler
markAsUnauthorizedForViewing
public void markAsUnauthorizedForViewing(com.google.gwt.user.client.ui.IsWidget widget)
- Description copied from interface:
PermissionsUIHandler
- Notify the given widget that current user has no role for view its contents
- Specified by:
markAsUnauthorizedForViewing in interface PermissionsUIHandler
Copyright © 2014. All rights reserved.