1 25 26 28 package org.objectweb.jonas.jtests.beans.secured; 29 30 import java.util.Hashtable ; 31 import java.rmi.RemoteException ; 32 import javax.ejb.EJBObject ; 33 34 37 public interface BaseS extends EJBObject { 38 public String getPrincipalName() throws RemoteException ; 39 public String getPrincipalNameOfAnotherBean() throws RemoteException ; 40 41 public boolean isCallerInRole(String role) throws RemoteException ; 42 public void simpleMethod() throws RemoteException ; 43 public void complexMethod(Hashtable h, Object [] o) throws RemoteException ; 44 public boolean callAnotherMethod() throws RemoteException ; 45 46 public int getTimerCount() throws RemoteException ; 47 public int setTimer(int duration, int period, int action) throws RemoteException ; 48 49 51 public boolean callBeanNoRunAsWithRole1() throws RemoteException ; 53 54 public boolean callBeanNoRunAsWithRole2() throws RemoteException ; 57 58 59 public boolean callBeanRunAsWithRole1() throws RemoteException ; 61 62 public boolean callBeanRunAsWithRole2() throws RemoteException ; 64 65 69 public void excludedMethod() throws RemoteException ; 70 71 } 72 73 74 | Popular Tags |