org.cruxframework.crux.core.client.permission
Class DefaultPermissionsUIHandler

java.lang.Object
  extended by 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

Constructor Summary
DefaultPermissionsUIHandler()
           
 
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
 

Constructor Detail

DefaultPermissionsUIHandler

public DefaultPermissionsUIHandler()
Method Detail

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.