org.granite.client.tide.javafx.spring
Class Identity

java.lang.Object
  extended by org.granite.client.tide.impl.ComponentImpl
      extended by org.granite.client.tide.javafx.BaseIdentity
          extended by org.granite.client.tide.javafx.spring.Identity
All Implemented Interfaces:
InvocationHandler, ContextAware, Identity, NameAware, Component, ExceptionHandler

@Named
public class Identity
extends BaseIdentity

Author:
William DRAI

Constructor Summary
protected Identity()
           
  Identity(ServerSession serverSession)
           
 
Method Summary
 void clearSecurityCache()
          Clear the security cache
 ObservablePermission hasPermission(Object entity, String action)
           
 ObservableRole hasRole(String roleName)
           
 ObservableRole ifAllGranted(String roleName)
           
 ObservableRole ifAnyGranted(String roleName)
           
 ObservableRole ifNotGranted(String roleName)
           
protected  void initSecurityCache()
           
 
Methods inherited from class org.granite.client.tide.javafx.BaseIdentity
accepts, checkLoggedIn, getUsername, handle, isLoggedIn, loggedInProperty, login, logout, setLoggedIn, usernameProperty
 
Methods inherited from class org.granite.client.tide.impl.ComponentImpl
call, callComponent, getContext, getName, getServerSession, invoke, invoke, setContext, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Identity

protected Identity()

Identity

public Identity(ServerSession serverSession)
Method Detail

hasRole

public ObservableRole hasRole(String roleName)
Specified by:
hasRole in class BaseIdentity

ifAllGranted

public ObservableRole ifAllGranted(String roleName)

ifAnyGranted

public ObservableRole ifAnyGranted(String roleName)

ifNotGranted

public ObservableRole ifNotGranted(String roleName)

hasPermission

public ObservablePermission hasPermission(Object entity,
                                          String action)

initSecurityCache

protected void initSecurityCache()
Specified by:
initSecurityCache in class BaseIdentity

clearSecurityCache

public void clearSecurityCache()
Clear the security cache

Specified by:
clearSecurityCache in class BaseIdentity