KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > CheckPermission


1 import org.manentia.kasai.KasaiFacade;
2
3 public class CheckPermission {
4     
5     public static void main(String JavaDoc args[]){
6         try {
7             KasaiFacade.getInstance().validateOperative("jdoe", "kasai.user.commit", "/kasai/user/admin");
8             
9             System.out.println("jdoe can modify the admin user data");
10         } catch (Exception JavaDoc e){
11             System.out.println("jdoe can not modify the admin user data, reason: " + e.getMessage());
12         }
13     }
14 }
Popular Tags