private boolean containsIncompatibleResourceType ( ) { if ( queryByResourceType && queryByPermission ) { Resource [ ] resources = resourcesIntersection . toArray ( new Resource [ resourcesIntersection . size ( ) ] ) ; return ! ResourceTypeUtil . resourceIsContainedInArray ( resourceType , resources ) ; } return false ; }
check whether the permissions resources are compatible to the filtered resource parameter