/** * 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 interfaceType - the method interface type * @return true if a matching method permission exists, false if no match */ public boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType) { // First check the excluded method list as this takes priority over // all other assignments ExcludeListMetaData excluded = getExcludeList(); if (excluded != null && excluded.matches(methodName, params, interfaceType)) return true; // Check the permissioned methods list MethodPermissionsMetaData permissions = getMethodPermissions(); if (permissions != null) { for (MethodPermissionMetaData permission : permissions) { if (permission.matches(methodName, params, interfaceType)) return true; } } // No match return false; }
if (excluded != null && excluded.matches(methodName, params, interfaceType))
/** * 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 interfaceType - the method interface type * @return true if a matching method permission exists, false if no match */ public boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType) { // First check the excluded method list as this takes priority over // all other assignments ExcludeListMetaData excluded = getExcludeList(); if (excluded != null && excluded.matches(methodName, params, interfaceType)) return true; // Check the permissioned methods list MethodPermissionsMetaData permissions = getMethodPermissions(); if (permissions != null) { for (MethodPermissionMetaData permission : permissions) { if (permission.matches(methodName, params, interfaceType)) return true; } } // No match return false; }
if (excluded != null && excluded.matches(methodName, params, interfaceType))