Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.taglibs.velocity
Interface Authz  view Authz download Authz.java

All Known Implementing Classes:
AuthzImpl

public interface Authz

Wrapper the implementation of Acegi Security for Spring JSP tag includes: org.acegisecurity.taglibs.authz.AuthenticationTag, org.acegisecurity.taglibs.authz.AclTag, org.acegisecurity.taglibs.authz.AuthorizeTag

Version:
$Id: Authz.java,v 1.1 2005/12/01 09:38:50 benalex Exp $

Method Summary
 boolean allGranted(java.lang.String roles)
          all the listed roles must be granted to return true, otherwise fasle;
 boolean anyGranted(java.lang.String roles)
          any the listed roles must be granted to return true, otherwise fasle;
 org.springframework.context.ApplicationContext getAppCtx()
          set Spring application context which contains acegi related bean
 java.lang.String getPrincipal()
          return the principal's name, supports the various type of principals that can exist in the org.acegisecurity.Authentication object, such as a String or org.acegisecurity.userdetails.UserDetails instance
 boolean hasPermission(java.lang.Object domainObject, java.lang.String permissions)
          return true if the principal holds either permission specified for the provided domain object
 boolean noneGranted(java.lang.String roles)
          none the listed roles must be granted to return true, otherwise fasle;
 void setAppCtx(org.springframework.context.ApplicationContext appCtx)
          get Spring application context which contains acegi related bean
 

Method Detail

allGranted

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


anyGranted

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


getAppCtx

public org.springframework.context.ApplicationContext getAppCtx()
set Spring application context which contains acegi related bean


getPrincipal

public java.lang.String getPrincipal()
return the principal's name, supports the various type of principals that can exist in the org.acegisecurity.Authentication object, such as a String or org.acegisecurity.userdetails.UserDetails instance


hasPermission

public boolean hasPermission(java.lang.Object domainObject,
                             java.lang.String permissions)
return true if the principal holds either permission specified for the provided domain object

Only works with permissions that are subclasses of net.sf.acegisecurity.acl.basic.AbstractBasicAclEntry.

For this class to operate it must be able to access the application context via the WebApplicationContextUtils and locate an org.acegisecurity.acl.AclManager.


noneGranted

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


setAppCtx

public void setAppCtx(org.springframework.context.ApplicationContext appCtx)
get Spring application context which contains acegi related bean