Exemple #1
0
 public boolean isStatisticsEnabled() {
   return utilities.isStatisticsEnabled();
 }
Exemple #2
0
 public UserTransaction getUserTransaction() throws IllegalStateException {
   if (!isBeanManagedTransaction()) throw MESSAGES.failToCallIsBeanManagedTransaction();
   return utilities.getUserTransaction();
 }
Exemple #3
0
 public boolean isCallerInRole(final String roleName) throws IllegalStateException {
   return utilities
       .getSecurityManager()
       .isCallerInRole(
           securityMetaData.getSecurityRoles(), securityMetaData.getSecurityRoleLinks(), roleName);
 }
Exemple #4
0
 public TransactionManager getTransactionManager() {
   return utilities.getTransactionManager();
 }
Exemple #5
0
 public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry() {
   return utilities.getTransactionSynchronizationRegistry();
 }
Exemple #6
0
 public ServerSecurityManager getSecurityManager() {
   return utilities.getSecurityManager();
 }
Exemple #7
0
 public Principal getCallerPrincipal() {
   return utilities.getSecurityManager().getCallerPrincipal();
 }
Exemple #8
0
 public UserTransaction getUserTransaction() throws IllegalStateException {
   return utilities.getUserTransaction();
 }
 public UserTransaction getUserTransaction() throws IllegalStateException {
   if (!isBeanManagedTransaction())
     throw new IllegalStateException(
         "EJB 3.1 FR 4.3.3 & 5.4.5 Only beans with bean-managed transaction demarcation can use this method.");
   return utilities.getUserTransaction();
 }
 public SimpleSecurityManager getSecurityManager() {
   return utilities.getSecurityManager();
 }