/** * Whether this is not checked * * @param methodName the method name * @param params the parameters * @param interfaceType the interface type * @return true when it is not checked and it matches matches */ public boolean isNotChecked(String methodName, Class[] params, MethodInterfaceType interfaceType) { if (isNotChecked() == false) return false; return matches(methodName, params, interfaceType); }
/** * Whether this is not checked * * @param methodName the method name * @param params the parameters * @param interfaceType the interface type * @return true when it is not checked and it matches matches */ public boolean isNotChecked(String methodName, Class[] params, MethodInterfaceType interfaceType) { if (isNotChecked() == false) return false; return matches(methodName, params, interfaceType); }
break; else if (permission.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; }
/** * 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; }
break; else if (permission.matches(methodName, params, interfaceType))