public interface

Authz

org.springframework.security.taglibs.velocity.Authz
Known Indirect Subclasses

Summary

Public Methods
abstract boolean allGranted(String roles)
all the listed roles must be granted to return true, otherwise false;
abstract boolean anyGranted(String roles)
any the listed roles must be granted to return true, otherwise false;
abstract ApplicationContext getAppCtx()
get Spring application context which contains
abstract String getPrincipal()
return the principal's name, supports the various type of principals that can exist in the Authentication object, such as a String or UserDetails instance
abstract boolean noneGranted(String roles)
none the listed roles must be granted to return true, otherwise false;
abstract void setAppCtx(ApplicationContext appCtx)
set Spring application context which contains Acegi related bean

Public Methods

public abstract boolean allGranted (String roles)

all the listed roles must be granted to return true, otherwise false;

Parameters
roles - comma separate GrantedAuthoritys
Returns
  • granted (true|false)

public abstract boolean anyGranted (String roles)

any the listed roles must be granted to return true, otherwise false;

Parameters
roles - comma separate GrantedAuthoritys
Returns
  • granted (true|false)

public abstract ApplicationContext getAppCtx ()

get Spring application context which contains

public abstract String getPrincipal ()

return the principal's name, supports the various type of principals that can exist in the Authentication object, such as a String or UserDetails instance

Returns
  • string representation of principal's name

public abstract boolean noneGranted (String roles)

none the listed roles must be granted to return true, otherwise false;

Parameters
roles - comma separate GrantedAuthoritys
Returns
  • granted (true|false)

public abstract void setAppCtx (ApplicationContext appCtx)

set Spring application context which contains Acegi related bean