Code example for Permissions

Methods: add

0
 
    /** 
     * Returns array containing empty and non-empty Permissions. 
     */ 
    protected Object[] getData() {
        Permissions ps = new Permissions();
 
        ps.add(new AllPermission());
        ps.add(new SecurityPermission("abc"));
 
        return new Object[] { new Permissions(), ps };
    } 
}