ifs-security/src/test/java/org/innovateuk/ifs/commons/AbstractServiceSecurityAnnotationsTest.java
/**
     * Find the {@link Method}s on the bean passed in, check whether they need to be secured, and return any that aren't
     *
     * @param service
     * @throws Exception
     */
Find the  Methods on the bean passed in, check whether they need to be secured, and return any that aren't
@param service
@throws Exception
Find the Methods on the bean passed in check whether they need to be secured and return any that aren ' t @param service @throws Exception
private List<Method> notSecuredAtMethodLevel(Object service) throws Exception {
        List<Method> notSecured = new ArrayList<>();
        for (Method method : service.getClass().getMethods()) {
            if (methodNeedsSecuring(method)) {
                if (!hasOneOf(method, methodLevelSecurityAnnotations())) {
                    notSecured.add(method);
                }
            }
        }
        return notSecured;
    }
private List < Method > notSecuredAtMethodLevel ( Object service ) throws Exception { List < Method > notSecured = new ArrayList < > ( ) ; for ( Method method : service . getClass ( ) . getMethods ( ) ) { if ( methodNeedsSecuring ( method ) ) { if ( ! hasOneOf ( method , methodLevelSecurityAnnotations ( ) ) ) { notSecured . add ( method ) ; } } } return notSecured ; }
Find the {@link Method}s on the bean passed in, check whether they need to be secured, and return any that aren't
 @param service
 @throws Exception
Find the { @link Method } s on the bean passed in check whether they need to be secured and return any that aren ' t @param service @throws Exception