/** * Get whether the pattern matches * * @param name the method name * @param arg the method args * @param iface the interface type * @return true when it matches */ public boolean patternMatches(String name, String[] arg, InvocationType iface) { return methodDelegate.matches(name, arg, BeanMetaData.invocationTypeToMethodInterfaceType(iface)); } /**
/** * Get whether the pattern matches * * @param name the method name * @param arg the method args * @param iface the interface type * @return true when it matches */ public boolean patternMatches(String name, String[] arg, InvocationType iface) { return methodDelegate.matches(name, arg, BeanMetaData.invocationTypeToMethodInterfaceType(iface)); } /**
/** * Check to see if there was a method-permission or exclude-list statement * for the given method. * * @param methodName - the method name * @param params - the method parameter signature * @param iface - the method interface type * @return true if a matching method permission exists, false if no match */ public boolean hasMethodPermission(String methodName, Class[] params, InvocationType iface) { return getDelegate().hasMethodPermissions(methodName, params, invocationTypeToMethodInterfaceType(iface)); }
/** * Check to see if there was a method-permission or exclude-list statement * for the given method. * * @param methodName - the method name * @param params - the method parameter signature * @param iface - the method interface type * @return true if a matching method permission exists, false if no match */ public boolean hasMethodPermission(String methodName, Class[] params, InvocationType iface) { return getDelegate().hasMethodPermissions(methodName, params, invocationTypeToMethodInterfaceType(iface)); }
/** * A somewhat tedious method that builds a Set<Principal> of the roles * that have been assigned permission to execute the indicated method. The * work performed is tedious because of the wildcard style of declaring * method permission allowed in the ejb-jar.xml descriptor. This method is * called by the Container.getMethodPermissions() when it fails to find the * prebuilt set of method roles in its cache. * * @param methodName the method name * @param params the parameters * @param iface the interface * @return The Set<String> for the application domain roles that * caller principal's are to be validated against. */ public Set<String> getMethodPermissions(String methodName, Class[] params, InvocationType iface) { return getDelegate().getMethodPermissions(methodName, params, invocationTypeToMethodInterfaceType(iface)); }
/** * A somewhat tedious method that builds a Set<Principal> of the roles * that have been assigned permission to execute the indicated method. The * work performed is tedious because of the wildcard style of declaring * method permission allowed in the ejb-jar.xml descriptor. This method is * called by the Container.getMethodPermissions() when it fails to find the * prebuilt set of method roles in its cache. * * @param methodName the method name * @param params the parameters * @param iface the interface * @return The Set<String> for the application domain roles that * caller principal's are to be validated against. */ public Set<String> getMethodPermissions(String methodName, Class[] params, InvocationType iface) { return getDelegate().getMethodPermissions(methodName, params, invocationTypeToMethodInterfaceType(iface)); }
/** * Get the transaction type * * @param m the method * @param iface the interface type * @return the transaction type */ public byte getTransactionMethod(Method m, InvocationType iface) { if (m == null) return TX_SUPPORTS; Byte b = methodTx.get(m); if (b != null) return b; TransactionAttributeType type = getDelegate().getMethodTransactionType(m, invocationTypeToMethodInterfaceType(iface)); byte result = mapTransactionType(type); // provide default if method is not found in descriptor if (result == TX_UNKNOWN) result = TX_REQUIRED; methodTx.put(m, result); return result; }
/** * Get the transaction type * * @param m the method * @param iface the interface type * @return the transaction type */ public byte getTransactionMethod(Method m, InvocationType iface) { if (m == null) return TX_SUPPORTS; Byte b = methodTx.get(m); if (b != null) return b; TransactionAttributeType type = getDelegate().getMethodTransactionType(m, invocationTypeToMethodInterfaceType(iface)); byte result = mapTransactionType(type); // provide default if method is not found in descriptor if (result == TX_UNKNOWN) result = TX_REQUIRED; methodTx.put(m, result); return result; }
/** * Get the method transaction type * * @param methodName the method name * @param params the parameters * @param iface the interface type * @return the method transaction type */ public byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { TransactionAttributeType type = getDelegate().getMethodTransactionType(methodName, params, invocationTypeToMethodInterfaceType(iface)); return mapTransactionType(type); }
/** * Get the method transaction type * * @param methodName the method name * @param params the parameters * @param iface the interface type * @return the method transaction type */ public byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { TransactionAttributeType type = getDelegate().getMethodTransactionType(methodName, params, invocationTypeToMethodInterfaceType(iface)); return mapTransactionType(type); }