org.springframework.security.taglibs.velocity
Interface Authz

All Known Implementing Classes:
AuthzImpl

public interface Authz


Method Summary
 boolean allGranted(java.lang.String roles)
          all the listed roles must be granted to return true, otherwise false;
 boolean anyGranted(java.lang.String roles)
          any the listed roles must be granted to return true, otherwise false;
 org.springframework.context.ApplicationContext getAppCtx()
          get Spring application context which contains
 java.lang.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
 boolean noneGranted(java.lang.String roles)
          none the listed roles must be granted to return true, otherwise false;
 void setAppCtx(org.springframework.context.ApplicationContext appCtx)
          set Spring application context which contains Acegi related bean
 

Method Detail

allGranted

boolean allGranted(java.lang.String roles)
all the listed roles must be granted to return true, otherwise false;

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

anyGranted

boolean anyGranted(java.lang.String roles)
any the listed roles must be granted to return true, otherwise false;

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

getAppCtx

org.springframework.context.ApplicationContext getAppCtx()
get Spring application context which contains


getPrincipal

java.lang.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

noneGranted

boolean noneGranted(java.lang.String roles)
none the listed roles must be granted to return true, otherwise false;

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

setAppCtx

void setAppCtx(org.springframework.context.ApplicationContext appCtx)
set Spring application context which contains Acegi related bean